Bunni V2 Hack

TOTAL LOST $8.4M
Medium Liquidity Distribution Function Exploit / Other ethereum unichain

Summarize with AI

Affected Chain ethereum 2 chains affected
Recovered - No recovery reported
All-Time Rank #337 By amount stolen
Auditors 1 Prior security audit

Incident Overview

On September 2, 2025, Bunni DEX, a decentralized exchange built on Uniswap v4, suffered a multi-chain exploit that drained approximately $8.4 million in cryptocurrency. The attack targeted the BunniHub contract system with $2.3 million stolen on Ethereum and an additional ~$6.1 million from an earlier attack on Unichain, prompting the platform to pause all smart contract functions across networks.

The attacker exploited vulnerabilities in Bunni's custom Liquidity Distribution Function (LDF), which replaces Uniswap's standard logic to optimize returns for liquidity providers. By executing trades of very specific sizes, the exploiter manipulated the LDF curve and triggered faulty rebalancing calculations within the protocol's adaptive mechanisms. This caused the system to miscalculate liquidity provider share ownership, creating opportunities for gradual fund drainage.

The exploit specifically targeted how Bunni handles liquidity rebalancing across price ranges on its Uniswap v4-based infrastructure using the "hooks" feature. The attack occurred in two phases: an earlier exploit on Unichain network and a subsequent attack on Ethereum's mainnet targeting the BunniHub contract. Bunni's team immediately suspended all contract operations and urged users to withdraw funds while investigations continue.

Ethereum Exploit Transaction:

0x1c27c4d6…beb97b

Unichain Exploit Transaction:

0x4776f311…a1d451

Attacker Wallets (Ethereum):

0xe04efd87…464f2b ($1.33M USDC, $1.04M USDT)

0x18a0Aa63…969263

Incident Report

Protocol / Project Bunni V2
Date of Incident
Affected Chain(s) ethereum unichain
Attack Technique Liquidity Distribution Function Exploit / Other
Classification Protocol Logic / Exchange (DEX)
Primary Source View Post-Mortem

Protocol Information

Protocol Type Dexs
Smart Contract Language Solidity
Official Website bunni.xyz/
Protocol Twitter/X @bunni_xyz
Team Anonymous
Source Code Unverified

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 liquidity distribution function exploit / other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with ethereum, unichain smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Bunni V2's contract logic - root cause: protocol logic / exchange (dex)
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? Likely — with a thorough Liquidity Distribution Function Exploit / Other audit checklist and test coverage
Audited by Audit Report 1 — still lost $8.4M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Bunni V2, these are the critical security checks that could have prevented this incident (September 2025).

  • Verify all logic paths related to Liquidity Distribution Function Exploit / Other are guarded by proper access controls and input validation
  • 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

Sources & References

Learn to Prevent the Next Bunni V2

The Bunni V2 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