Sherlock
DODO V3 update
Every publicly disclosed report for DODO V3 update and what kind of bugs they were.
- disclosed reports
- 29
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2022
Disclosed reports
Newest first. Only what DODO V3 update chose to make public.
-
Inability to Re-add `oldToken` After Execution of `D3MakerFreeSlot.setNewTokenAndReplace()`
Business logic Medium Audit finding +2 collaborators
-
D3UserQuote#getUserQuote queries incorrect token for exchangeRate leading to inaccurate quota calculations
Business logic Medium Audit finding +2 collaborators
-
D3Oracle.getPrice() and D3Oracle.getOriginalPrice() doesn't check If Arbitrum sequencer is down for Chainlink feeds
Medium Audit finding +15 collaborators
-
`D3VaultFunding.userWithdraw()` doen not have mindTokenAmount
Business logic Medium Audit finding +4 collaborators
-
Calls to liquidate don't write down totalBorrows which breaks exchange rate
Business logic High Audit finding +1 collaborator
-
Possible loss of Funds
Business logic Medium Audit finding +12 collaborators
-
User can perform sandwich attack on withdrawReserves for profit
Business logic High Audit finding +1 collaborator
-
Wrong assignment of `cumulativeBid` for RangeOrder state in getRangeOrderState function
Business logic Medium Audit finding
-
traceurl - miss updating pool's token balance after finishLiquidation()
Business logic High Audit finding
-
possible precision loss in D3VaultLiquidation.finishLiquidation() function when calculating realDebt because of division before multiplication
Medium Audit finding +8 collaborators
-
D3VaultFunding#checkBadDebtAfterAccrue is inaccurate and can lead to further damage to both LP's and MM
Business logic Medium Audit finding
-
Protocol is completely incompatible with USDT due to lack of 0 approval
Business logic Medium Audit finding +10 collaborators
-
When swapping 18-decimal token to 8-decimal token , user could buy decimal-18-token with 0 amount of decimal-8-token
Business logic Medium Audit finding
-
When a D3MM pool repays all of the borrowed funds to vault using `D3Funding.sol repayAll`, an attacker can steal double the amount of those funds from vault
Business logic High Audit finding +9 collaborators
-
It's dangerous for makers to set token decimal by manual
Business logic Medium Audit finding
-
vault balance not updated in withdrawReserves()
Smart contracts High Audit finding
-
parseAllPrice not support the tokens whose decimal is greater than 18
Business logic Medium Audit finding
-
D3Oracle will return the wrong price if the Chainlink aggregator returns price outside min/max range
Medium Audit finding +6 collaborators
-
A user can get more dTokens than they should get via `D3VaultFunding.userDeposit()`, due to accounting issues in `D3VaultLiquidation.liquidate()`
Business logic High Audit finding +3 collaborators
-
Anyone can sell other users' tokens as `fromToken`, and get the `toToken`'s themselves due to `decodeData.payer` is never checked
Access control High Audit finding +3 collaborators
-
liquidationTarget is not set when removing pool
Smart contracts Medium Audit finding
-
MarginTrading.sol: The whole balance and not just the traded funds are deposited into Aave when a trade is opened
Business logic Medium Audit finding
-
MarginTrading.sol: Missing flash loan initiator check allows attacker to open trades, close trades and steal funds
Access control High Audit finding +24 collaborators
-
Use safeTransferFrom() instead of transferFrom()
Business logic Medium Audit finding +4 collaborators
-
Issue when handling native ETH trade and WETH trade in DODO RouterProxy#externalSwap
Business logic Medium Audit finding
-
`call()` should be used instead of `transfer()` on an address payable
DoS Medium Audit finding +13 collaborators