ChainBleedv0.1 · open intel
← back to feed·BSCORACLE2021-05-19 · 5y ago
Incident · DEFILLAMA

Bunny

Flashloan Price Oracle Attack
Estimated loss
$45.00M
VERDICT —AUDIT-CATCHABLE
Spot-DEX-price oracle feeding mint logic is a canonical pre-deploy finding; every persona with the oracle-manipulation knowledge file flags `IUniswapV2Pair.getReserves()` (or `balanceOf(pair)`) as the price source for a sensitive operation.
▰ METHOD
Flashloan Price Oracle Attack
ORACLEBYTECODE CATCHABLEAI SCANNABLE
Root cause

PancakeBunny's `VaultFlipToFlip` strategy computed BUNNY mint rewards using `getBunnyPrice()`, which read the spot price of the WBNB/BUNNY PancakeSwap pair as `WBNB.balanceOf(pair) / BUNNY_AMOUNT`. The attacker took a ~$700M WBNB flashloan from PancakeSwap, deposited WBNB/BUNNY LP into the vault, then manipulated the WBNB-BUNNY reserves by pumping WBNB into the pair before calling `getReward()`. Because BUNNY emissions scale linearly with the dollar value of staked LP measured via the manipulated spot price, the vault minted ~6.97M BUNNY to the attacker, which was instantly dumped against the same pair, crashing BUNNY ~99%. The bug is a single-block spot-price oracle on a manipulable on-chain reserve with no TWAP, no Chainlink reference, no liquidity-floor check — combined with mint authority that scales with the queried price.

▰ PROOF OF CONCEPT
DEFIHACKLABS
src/test/2021-05/PancakeBunny_exp.sol
view forked test on github ↗

Reproducible Foundry test fork from SunWeb3Sec/DeFiHackLabs. Clone the repo, run forge test against the file path above, and replay the exploit against a mainnet fork at the historical block. Use for reproduction only — not for live targets.

Forensic narrative

Classification: Ecosystem. Technique: Flashloan Price Oracle Attack. Target type: DeFi Protocol. Affected chains: BSC. Implementation language: Solidity.

Primary source
https://rekt.news/pancake-bunny-rekt/
Sourced from
DefiLlama Hacks dataset · api.llama.fi/hacks
Technical record
chain
bsc
protocol
Bunny
bug_class
oracle
date_occurred
2021-05-19
loss_usd
$45,000,000
classification
Ecosystem
technique
Flashloan Price Oracle Attack
target_type
DeFi Protocol
language
Solidity
source_id
dl:254
Related — same bug class· oracle
2026-05-03
1mo ago
BSC
TUB
BSC token contract exploit (vector undisclosed)
oracle
$27.7K
UNRATED
2026-05-01
1mo ago
ARB
Sharwa.Finance
Oracle Price Manipulation
oracle
$32.9K
UNRATED
2026-04-28
1mo ago
BSC
JUDAO
Price Manipulation
oracle
$228.0K
UNRATED
2026-04-27
1mo ago
BASE
Singularity Finance
Oracle Misconfiguration Exploit
oracle
$413.0K
UNRATED
2026-04-27
1mo ago
Singularity Finance
Contract Vulnerability
oracle
$413.0K
UNRATED
2026-04-27
1mo ago
Singularity Finance
Exploit
oracle
$413.0K
UNRATED
ChainBleed — live web3 threat intelligence