LeetSwap Hack

TOTAL LOST $629K
Low Liquidity Pools Compromised / Other base

Summarize with AI

Affected Chain base Incident surface
Recovered - No recovery reported
All-Time Rank #949 By amount stolen
Protocol Type Dexs Target category

Incident Overview

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:

1. Swapping a small amount of WETH for X tokens (a transaction that should have incurred fees).

2. Calling _transferFeesSupportingTaxTokens(address, uint256) to move the token to a Fees contract.

3. Calling sync().

4. 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

Incident Report

Protocol / Project LeetSwap
Date of Incident
Affected Chain(s) base
Attack Technique Liquidity Pools Compromised / Other
Classification Protocol Logic / Exchange (DEX)
Primary Source View Post-Mortem

Protocol Information

Protocol Type Dexs
Smart Contract Language Solidity
Official Website leetswap.finance/
Protocol Twitter/X @LeetSwap
Team Anonymous
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Decentralized Exchange (DEX) Token DeFi DApp Launchpad MetisDAO Ecosystem Metis Andromeda Ecosystem

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of LeetSwap's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough Liquidity Pools Compromised / Other audit checklist and test coverage

If you're auditing a protocol with similar architecture to LeetSwap, these are the critical security checks that could have prevented this incident (August 2023).

  • Verify all logic paths related to Liquidity Pools Compromised / Other are guarded by proper access controls and input validation
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Proof-of-Concept Exploits

1 PoC available
poc-exploits - leetswap

Sources & References

Learn to Prevent the Next LeetSwap

The LeetSwap hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial