Euler Finance Hack
What happened
Euler Finance's Ethereum lending protocol was exploited on March 13, 2023 for about $197 million. The attacker used flash liquidity and controlled accounts to create a deliberately unhealthy position, then self-liquidated it under Euler's discounted liquidation terms and withdrew pool assets. Euler later said all recoverable funds were returned; later reporting valued the returned assets at about $240 million after market prices changed.
donateToReserves() could reduce an account's collateral without checking whether the account remained solvent. Combined with self-borrowing and liquidation incentives, that let an attacker manufacture a profitable liquidation of its own position. Lending protocols must test every collateral-reducing state transition for post-condition solvency, including multi-account liquidation paths funded by temporary liquidity.
How it happened
- The attacker borrowed flash liquidity, deposited it into Euler, and used mint() to create a highly leveraged eToken collateral and dToken debt position while intermediate checks passed. donateToReserves() then reduced the attacker's eToken collateral without a corresponding post-operation health check, making the account liquidatable.
- A second attacker-controlled account liquidated that bad position at Euler's soft-liquidation discount, acquired eTokens worth more than the debt repaid, redeemed them for underlying pool assets, repaid the flash liquidity, and repeated the path against additional pools.
Protocol details
Funds Recovery
Recovered
$177.0M
Net Loss
$20,094,000
Evidence
- report @officer_cia incident report twitter.com
- report Report forkast.news
- report @eulerfinance incident report twitter.com
- report @peckshield incident report twitter.com
- report @peckshield incident report twitter.com
- transaction Etherscan representative exploit transaction etherscan.io
- analysis Web Archive archive.ph
- analysis DeFiLlama defillama.com
- analysis Euler Finance recovery retrospective euler.finance
- analysis Euler Foundation special announcement forum.euler.finance
- analysis CertiK Euler Finance incident analysis certik.com
- analysis BlockSec Euler Finance incident analysis blocksec.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.