Skip to content

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
Find DODO V3 update on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what DODO V3 update chose to make public.

ReportClassSeverityBountyCVSSVotesDisclosed
Inability to Re-add `oldToken` After Execution of `D3MakerFreeSlot.setNewTokenAndReplace()` Business logic Medium – – – 11 Jan 2024
D3UserQuote#getUserQuote queries incorrect token for exchangeRate leading to inaccurate quota calculations Business logic Medium – – – 25 Jul 2023
D3Oracle.getPrice() and D3Oracle.getOriginalPrice() doesn't check If Arbitrum sequencer is down for Chainlink feeds – Medium – – – 25 Jul 2023
`D3VaultFunding.userWithdraw()` doen not have mindTokenAmount Business logic Medium – – – 25 Jul 2023
Calls to liquidate don't write down totalBorrows which breaks exchange rate Business logic High – – – 25 Jul 2023
Possible loss of Funds Business logic Medium – – – 25 Jul 2023
User can perform sandwich attack on withdrawReserves for profit Business logic High – – – 25 Jul 2023
Wrong assignment of `cumulativeBid` for RangeOrder state in getRangeOrderState function Business logic Medium – – – 25 Jul 2023
traceurl - miss updating pool's token balance after finishLiquidation() Business logic High – – – 25 Jul 2023
possible precision loss in D3VaultLiquidation.finishLiquidation() function when calculating realDebt because of division before multiplication – Medium – – – 25 Jul 2023
D3VaultFunding#checkBadDebtAfterAccrue is inaccurate and can lead to further damage to both LP's and MM Business logic Medium – – – 25 Jul 2023
Protocol is completely incompatible with USDT due to lack of 0 approval Business logic Medium – – – 25 Jul 2023
borrow amount recorded in AssetInfo and BorrowRecord unmatched due to the precision loss – Medium – – – 25 Jul 2023
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 – – – 25 Jul 2023
Calculation B0 meets devision 0 error when a token has small decimal and high price with a small kBid DoS Medium – – – 25 Jul 2023
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 – – – 25 Jul 2023
It's dangerous for makers to set token decimal by manual Business logic Medium – – – 25 Jul 2023
vault balance not updated in withdrawReserves() Smart contracts High – – – 25 Jul 2023
parseAllPrice not support the tokens whose decimal is greater than 18 Business logic Medium – – – 25 Jul 2023
D3Oracle will return the wrong price if the Chainlink aggregator returns price outside min/max range – Medium – – – 25 Jul 2023
A user can get more dTokens than they should get via `D3VaultFunding.userDeposit()`, due to accounting issues in `D3VaultLiquidation.liquidate()` Business logic High – – – 25 Jul 2023
Anyone can sell other users' tokens as `fromToken`, and get the `toToken`'s themselves due to `decodeData.payer` is never checked Access control High – – – 25 Jul 2023
liquidationTarget is not set when removing pool Smart contracts Medium – – – 25 Jul 2023
MarginTrading.sol: The whole balance and not just the traded funds are deposited into Aave when a trade is opened Business logic Medium – – – 27 May 2023
MarginTrading.sol: Missing flash loan initiator check allows attacker to open trades, close trades and steal funds Access control High – – – 27 May 2023
Use safeTransferFrom() instead of transferFrom() Business logic Medium – – – 12 Nov 2022
Issue when handling native ETH trade and WETH trade in DODO RouterProxy#externalSwap Business logic Medium – – – 12 Nov 2022
Rounding error when call function `dodoMultiswap()` can lead to revert of transaction or fund of user – Medium – – – 12 Nov 2022
`call()` should be used instead of `transfer()` on an address payable DoS Medium – – – 12 Nov 2022