Cauldron Hack
What happened
The biggest flash loan attack on Avalanche in 2022 was detected. The attacker took 370,000 $USD after interacting with several assets.
The attacker interacted with Cauldron, Aave, JoeSwap, and Curve for various purposes. The attacker used a malicious smart contract with an unverified source code to withdraw 998,000 $nxUSD using LP tokens worth 500,000 $USDC. The full attack flow of the exploit transaction succeeded as follows:
- The attackers malicious contract flashloaned 51,000,000 $USDC from Aave
- 280,000 $USDC were swapped to $WAVAX with JoeSwap
- liquidity was added using claimed $WAVAX and 260,000 $USDC so 0.0045 JoeLPToken was received
- The remaining 50,460,000 $USDC were swapped for $WAVAX on JoeSwap and it changed the reserve of the pool
- The attackers contract called the updateExchangeRate function on the CauldronV2 smart contract, which changed the ExchangeRate variable according to the previous JoeSwap pool's reserve amount
- The attackers contract deposited 0.0045 JoeLPToken to the CauldronV2 and 998,000 $nxUSD were withdrawn from DegenBox. Because of the manipulated ExchangeRate variable, the attacker was able to take that amount for 500,000 $USD worth JoeLPTokens
- The remaining $WAVAX were swapped back for 50,426,896 $USDC on the previous JoeSwap pool
- Consequently, Curve.fi and other pools were used to swap 998,000 $nxUSD for 970,010 $USDC
- The 51,025,500 $USDC for the flash loan were paid back to Aave
- The profit amounted to 371,406 $USDC and were transferred to an EOA address.
CauldronV2 vulnerable contract:
https://snowtrace.io/address/0xe767c6c3…c4c060
Exploit transaction:
https://snowtrace.io/tx/0x0ab12913…54c026
Attacker address:
https://snowtrace.io/address/0x69992a2e…a0b1af
Attacker smart contract:
https://snowtrace.io/address/0x16b94c63…6e49d6
DegenBox contract:
https://snowtrace.io/address/0x0b1f9c22…59b775
Stolen funds sent to:
https://snowtrace.io/address/0x8ec74e6f…378381
Case & protocol details
Evidence & learning
Attack pattern
Compare incidents →Sources and on-chain records
- report Report archive.is
- report Report archive.is
Practice this exploit pattern safely
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.