Skip to content

Sherlock

Dango DEX

Every publicly disclosed report for Dango DEX and what kind of bugs they were.

disclosed reports
18
most reported class
Business logic
bug classes found
3
first disclosure
2025
Find Dango DEX on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Dango DEX chose to make public.

Business logic

Providing and withdrawing liquidity lacks slippage protection

The ProvideLiquidity and WithdrawLiquidity messages lack slippage protection parameters, so users cannot specify minimum acceptable amounts. An attacker or market movement could change pool reserves before execution, causing users to receive fewer LP tokens or an unfavourable asset mix.

Dango DEX

Medium
Business logic

Attacker can exploit thin liquidity in xyk pool to save on fees

The swap fee is calculated from the output of the last pool in a multi-hop route, so an attacker can add liquidity to a thin pool, swap through it, withdraw the liquidity, and pay less fee than intended. This lets the attacker obtain more of the desired token than a direct swap would allow, causing a fee loss for the protocol.

Dango DEX

Medium
DoS

A newly deployed pool can be DoS

A newly deployed liquidity pool can be permanently disabled by providing zero amounts of both tokens as the first liquidity provision. This leaves the pool with zero reserves but non-zero supply, causing all subsequent liquidity additions to fail with a division-by-zero error.

Dango DEX

Medium
DoS

Ineffective minimum order size check for ASK limit orders can lead to Denial of Service

The minimum order size check for ASK limit orders compares the quote value (base amount times price) rather than the base amount, so an attacker can place many tiny orders at an absurdly high price and still pass the check. A large batch of such unfilled ImmediateOrCancel orders makes the cron auction spend excessive time cancelling and refunding them, which could cause block timeouts, and a large number of orders can also make the owner's force-cancel message run out of gas.

Dango DEX

Medium
DoS

Overflow in geometric can dos swap

In the geometric swap logic, a value with 6 decimals is added to a value with 18 decimals, and the conversion multiplies the smaller value by 1e12, producing a 36-decimal number that overflows u128 for modest amounts. As a result, swaps in ask_exact_amount_out and bid_exact_amount_in revert, or users may receive the wrong number of tokens.

Dango DEX

Medium
Business logic

The first Liquidity Provider can perform a fee less swap by providing unbalanced liquidity

The first liquidity provider to an empty pool can deposit only one asset, and the code mints LP tokens without simulating a swap or charging a fee. When a later provider adds balanced liquidity, the first provider can withdraw and receive a mix of both assets, effectively getting a swap without paying the fee.

Dango DEX

Medium
Business logic

XYK reflect_curve omits swap fee in order sizing, leaking LP fees

The XYK pool's reflect_curve function sizes passive bid and ask orders without including the swap fee, so takers can match those orders without paying the fee. This means liquidity providers lose the fee revenue they should have earned on those fills.

Dango DEX

Medium
Business logic

Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size

The geometric pool's pricing curve can be bypassed by adding liquidity asymmetrically and then immediately withdrawing it, letting an attacker effectively swap at the flat oracle price regardless of trade size. This means large trades avoid the intended price impact, reducing the pool's earnings and harming liquidity providers.

Dango DEX

High
DoS

User can pause all auctions by overflow in mid-price average

The mid-price calculation adds the best bid and ask prices without checking for overflow, so an attacker can place a very high ask and a small bid to cause an overflow. This error bubbles up and sets a global PAUSED flag, stopping all auctions across every trading pair.

Dango DEX

Medium
DoS

Users may fail to add liquidity because of overflow

The pool's invariant calculation multiplies two uint128 reserve amounts before taking a square root, so the intermediate product can overflow for tokens with 18 decimals. This makes adding liquidity fail for ordinary amounts such as one ETH paired with several thousand DAI.

Dango DEX

Medium