Everyone had already left the pool, but the system still thought they were there—and that’s how $50,000 was drained.

At around 4:24 a.m. Beijing time on November 25, an old Biswap V3 pool (WBNB/BUSD) on BNB Chain was attacked, resulting in losses of about $51,000, including roughly $50,600 in BUSD sent to the attacker’s wallet. As of November 26, Biswap had not posted an announcement or published a postmortem report, and had not announced any compensation plan. The amount was not large, but this type of bug is a classic example.

【Root cause: only half the ledger was updated】

These concentrated liquidity pools have two ledgers: one tracks each person’s position, and the other tracks “how much liquidity is available to trade at the current price.” When a position is withdrawn, both ledgers must be updated together. SlowMist traced the root cause to this: when the amount of tokens withdrawn rounded down to zero, the code skipped the step that updated the “total ledger.” The position was gone, but the system still thought that liquidity was there, so subsequent trades were quoted against “ghost liquidity.” Think of it this way: all the goods have been taken out of a warehouse, but the inventory hasn’t been updated, so the next buyer places an order based on the quantity shown on the books. This conclusion is consistent with Olympix’s review of the verified source code.

【Similar risks: focus on categories, not specific names】

• DEXs forked from designs like iZiSwap’s “concentrated liquidity”;

• Contracts whose ledger updates depend on conditions such as “how many tokens were paid in this transaction”;

• Older versions that have been announced as “being phased out,” but still have funds sitting in their pools and no one watching over them.

The pool involved in this Biswap incident belonged to an older version that was being phased out. Olympix noted that the team had previously advised users to withdraw from the old V2/V3 versions. Old pools are the most dangerous: no one maintains them, but funds are still there.

【How everyday users can check for themselves】

• If a project says an “old version has been discontinued,” withdraw your liquidity—don’t assume it will always be safe;

• Avoid putting large amounts into small pools on lesser-known DEXs. Shallow pools are more vulnerable to price impact;

• Use tools like revoke.cash to clear out unused approvals;

• Treat any “emergency migration” or “claim compensation” links that appear after an incident as scams, and check official accounts first;

• When reviewing an audit report, check whether it covers the version you’re actually using.

Looking back at DeFi incidents since 2021, many losses haven’t come from new projects, but from “forgotten old contracts.”

Do you have liquidity in an old DEX that you no longer use but haven’t withdrawn? A: Yes—I’ll withdraw it tonight. B: No—I’ve always used mainstream platforms.

Sources: Olympix incident analysis, and disclosures from SlowMist and TenArmor (as relayed by Olympix).

Not investment advice. DYOR.

$BNB $CAKE #Web3安全 #安全 #BNBChain