Warp Protocol Hack
What happened
Warp Finance was exploited on December 17, 2020 after its Ethereum lending contracts overvalued Uniswap LP tokens used as collateral. The attacker borrowed $7.76 million against collateral worth less than the loan. Warp later distributed recovered LP tokens valued at $5.688 million, approximately 73% of affected funds.
The LP pricing formula used manipulable reserve snapshots even though its underlying prices were time-weighted. Changing reserves within the transaction could increase the calculated LP value.
How it happened
- The attacker used flash liquidity to acquire DAI/WETH LP tokens and make a large swap in the same pool.
- The swap distorted current reserves. Warp combined those reserves with time-weighted underlying prices, producing an inflated collateral valuation.
- The attacker deposited the LP tokens, borrowed DAI and USDC, and repaid the temporary liquidity, leaving an undercollateralized loan.
- Responders secured the collateral. Warp reported distributing it to users on December 22, with further compensation still planned.
Protocol details
Security review history
- Trail of Bits View report
Funds Recovery
Recovered
$5.8M
Net Loss
$1,996,800
Evidence
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.