Raft Hack
What happened
Raft lending platform was exploited due to a precision calculation issue, resulting in a loss of 3,304,406 USD worth 1575.67 ETH.
Raft is a lending and borrowing platform that runs R stablecoin. On November 10, 2023, a precision calculation issue was exploited, allowing the attacker to mint ~$6.7 million unbacked R and sell R, causing R's depeg. The attacker borrowed 6,000 cbETH from AAVE via a flash loan and exploited the divUp function's behavior to mint extra share tokens.
They then redeemed a nominal amount of rcbETH-c for a significant quantity of cbETH and borrowed substantial amounts of R. The attacker swapped the minted R for 1575 ETH, but burned 1,570 ETH, resulting in a loss of 3,304,406 USD worth 1575.67 ETH for the project.
Attacker Address:
https://etherscan.io/address/0xc1f2b71A…d439fA
Malicious Transaction:
https://etherscan.io/tx/0xfeedbf51…75ace7
Malicious Contract Address:
https://etherscan.io/address/0x0A334012…315ef8
TornadoCash Funding Transaction:
https://etherscan.io/tx/0x86e9ee13…7ea50e
Case & protocol details
Security review history
- Trail of Bits Report
Evidence & learning
Proof of concept
1 availableSources and on-chain records
- report Report twitter.com
- report Post-mortem mirror.xyz
- analysis Twitter/X Alert twitter.com
- analysis Web Archive archive.ph
- analysis Website reference coindesk.com
Practice this exploit pattern safely
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.