Rari Fuse Hack

TOTAL LOST $79.7M
High #96 All-Time Reentrancy

Summarize with AI

Affected Chain 2022 Incident surface
Recovered $79.7M 100.0% returned
All-Time Rank #96 By amount stolen
Auditors 2 Prior security audits

Incident Overview

Seven of Rari's Fuse pools were drained due to re-entrancy attack. The total amount of losses is ~$80m.

Rari enables the creation of so-called Fuse Pools permissionless lending pools that anyone with a wallet can access from anywhere to lend or borrow ERC-20 tokens.

The attack drained Rari's pools while Rairy's pools were unaffected. Fei Rari uses a fork of the Compound code that doesn't follow the check-effect-interaction pattern which the attacker took advantage making a re-entrancy attack via CEther which uses call.value to send ETH.

Attack flow:

1) Attacker flash loaned 150m USDC and 50k WETH

2) Deposited 150m USDC as collateral into fUSDC-127 contract for loans. This contract is a fork of vulnerable smart-contract of Compound protocol.

3) The attacker borrows 1,977 ETH via borrow() function

4) As the borrow() function does not follow the check-effect-interaction pattern and transfers ETH to the attacker’s contract before updating the attacker’s borrow records.

5) As the attacker’s borrow record not updated, the attacker made a re-entrant call to exitmarket() that allows the attacker to withdraw his collateral.

The attacker repeated the following actions, repaid the flash loan, and kept the remaining profit for himself.

Funds lost:

ETH - 6 037.81

FEI - 20 251 603.11

DAI - 14 278 990.68

LUSD - 1 948 952.18

USDC - 10 055 556.33

USDT - 132 959.90

RAI - 31 615.87

FRAX - 13 101 364.94

UST - 2 765 891

Total lost in USD: 79 749 026$

Update 22.09.2022:

Tribe DAO which is a conglomerate of Midas Capital, Rari Capital, Fei Protocol and Volt Protocol has passed an on-chain vote with 99% consent to fully reimburse the $80m in losses victims suffered in the Rari capital exploit.

Attacker Address: https://etherscan.io/address/0x6162759e…66157F

Attack transactions:

ETH: https://etherscan.io/tx/0xab486012…e76530

Arbitrum: https://arbiscan.io/tx/0x3212d091…3203ef

Attacker contracts:

1) https://etherscan.io/address/0xE39f3C40…8a2bc1

2) https://etherscan.io/address/0x32075bad…d36c45

Incident Report

Protocol / Project Rari Fuse
Date of Incident
Attack Technique Reentrancy
Classification Borrowing and Lending

Protocol Information

Protocol Type Exploit/Reentrancy
Protocol Twitter/X @feiprotocol
Team Anonymous
Source Code Verified On-Chain

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of reentrancy and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Rari Fuse's contract logic - root cause: borrowing and lending
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Yes — skilled auditors routinely flag Reentrancy vulnerabilities in code review
Audited by Quantstamp, OpenZeppelin — still lost $79.7M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Rari Fuse, these are the critical security checks that could have prevented this incident (April 2022).

  • Verify all logic paths related to Reentrancy are guarded by proper access controls and input validation - see the Reentrancy attack class for patterns
  • Check that all state-changing functions follow the Checks-Effects-Interactions (CEI) pattern to prevent reentrancy and logic ordering bugs
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Funds Recovery

100.0%

Recovered

$79.7M

Net Loss

0

Security Audit History

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Reentrancy examples →

Sources & References

Learn to Prevent the Next Rari Fuse

The Rari Fuse hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial