Agave Hack
What happened
The attacker's address:
https://blockscout.com/xdai/mainnet/address/0xD041Ad9a…79E358/transactions
The attacks were made possible due to the xDAI token's architecture, which includes the function callAfterTransfer(), which creates a reentrancy vulnerability.
Using flash loans as collateral, the attacker(s) layered multiple borrow functions within one another, increasing the amount borrowed before the protocol could update the debt balance. Repeating this approach resulted in borrowing assets that were significantly more valuable than the collateral provided.
Stolen funds were bridged to Ethereum and deposited into Tornado Cash mixer:
https://etherscan.io/txs?a=0xd041ad9a…79e358
Case & protocol details
Evidence & learning
Attack pattern
Compare incidents →Proof of concept
1 availableSources and on-chain records
- report Post-mortem medium.com
- report Post-mortem rekt.news
- transaction Transaction gnosisscan.io
- analysis Website reference twitter.com
Practice this exploit pattern safely
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.