Rikkei Finance Hack

Reported loss $1.1M
BNB Chain
Oracle Issue

What happened

On April 15, 2022, an attacker drained about $1.1 million from Rikkei Finance's BSC lending pools after replacing the legitimate collateral oracle with a malicious contract. The public setOracleData function lacked authorization, so the attacker inflated rBNB collateral's value and borrowed assets from multiple pools.

How it happened

  1. The attacker obtained a small amount of rBNB collateral.
  2. It called the public setOracleData() function to replace the legitimate rBNB oracle with a malicious price source.
  3. The inflated rBNB valuation allowed borrowing of USDC, BTCB, DAI, USDT and BUSD from the lending pools.
  4. The attacker exchanged the borrowed assets for BNB and sent the proceeds to Tornado Cash.

Protocol details

Classification NFT / Borrowing and Lending / Access Control
Protocol Type Lending
Affected asset / contract RIFI
Implementation language Solidity
Protocol links Website @rikkeifinance

Security review history

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.