Agave Hack

Reported loss $5.5M
Gnosis Chain
Liquidation callback reentrancy

What happened

Agave lost about $5.5 million in the March 15, 2022 Gnosis Chain attack. Its developers' postmortem identifies reentrancy during liquidation: a bridged WETH callback let the attacker change collateral before a stale check disabled it. The simultaneous Hundred Finance loss was separate.

Technical root cause

A token-transfer callback changed collateral before liquidation applied a stale collateral-usage check.

How it happened

  1. Liquidation cached the borrower's starting collateral balance.
  2. Burning the collateral receipt token transferred bridged WETH, which called back into attacker code.
  3. During the callback, the attacker deposited more collateral and borrowed against it.
  4. The resumed liquidation used the old balance to disable that collateral. The attacker could then withdraw it while leaving loans unpaid.

Protocol details

Classification Ecosystem / Borrowing and Lending / Reentrancy
Protocol Type Lending
Affected asset / contract AGVE
Implementation language Solidity
Protocol links Website @Agave_lending

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.