Debt DAO contest - csanuragjain's results

A cryptonative credit marketplace for fully anon and trustless loans to DAOs.

General Information

Platform: Code4rena

Start Date: 03/11/2022

Pot Size: $115,500 USDC

Total HM: 17

Participants: 120

Period: 7 days

Judge: LSDan

Total Solo HM: 1

Id: 174

League: ETH

Debt DAO

Findings Distribution

Researcher Performance

Rank: 73/120

Findings: 1

Award: $61.35

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

User funds may get lost

Contract: SpigotedLineLib.sol#L131

Function: trade

Issue:

  1. If User initiated a trade with zeroExTradeData's amount as X where claimToken was ETH and total amount of claimToken which were considered for this swap was X+A then A amount would be lost in 0X contract

POC:

  1. trade function was called with amount as X+A and zeroExTradeData has swap amount as X

  2. This causes contract to send amount X+A to 0x contract. Since zeroExTradeData only mention swap of X amount so only X amount is swapped and returned to our contract. Remaining amount A is locked in 0x contract

Recommendation: Update the documentation to make user aware about such risks

Incorrect event

Contract: ModuleFactory.sol#L28

Function: deployEscrow

Issue: As per IModuleFactory.sol#L12 the third param in DeployedEscrow should be oracle and not borrower

Recommendation: Kindly revise the deployEscrow function as shown below:

emit DeployedEscrow(module, minCRatio, oracle, owner);

#0 - c4-judge

2022-12-06T20:52:38Z

dmvt marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter