Crypto exploits

DIP exploit analysis

A missing return statement in DIP's `_transfer` let a PancakeSwap router-involved transfer execute twice, deflating the DIP/AIC pair's reserve so a public skim and sync could be used to drain it. SlowMist and DeFiHackLabs both report about $111,098 in USDC lost on BNB Chain.

David

Security ·

Reported loss
$111K
Occurred
Logged
Chain
BNB Smart Chain

Logged as “2026-06-16: Fee On Transfer Reserve Manipulation on DIP”.

Analysis2 min read

DIP traded against AIC on a PancakeSwap V2 pool on BNB Smart Chain. Transfers to the DIP/AIC pair that did not involve the PancakeSwap router carried a 6 percent sell fee. SlowMist traced the loss to a missing return in DIP's _transfer: the branch for transfers where from or to is the router performs the transfer but does not return, so execution falls through to the final transfer call and the same amount is moved a second time. Whale Alert's summary of SlowMist's report describes "a missing return statement" in DIP's _transfer() function and puts the loss at about $111,098, close to the 111,097.59 USDC that DeFiHackLabs' reproduction reports.

The proof of concept, DIP_exp.sol, shows how the double transfer became a drain rather than just a bad trade. The attacker, 0x0d4024Cd27538350a911D9B7eE90811fa4875ba3, ran the attack through an open-source helper contract at 0xddeF10a85A5c67A9Af8398D297aa51f8716383C7:

  1. flash-swap 19,000,000 AIC out of the AIC/NEX pair
  2. swap that AIC into DIP through the AIC/DIP pair at 0xF7D8267D01D1104Da2Dd30828aA9C0E1647919ef, leaving the helper holding DIP
  3. send the pair almost one extra reserve's worth of DIP (grossed up for the 6 percent fee), then call its public skim to send that surplus to the router, where DIP's missing return moves it twice and deflates the pair's DIP balance, and sync to lock the deflated reserve in
  4. swap the DIP still held against that broken reserve, pulling out far more AIC than the DIP traded in was worth
  5. repay the flash swap in AIC and forward the rest as USDC to the caller

skim and sync on a Uniswap V2 style pair are both public by design, meant to let anyone true up a reserve against stray tokens sent to the pair directly. That design assumes a pair's recorded reserve and its real balance only drift apart by accident. DIP's transfer bug manufactured the drift on demand, on every router trade, which is what turned two ordinary public functions into a drain.

The attack transaction is recorded at 0x1c09395848a87069c9d6ddbe5adc6249510aba7a2a83479a74b4280cafb5fb29. The date and figures above come from DeFiHackLabs and SlowMist rather than an independent read of the transaction. DIP's own contract source has not been independently confirmed beyond SlowMist's analysis, which is the basis for the missing-return-statement finding.

A later entry in this series, AIC, shows the same AIC token losing funds through the same public skim path on a different PancakeSwap pair two months later, on 3 August. Neither bug depends on the other: both exploited the combination of a fee-on-transfer token and a public skim call on a BNB Chain PancakeSwap V2 pair.

No statement from a DIP or Etherisc team about the incident was found, and no patch, pause, bounty or compensation has been reported anywhere checked.

Sources read (3)

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.