Skip to content

Sherlock

DODO Cross-Chain DEX

Every publicly disclosed report for DODO Cross-Chain DEX and what kind of bugs they were.

disclosed reports
17
most reported class
Business logic
bug classes found
4
first disclosure
2025
Find DODO Cross-Chain DEX on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what DODO Cross-Chain DEX chose to make public.

DoS

False “pool exists” detection via `balanceOf()` leads to broken swap paths

The pool existence check in two gateway contracts infers a UniswapV2 pair exists by reading token balances at the computed pair address, without verifying deployed code or reserves. An attacker can send small token amounts to that address so the check returns true, causing swap path selection to use a non-existent pool and transactions to revert.

DODO Cross-Chain DEX

Medium
DoS

ETH Address Approval Attempt Causes All Zeta Swaps to Revert

The contract unconditionally calls approve() on the ETH placeholder address, which is not a valid ERC20 contract, causing all swaps involving ETH to revert. This makes the Zeta swap functionality completely non-functional for all users.

DODO Cross-Chain DEX

Medium
Business logic

`GatewayTransferNative.withdrawToNativeChain` Allows Swapping Arbitrary Contract ZRC20s by Misusing Deposited Token Amount

The withdrawToNativeChain function fails to check that the token specified in the swap parameters matches the deposited token, allowing an attacker to deposit a low-value token and instruct the contract to swap its own holdings of a valuable token. The attacker can then withdraw the proceeds, draining the contract's funds.

DODO Cross-Chain DEX

High
Business logic

Improper ETH Refund Handling in GatewaySend.onRevert()

The GatewaySend contract's onRevert() function uses an ERC20 transfer helper to refund native ETH, which fails because ETH is not an ERC20 token. As a result, ETH from failed cross-chain transactions remains trapped in the contract, preventing users from recovering their funds.

DODO Cross-Chain DEX

Medium
Access control

Unauthorized Claim of Non-EVM Chain Refunds in `claimRefund` Function

The claimRefund function in GatewayTransferNative.sol and GatewayCrossChain.sol has an authorization flaw: when the refund wallet address is not 20 bytes (non-EVM), the receiver defaults to msg.sender, making the caller check always pass. An attacker can claim refunds intended for non-EVM chains like Bitcoin.

DODO Cross-Chain DEX

High
Business logic

`onCall` function has missing fee deduction update prior swap

The onCall function in GatewayTransferNative fails to deduct platform fees from the amount before swapping, causing the swap to attempt to pull the full amount and revert due to insufficient funds. If the contract holds refunds, an attacker could exploit this to steal those refunds.

DODO Cross-Chain DEX

Medium
Business logic

Boolean Return Assumption in transferFrom() Causes Token Compatibility Issues

The GatewaySend contract uses raw IERC20.transferFrom() calls wrapped in require(), expecting a boolean return value. Tokens like USDT that return void cause the require to fail even when the transfer succeeds, making the contract incompatible with such tokens.

DODO Cross-Chain DEX

Medium
Business logic

GatewayTransferNative does not collect platform fee when native asset is bridged

The withdrawToNativeChain function in GatewayTransferNative fails to collect platform fees when bridging native assets because it uses an ERC20 transfer helper on a non-contract address. An attacker can bridge native assets without paying the platform fee, causing revenue loss for the protocol.

DODO Cross-Chain DEX

Medium
Business logic

Missing swap-withdrawal validation enables accumulated token drainage

The onCall function swaps tokens to one type but withdraws a different token type without validation, allowing an attacker to drain accumulated token balances by crafting a cross-chain transaction with mismatched swap output and withdrawal target.

DODO Cross-Chain DEX

High
Business logic

Attacker can steal an high-value token due to lack of swap execution

The contract's swap function returns the original token amount without performing a swap when swapData is empty, and does not verify that the target token matches the input token. An attacker can deposit a low-value token and receive a high-value token held by the contract.

DODO Cross-Chain DEX

High
Business logic

Any attacker will steal accumulated ZRC20 tokens from `GatewayTransferNative` contract

The withdrawToNativeChain function lacks validation of msg.value when the token address is the native token placeholder, allowing an attacker to claim arbitrary amounts without sending native tokens. By crafting a message that points to a real ZRC20 token, the attacker can drain accumulated ZRC20 tokens from the contract.

DODO Cross-Chain DEX

High
Smart contracts

Bug in AccountEncoder causes wrong Solana account permissions

A parsing bug in the AccountEncoder library causes the isWritable flag for Solana accounts to always be set to true, even when users intend them to be read-only. This affects all Solana bridge transactions with multiple accounts, potentially allowing unauthorised token transfers or account state changes.

DODO Cross-Chain DEX

Medium
Business logic

Executing withdrawToNativeChain with Zeta as fromToken will not be possible

When a user calls withdrawToNativeChain with ZETA as the fromToken and a non-zero fee is set, the full msg.value is passed to mixSwap instead of deducting the fee, causing a mismatch with fromTokenAmount and a revert. This prevents swapping ZETA for ZRC20 tokens whenever the fee is non-zero.

DODO Cross-Chain DEX

Medium
Business logic

Wrong encoding of `BTC` receiver in revert options

The contract truncates Bitcoin addresses to 20 bytes when constructing revert options, so if a cross-chain withdrawal to Bitcoin fails, the refund is sent to an incorrect Ethereum-style address derived from the truncated bytes. This results in loss of user funds.

DODO Cross-Chain DEX

Medium
Business logic

An attacker will steal value from cross-chain swaps by manipulating liquidity used in `_swapAndSendERC20Tokens()`

The contract uses UniswapV2Library.getAmountsIn() to estimate token amounts for gas fees without checking for liquidity manipulation. An attacker can front-run a cross-chain user operation, manipulate pool reserves (e.g., via flashloan), causing the contract to miscalculate and overpay, allowing the attacker to extract value or cause a denial of service.

DODO Cross-Chain DEX

Medium