Crypto exploits

AIDC exploit analysis

A PancakeSwap sell-tax bug let AIDC's deferred burn get paid out of the AIDC/WBNB pair's own balance instead of the seller's, and thirteen freshly deployed helper contracts let one attacker trigger it repeatedly in a single transaction. DeFiHackLabs puts the loss at 220.13 WBNB; Coinfomania reports roughly $120,929.

David

Security ·

Reported loss
$121K
Occurred
Logged
Chain
BNB Chain

Logged as “2026-06-28: Business Logic Flaw on AIDC”.

Analysis3 min read

AIDC is a BNB Chain token traded against WBNB on a single PancakeSwap V2 pair, 0x2725033282b3bd4BE8873B7F0f622c18E3b7cbd8. Its contract, 0x5021d71859f81b4c905b573591db8f9cc4a0c6fe, charged a sell tax by accruing a burn debt on every sale and settling that debt later. On 2026-06-28 an attacker turned the settlement step against the pair itself.

A burn debt that got paid by the pool

Coinfomania's reporting on the exploit, citing on-chain analysis and SlowMist_Team, names _sellTransfer() as the faulty function; _executeAccumulatedBurn() comes from the verified contract source, not Coinfomania. _sellTransfer() ran on each sale by a non-whitelisted address and added 30 percent of the sold amount to a global accumulatedBurnAmount without deducting it from the seller. A later transfer that was neither to nor from the pair then called _executeAccumulatedBurn(), which always moves up to the global accumulatedBurnAmount out of the AIDC/WBNB pair's own balance to the dead wallet and calls sync() on the pair. The burn was never taken from the seller; it is charged to the pair by design. The 30 percent figure matches the PoC's own AIDC_SELL_BURN_BPS constant of 3000 basis points, which is the one piece of code both sides agree on.

Thirteen fresh sellers and a pair that kept shrinking

DeFiHackLabs' proof of concept cannot call _sellTransfer() or _executeAccumulatedBurn() directly, since they are internal to AIDCToken. It instead reconstructs the attack from outside, through ordinary transfers and PancakeSwap calls, as a single flash-loan transaction run by a contract labeled AIDCExploit:

  1. The attacker, 0x89eb2C99E970d831525c7A52baDC290aFA116b63, first calls the AIDC contract directly with 0.00001 BNB and no data. The PoC's comments describe this as claiming a pending AIDC reward belonging to a historical root address, and the claimed AIDC is forwarded to AIDCExploit.
  2. AIDCExploit flashes 200 WBNB from a Pancake V3 pool, unwraps 100 of it to BNB, and uses the claimed AIDC plus a matching amount of the remaining WBNB to mint a small LP position in the AIDC/WBNB pair.
  3. The unwrapped 100 BNB buys AIDC through the PancakeSwap V2 router (output sent to the router itself), and a slice of the LP position is removed immediately after.
  4. A loop deploys thirteen fresh, single-purpose AIDCSellHelper contracts. Each one receives the exploit contract's current AIDC balance, transfers it straight to the pair as a sell, triggers skim() against the router, and is followed by another partial LP withdrawal.
  5. A final, separate helper swaps the remaining AIDC back to BNB through the router.
  6. The contract repays the flash loan plus fee, sends 1 BNB to a hardcoded address, 0x4848489f0b2BEdd788c696e2D79b6b69D7484848, labeled in the code as a builder tip, and forwards the rest of the WBNB to the attacker.

Using a freshly deployed, zero-history contract for every sale is the part that makes the thirteen-iteration loop work: each AIDCSellHelper is a seller AIDCToken has never seen before, so each one can sell without hitting the per-address sell cooldown (lastSellBlock) the token enforces, and each sale adds 30 percent of its amount to the global accumulatedBurnAmount. Each burn came out of the pair's real AIDC balance rather than the seller's, so thirteen repetitions emptied AIDC out of the pair considerably faster than an equivalent amount of WBNB left the other side, and the router trades and partial LP removals in between let the attacker capture that imbalance as it formed.

What the loss comes to, and what went unanswered

DeFiHackLabs' README puts the loss at 220.13 WBNB. Coinfomania reports a close but not identical figure, 220.12 WBNB, worth approximately $120,929 at the time, and attributes the initial flag to SlowMist_Team. Both figures describe the same drain. Neither source explains the one-hundredth-WBNB gap between them. Coinfomania also reports that the AIDC/WBNB pair carried zero trading volume in the 24 hours after the exploit. No statement, patch, bounty or compensation from an AIDC team has been published. Beyond the PoC and the news coverage cited above, the on-chain record for the attack transaction has not been independently confirmed.

The same reserve collapse, eighteen days later

AIDC is not the only PancakeSwap pair DeFiHackLabs logged that quarter with a sell-triggered burn taken out of the pair instead of the seller. On 2026-07-16, CrowdRingCircle was drained the same way: a sell-destroy path burned CRC out of its own pair on any non-exempt sale, collapsing the CRC side of the reserve so a follow-up swap could take the pool's entire USDT. The token and the paired asset differ, but the shape of the bug does not: a tax or burn written to come out of the pair's balance rather than the seller's turns an ordinary sell into a lever against the AMM's own accounting, and both incidents happened on the same chain inside three weeks of each other.

Sources read (4)

Other exploits

Query every incident yourself — free, no signup

Updated 30 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.