Safemoon Hack
What happened
On March 28, 2023, an upgrade to SafeMoon's BNB Chain token contract exposed a public burn path that let an attacker burn SFM held by the SFM/WBNB AMM pair. The artificial reserve reduction inflated SFM's pool price, allowing the attacker to sell SFM back into the pair and drain about $8.9 million in WBNB.
A recent token-contract upgrade made the burn operation callable against tokens held by arbitrary addresses, including the AMM pair. Burning a pool reserve without a corresponding accounting safeguard lets an AMM's reserve ratio and spot price be manipulated. The main exploit used the public arbitrary-address burn, not an admin-key compromise or a conventional oracle flaw.
How it happened
The attacker flash-borrowed 1,000 WBNB, bought SFM, then invoked the broken burn path to destroy almost all SFM held by the AMM pair. They also burned SFM in the token contract to avoid its BNB-collection behavior, called sync() so the pair recorded the distorted reserves, sold their SFM at the now-inflated price for WBNB, and repaid the flash loan.
The exploiter and SafeMoon later agreed that 80% of the stolen liquidity would be returned, with 20% retained as a bounty. The recovered dollar value is an approximate incident-time valuation, not an assertion that all drained assets were returned.
Protocol details
Funds Recovery
Recovered
$7.1M
Net Loss
$1,780,000
Evidence
Proof of concept
1 availableSources
- report Twitter/X Alert twitter.com
- report @MoonMark_ incident report twitter.com
- report @peckshield incident report twitter.com
- report SafeMoon Post-Mortem certik.com
- transaction SafeMoon Settlement Message bscscan.com
- analysis Website reference cryptoslate.com
- analysis Website reference bitcoininsider.org
- analysis DeFiLlama defillama.com
- analysis SafeMoon Exploit Explained zellic.io
- analysis SafeMoon Recovery Agreement coindesk.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.