Hunt prep
Before you test DODO Cross-Chain DEX
What 17 disclosed reports say about DODO Cross-Chain DEX: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 12 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
False “pool exists” detection via `balanceOf()` leads to broken swap paths
The check should verify that the computed pair address has deployed contract code and read real reserves rather than relying on token balances; the team acknowledged the issue but stated it will not be fixed at this time.
Disclosed
-
Incorrect amount of zrc20 approved in GatewayTransferNative causing loss of fund and DOS
The contract should approve only the exact amount needed, not including the gas fee.
Disclosed
-
ETH Address Approval Attempt Causes All Zeta Swaps to Revert
The protocol team fixed this issue by adding a check to skip the approve call when the token is the ETH placeholder address.
Disclosed
-
`GatewayTransferNative.withdrawToNativeChain` Allows Swapping Arbitrary Contract ZRC20s by Misusing Deposited Token Amount
The contract was fixed by adding checks that the swap input token matches the deposited token and that the swap amount does not exceed the post-fee deposit.
Disclosed
-
Improper ETH Refund Handling in GatewaySend.onRevert()
The protocol team fixed this issue by handling native transfers in onRevert().
Disclosed
-
Unauthorized Claim of Non-EVM Chain Refunds in `claimRefund` Function
The protocol team fixed this issue in the following PRs/commits: https://github.com/Skyewwww/omni-chain-contracts/pull/24
Disclosed
-
`onCall` function has missing fee deduction update prior swap
The amount should be updated to deduct the platform fees before the swap operation.
Disclosed
-
Boolean Return Assumption in transferFrom() Causes Token Compatibility Issues
The contract should use a safe transfer helper (e.g., TransferHelper.safeTransferFrom) that handles tokens with and without boolean return values.
Disclosed
-
GatewayTransferNative does not collect platform fee when native asset is bridged
The protocol team fixed this issue in a pull request.
Disclosed
-
Missing swap-withdrawal validation enables accumulated token drainage
The protocol team fixed this issue by adding validation to ensure the swap output token matches the target withdrawal token.
Disclosed
-
Attacker can steal an high-value token due to lack of swap execution
The protocol team fixed this issue in the following PRs/commits: https://github.com/Skyewwww/omni-chain-contracts/pull/33
Disclosed
-
Any attacker will steal accumulated ZRC20 tokens from `GatewayTransferNative` contract
The protocol team fixed this issue by adding proper validation for native token amounts in the withdrawToNativeChain function.
Disclosed
-
Bug in AccountEncoder causes wrong Solana account permissions
The issue was fixed by extracting only the first byte of the boolean value using a shift operation.
Disclosed
-
Executing withdrawToNativeChain with Zeta as fromToken will not be possible
The protocol team fixed this issue by deducting the fee from msg.value when calling mixSwap.
Disclosed
-
Attacker can overwrite legitimate refundsInfo by triggering `GatewayTransferNative::onRevert`
The fix is non-trivial because the RevertMessage cannot be trusted; the protocol team fixed this issue in a pull request.
Disclosed