Reproduced Exploit

BiswapPoolV3 — zero-rounding burns leave phantom active liquidity

burn always deletes the liquidity from the position. It only subtracts that liquidity from the pool's active liquidity when the current-point withdrawal is non-zero. A position minted on the current point can be burned in slices small enough that both withdrawal amounts round to zero. After ten suc…

Nov 2026•BNB Chain•defi•5 min read

Loss

~$51K (SlowMist). Seedless reproduction: 50159.241217964610283528 BUSD. Suite log, including a 10,000 wei uns…

Chain

BNB Chain

Category

defi

Date

Nov 2026

Source

DeFiHackLabs

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack replays in your browser. Step through it by Solidity line or by opcode.

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.

Loading fork state…

Source & credit. Exploit reproduction, trace data, and analysis adapted from DeFiHackLabs by SunWeb3Sec — an open registry of reproduced on-chain exploits. Standalone Foundry PoC and full write-up: 2026-11-BiswapPoolV3_exp in the evm-hack-registry mirror. Upstream DeFiHackLabs PoC: src/test/…/BiswapPoolV3_exp.sol.


On 24 November 2026 a Biswap V3 WBNB/BUSD pool on BNB Chain paid out its WBNB against liquidity that ten undersized burns had already removed from the position but never removed from state.liquidity.

Vulnerability classes: vuln/defi/liquidity-accounting · vuln/arithmetic/rounding


TL;DR#

burn always deletes the liquidity from the position. It only subtracts that liquidity from the pool's active liquidity when the current-point withdrawal is non-zero. A position minted on the current point can be burned in slices small enough that both withdrawal amounts round to zero. After ten such slices the position is empty and state.liquidity is unchanged. The next swap treats that leftover figure as real liquidity and sells the pool's WBNB for dust.

The reproduction borrows 11,283 WBNB, sells it into the pool, mints 4,847,000,000 liquidity over [-400050, -400000], burns it in ten slices of 484,700,000, and buys the WBNB back. The seedless Playground keeps 50159.241217964610283528 BUSD. The Foundry suite logs 10,000 wei more because its unspent BUSD seed is still in the balance.


Key information#

Chain / block / dateBNB Chain, block 135526419 (one block before the transaction), 2026-11-24
VictimBiswapPoolV3 WBNB/BUSD 0xc83F96f87f586A858a14C89e16434460BAc0B643
Loss~$51K (SlowMist). Seedless reproduction: 50159.241217964610283528 BUSD. Suite log, including a 10,000 wei unspent seed: 50159.241217964610293528 BUSD.
Bug classActive liquidity is not reduced when a burn's current-point amounts both round to zero
Attack txhttps://bscscan.com/tx/0x13b8310513cc7ff91ad24a966f6ced99aa535d2aef8a231e38737401c8e7f78c
FixDecrement state.liquidity for every burn of in-range liquidity, including when the token amounts round to zero

What happened#

The pool was a Biswap V3 (iZiSwap-style) WBNB/BUSD pool. WBNB is token X and BUSD is token Y. At block 135526419 the current point was 224000, active liquidity was 0, and the pool held about 0.337 WBNB and 51,075 BUSD.

The reproduction takes a real PancakeSwap V3 flash loan of 11,283 WBNB from the USDT/WBNB pool and, inside the callback:

  1. swapX2Y sells that WBNB into the victim pool, down to point -400001. The pool pays out about 50,994 BUSD. That BUSD is what later pays for the mint, so no prior BUSD balance is required.
  2. mint opens 4,847,000,000 liquidity on [-400050, -400000], a range that contains the new current point. The deposit is about 500 wei of BUSD.
  3. burn is called ten times for 484,700,000 each. Every slice withdraws zero tokens at the current point.
  4. state.liquidity is still 4,847,000,000. swapY2X, bounded at point -394508, buys the WBNB back for about 63,000 wei of BUSD.
  5. A small PancakeSwap V2 swap covers the flash fee. The loan is repaid. The BUSD left over is the gain.

A control burn of the whole 4,847,000,000 in one call withdraws a non-zero amount, so the active-liquidity update runs and state.liquidity returns to 0. The same swap then has nothing to sell against.

Root cause#

The pool's burn path, in the liquidity module the pool delegatecalls, always removes the burned amount from the position and from the per-point deltas. The active-liquidity write is guarded:

SOLIDITY
if (withRet.yc > 0 || withRet.xc > 0) {
    state.liquidity = curLiquidity - liquidDelta;
}

yc and xc are the amounts owed at the current point. At point -400001 the position's X liquidity is zero, and withdrawnLiquidityY * sqrtPrice_96 / 2**96 floors to zero for a 484,700,000 slice. Both sides are zero, the branch is skipped, and the position record is already empty. The next swap still walks state.liquidity and pays real tokens for it.

The ten-slice loop in the reproduction is the input that hits that branch:

SOLIDITY
for (uint256 i = 0; i < BURN_COUNT; i++) {
    POOL.burn(LEFT_PT, RIGHT_PT, BURN_SLICE);
}

mint, burn and swap are permissionless. No role and no whitelist is required.

Why it matters#

Liquidity providers in this pool lose the WBNB the swap pays out against liquidity the position no longer has. One flash-loaned round trip took about 50,159 BUSD of value out of a pool that started with about 51,075 BUSD. The same shape applies to any Biswap V3 pool whose current point can be moved onto a freshly minted position and whose burn slice can be sized so both current-point amounts round to zero.

How it was fixed#

Subtract the burned liquidity from state.liquidity whenever the position is in range, before checking whether the withdrawal amounts are non-zero. A zero token amount is a rounding result, not a signal that the liquidity is still active. A single burn of the full position is not a fix: the caller chooses the slice size.

sequenceDiagram participant Attacker participant Flash as PancakeV3 USDT/WBNB participant Pool as Biswap WBNB/BUSD Attacker->>Flash: flash 11283 WBNB Attacker->>Pool: swapX2Y borrowed WBNB Note over Pool: current point moves to -400001 Attacker->>Pool: mint 4847000000 liquidity loop 10 slices Attacker->>Pool: burn 484700000 Note over Pool: amounts round to 0, active liquidity stays end Attacker->>Pool: swapY2X against the leftover liquidity Attacker->>Flash: repay the loan Attacker->>Attacker: keep the BUSD

Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.