ShadowFi Hack

Reported loss $303K
BNB Chain
Other

What happened

ShadowFi's SDF/BNB PancakeSwap pool on BNB Smart Chain was emptied on September 2, 2022, the day the project launched after its presale. The SDF token's burn function had no access control, so anyone could burn SDF held by another address. The attacker burned about 10.3 million SDF out of the liquidity pool, which left SDF extremely scarce in the pool and its price inflated, then sold a small amount of SDF for all 1,078 BNB (about $300,000).

The BNB went to Tornado Cash and SDF lost about 98.5% of its value. ShadowFi said presale proceeds were not affected.

How it happened

  1. The SDF token exposed a burn function that any caller could use against any holder's balance.
  2. The attacker called it on the SDF/BNB PancakeSwap pair, destroying about 10.3 million SDF held by the pool.
  3. With almost no SDF left in the pool, the pair priced each remaining SDF against the full BNB reserve.
  4. The attacker swapped a small amount of SDF into the pool and received about 1,078 BNB, draining its liquidity.
  5. The BNB was sent to Tornado Cash.

Protocol details

Classification Token / Access Control
Protocol Type Exploit/Other
Affected asset / contract SDF
Implementation language Solidity
Protocol links Website @ShadowFi_

Understand the attack patterns

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.