ERC20 Token Bank Hack

TOTAL LOST $109K
Low Flash Loan Attack

Summarize with AI

Affected Chain 2023 Incident surface
Recovered - No recovery reported
All-Time Rank #1501 By amount stolen
Protocol Type Exploit/Flash Loan Attack Target category

Incident Overview

ERC20 Token Bank was targeted in a flash loan attack, but the attacker failed due to a frontrunning by an MEV bot. The bot earned 108,964 $USD.

An unknown attacker attempted to exploit the ERC20TokenBank contract in the Ethereum chain via flash loan. However, their attempt was thwarted by an MEV bot that anticipated and front-run their transaction. As part of this process, the MEV bot paid 1 $ETH as a bribe to gain priority on transaction ordering and earn roughly 60 $ETH profit.

Attacker address:

https://etherscan.io/address/0x0e816b0d…6f3278

MEV Bot:

https://etherscan.io/address/0xc0ffeeba…f29671

Malicious transaction:

https://etherscan.io/tx/0xcd8fe2ef…f301e1

MEV Bot transaction:

https://etherscan.io/tx/0x578a195e…735f26

Incident Report

Protocol / Project ERC20 Token Bank
Date of Incident
Attack Technique Flash Loan Attack
Classification Other
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Flash Loan Attack
Team Anonymous
Source Code Verified On-Chain

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 Deep understanding of flash loan attack and Solidity and EVM internals
Capital Required Flash loan capital (borrowed atomically, zero upfront cost)
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in ERC20 Token Bank's contract logic - root cause: other
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
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? Yes — skilled auditors routinely flag Flash Loan Attack vulnerabilities in code review

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

  • Verify all logic paths related to Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
  • 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

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Flash Loans Attacks examples →

Sources & References

Learn to Prevent the Next ERC20 Token Bank

The ERC20 Token Bank 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