LeetSwap Hack
What happened
On August 1, 2023, LeetSwap's Base AMM was exploited through an externally callable fee-transfer function in its pair contract. The attacker manipulated pool pricing and drained WETH from multiple pools. Contemporary reports put the outflow at roughly 340–342 ETH; the project paused trading and reported recovering ETH that had remained stuck in pools.
How it happened
- The attacker made a small swap to obtain tokens needed for the next transaction.
- They called the publicly exposed
_transferFeesSupportingTaxTokensfunction, moving tokens from a pair to its fee address. - That transfer distorted the pair's reserves; the attacker called
syncon theaxlUSD/WETHpool. - The attacker reversed the swap at the manipulated price and repeated the method across pools to extract WETH.
Protocol details
Evidence
Proof of concept
1 availableSources
- report Twitter/X Alert twitter.com
- report Twitter/X Alert twitter.com
- report @TheBlock__ incident report twitter.com
- report @FrankResearcher incident report twitter.com
- report How Was LeetSwap Exploited? medium.com
- analysis DeFiLlama defillama.com
- analysis LeetSwap exploited on Base web3isgoinggreat.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.