Rari Capital Hack

TOTAL LOST $15.7M
High Price Oracle Attack / Flash Loan Attack ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered - No recovery reported
All-Time Rank #259 By amount stolen
Auditors 2 Prior security audits

Incident Overview

Rari Capital Ethereum Pool exploited through manipulation of ibETH.totalETH() value, resulting in the withdrawal of more ETH than deposited by the attacker.

The attacker initiated the exploit by flash loaning ETH from dYdX and depositing it into the Rari Capital Ethereum Pool. They then manipulated the value of ibETH.totalETH() to artificially inflate it. This allowed them to withdraw more ETH from the Rari Capital Ethereum Pool than they had initially deposited.

The value of ibETH.totalETH() returned to its true value at the end of ibETH.work, leaving the Rari Capital Ethereum Pool’s balances lower than before the attack due to the attacker's inflated withdrawal.

The attacker's address:

https://etherscan.io/address/0xcb36b1ee…512233

The transactions behind the attack:

https://bloxy.info/txs/calls_from/0xcb36b1ee…512233?signature_id=1286331&smart_contract_address_bin=0x67b66c99…0b9c7a

The transactions of stolen funds deposited into the Tornado Cash mixer:

https://bloxy.info/txs/calls_from/0xcb36b1ee…512233?signature_id=994162&smart_contract_address_bin=0x722122df…5b6967

Incident Report

Protocol / Project Rari Capital
Date of Incident
Affected Chain(s) ethereum
Attack Technique Price Oracle Attack / Flash Loan Attack
Classification Protocol Logic / Yield Aggregator
Primary Source View Post-Mortem

Protocol Information

Protocol Type Yield Aggregator
Affected Token RGT
Smart Contract Language Solidity
Official Website rari.capital/
Protocol Twitter/X @RariCapital
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
DeFi Ethereum Ecosystem Binance Launchpool YZi Labs Portfolio Lending & Borrowing Arbitrum Ecosystem BNB Chain Ecosystem Base Ecosystem

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 price oracle attack / flash loan attack and Solidity and EVM internals
Capital Required Flash loan capital (borrowed atomically, zero upfront cost)
On-Chain Access Ability to interact with ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Rari Capital's contract logic - root cause: protocol logic / yield aggregator
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 Price Oracle Attack / Flash Loan Attack vulnerabilities in code review
Audited by Quantstamp, DeFi Safety — still lost $15.7M. Prior audits don't guarantee safety, especially after post-audit code changes.

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

  • Verify all logic paths related to Price Oracle Attack / Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
  • Audit oracle price feeds for manipulation risks - ensure time-weighted average prices (TWAPs) or multi-source aggregators are used, not spot prices
  • 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

Security Audit History

Related Attack Classes

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

See all Flash Loans Attacks examples →

Sources & References

Learn to Prevent the Next Rari Capital

The Rari Capital 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