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.
The contract approved more tokens than needed to the gateway, leaving a residual allowance. An attacker could use that allowance to make the contract pay gas fees, causing fund loss and potentially blocking refunds.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The onRevert function in GatewayTransferNative does not check if a refund record already exists for a given externalId, allowing an attacker to overwrite a legitimate pending refund's wallet address. This means the rightful owner cannot withdraw their refunded funds.
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.
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.
DC
DODO Cross-Chain DEX
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.