PANews reported on September 5th that, according to The Block, the decentralized exchange Bunni released a review report on Tuesday regarding a vulnerability attack that resulted in $8.4 million in losses. The report stated that the attack affected two trading pools: the weETH/ETH trading pair on Unichain and the USDC/USDT trading pair on the Ethereum mainnet. The vulnerability stemmed from an issue with the rounding direction used when updating idle balances in the smart contract, which occurred during user withdrawals. The attacker exploited this error to launch a flash loan attack, manipulating prices and liquidity in the trading pools. First, the attacker borrowed 3 million USDT through a flash loan and performed multiple token swaps to manipulate the price, reducing the available USDC to just 28 wei. The attacker then exploited rounding errors in 44 small withdrawals to further deplete the USDC balance, significantly reducing the total liquidity of the trading pool. Finally, the attacker executed a large token swap to inflate the price, then reversed the swap at the manipulated price. Bunni stated that all rounding operations tested secure individually, but combined they created a vulnerability. The rounding code has been updated and cross-chain withdrawals have been restored, but deposits, swaps, and other functions remain suspended. The platform is working with law enforcement to trace the funds transferred to Tornado Cash and is offering a 10% return bounty to the attacker. Future improvements to the testing framework will ensure a comprehensive and secure recovery.PANews reported on September 5th that, according to The Block, the decentralized exchange Bunni released a review report on Tuesday regarding a vulnerability attack that resulted in $8.4 million in losses. The report stated that the attack affected two trading pools: the weETH/ETH trading pair on Unichain and the USDC/USDT trading pair on the Ethereum mainnet. The vulnerability stemmed from an issue with the rounding direction used when updating idle balances in the smart contract, which occurred during user withdrawals. The attacker exploited this error to launch a flash loan attack, manipulating prices and liquidity in the trading pools. First, the attacker borrowed 3 million USDT through a flash loan and performed multiple token swaps to manipulate the price, reducing the available USDC to just 28 wei. The attacker then exploited rounding errors in 44 small withdrawals to further deplete the USDC balance, significantly reducing the total liquidity of the trading pool. Finally, the attacker executed a large token swap to inflate the price, then reversed the swap at the manipulated price. Bunni stated that all rounding operations tested secure individually, but combined they created a vulnerability. The rounding code has been updated and cross-chain withdrawals have been restored, but deposits, swaps, and other functions remain suspended. The platform is working with law enforcement to trace the funds transferred to Tornado Cash and is offering a 10% return bounty to the attacker. Future improvements to the testing framework will ensure a comprehensive and secure recovery.

Bunni points to smart contract rounding errors as the cause of an $8.4 million flash loan exploit

2025/09/05 11:50

PANews reported on September 5th that, according to The Block, the decentralized exchange Bunni released a review report on Tuesday regarding a vulnerability attack that resulted in $8.4 million in losses. The report stated that the attack affected two trading pools: the weETH/ETH trading pair on Unichain and the USDC/USDT trading pair on the Ethereum mainnet. The vulnerability stemmed from an issue with the rounding direction used when updating idle balances in the smart contract, which occurred during user withdrawals. The attacker exploited this error to launch a flash loan attack, manipulating prices and liquidity in the trading pools.

First, the attacker borrowed 3 million USDT through a flash loan and performed multiple token swaps to manipulate the price, reducing the available USDC to just 28 wei. The attacker then exploited rounding errors in 44 small withdrawals to further deplete the USDC balance, significantly reducing the total liquidity of the trading pool. Finally, the attacker executed a large token swap to inflate the price, then reversed the swap at the manipulated price. Bunni stated that all rounding operations tested secure individually, but combined they created a vulnerability. The rounding code has been updated and cross-chain withdrawals have been restored, but deposits, swaps, and other functions remain suspended. The platform is working with law enforcement to trace the funds transferred to Tornado Cash and is offering a 10% return bounty to the attacker. Future improvements to the testing framework will ensure a comprehensive and secure recovery.

Market Opportunity
USDCoin Logo
USDCoin Price(USDC)
$1.0002
$1.0002$1.0002
0.00%
USD
USDCoin (USDC) Live Price Chart
Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.