PARALUNI Hack

Reported loss $1.7M
BNB Chain
Other

What happened

Paraluni's March 2022 exploit combined unvalidated token inputs with reentrancy in its MasterChef deposit flow. A callback let the attacker receive double credit for liquidity-provider tokens and withdraw more assets than they had deposited.

Technical root cause

depositByAddLiquidity did not validate token addresses against the selected pool. A reentrant deposit during a token callback increased the balance measured by the outer call, causing the same LP tokens to be credited twice.

How it happened

  1. Flash-borrowed BTCB and WBNB were used to create LP tokens held by an attacker-controlled contract.
  2. The attacker called depositByAddLiquidity with malicious token addresses that did not match the pool's reserve tokens.
  3. A malicious transferFrom callback deposited the LP tokens into MasterChef. The outer liquidity call also counted the resulting balance increase, crediting the attacker twice.
  4. The attacker redeemed the excess credit and withdrew the underlying assets.

Protocol details

Classification Exchange (DEX) / Ecosystem / Reentrancy
Protocol Type Yield
Implementation language Solidity
Protocol links Website @paraluni

Build your security review skills

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