LeetSwap Hack
What happened
LeetSwap, an AMM-based DEX on Base chain, was exploited, resulting in a loss of 342.56 ETH worth 628,583 USD.
On Aug 01, 2023, LeetSwap's AMM-based DEX running on Base chain was exploited. The attacker executed a sequence of malicious actions that allowed them to steal funds from the protocol. The steps involved:
- Swapping a small amount of WETH for X tokens (a transaction that should have incurred fees).
- Calling _transferFeesSupportingTaxTokens(address, uint256) to move the token to a Fees contract.
- Calling sync().
- Swapping X tokens for all the WETH from the pool.
As a result of these actions, approximately 342.56 ETH, equivalent to around 628,583 USD, were stolen.
Attacker Address:
https://basescan.org/address/0x705f7361…5085c3
Funds Holder Address as of August 1, 2023: https://basescan.org/address/0x5b030f90…f60a60
Malicious Transaction: https://basescan.org/tx/0xbb837d41…9f10ec
Malicious Contract Address: https://basescan.org/address/0xea8f89f4…b9f560
Case & protocol details
Evidence & learning
Attack pattern
Compare incidents →Proof of concept
1 availableSources and on-chain records
- report Report twitter.com
- analysis Twitter/X Alert twitter.com
- analysis Twitter/X Alert twitter.com
- analysis Website reference twitter.com
Practice this exploit pattern safely
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.