Bunni DEX Paused Following $2.4M Exploit of Liquidity Function

King A

September 3, 2025

Exploit

Bunni DEX Paused Following $2.4M Exploit of Liquidity Function

Key Takeaways

  • Decentralized exchange (DEX) Bunni was exploited for approximately $2.4 million after an attacker manipulated a flaw in its custom liquidity rebalancing logic.

  • The attacker was able to drain stablecoins by executing a series of specially sized trades that caused the platform’s liquidity distribution function to break.

  • The Bunni exploit is part of a broader trend of increasing crypto hacks, which topped $163 million in August, with attackers now focusing on more complex, high-value targets.

In a new blow to the decentralized finance (DeFi) sector, the Bunni decentralized exchange (DEX) has been paused after a security exploit led to a loss of approximately $2.4 million in stablecoins.

According to on-chain data and security analysts, the attack was not a simple smash-and-grab but a sophisticated manipulation of the platform’s liquidity rebalancing function, which highlights the increasing complexity of crypto security threats.

A Flaw in Custom Logic

A decentralized exchange (DEX) is a peer-to-peer marketplace that allows users to trade crypto assets directly from their wallets using smart contracts, eliminating the need for a centralized intermediary.

Bunni, which is built on top of Uniswap v4, uses a custom mechanism called the Liquidity Distribution Function (LDF) to optimize liquidity allocation.

However, according to early analysis, an attacker discovered a flaw in this custom logic, enabling them to execute trades of very specific sizes that triggered a faulty rebalancing calculation.

This manipulation provided the attacker with inaccurate results for how much each liquidity provider’s share was worth, allowing them to gradually drain funds from the protocol.

Broader Trend of Crypto Hacks

The Bunni exploit is part of a larger, troubling trend of increasingly complex crypto attacks. According to security firm PeckShield, crypto hacks and scams in August totaled over $163 million, a 15% increase from the previous month.

Security experts are noting a shift in hacker behavior, with attackers now focusing on more complex targets like DEXs, rather than smaller projects.

Final Thoughts

The Bunni exploit is a harsh lesson in the importance of robust security for decentralized platforms. While DeFi innovation often outpaces security, this incident shows that a single flaw in a platform’s custom logic can have severe consequences.

Frequently Asked Questions

What is a decentralized exchange (DEX)?
A decentralized exchange (DEX) is a cryptocurrency exchange that allows users to trade directly with each other using smart contracts, without the need for a central authority.

What is “liquidity rebalancing”?
“Liquidity rebalancing” is the process of adjusting the amounts of assets in a DEX’s trading pools to maintain stability and efficiency.

Why did this exploit target Bunni’s custom logic?
The attacker targeted Bunni’s custom logic because a flaw in its unique Liquidity Distribution Function (LDF) allowed them to manipulate the calculation and drain funds, a weakness that would not have existed on a standard Uniswap protocol.