BitBay

Funds lost
$15K
Attack type
Other
Network
Polygon
Category
Yield Aggregator

Summary

On October 9, 2026, BitBay’s UsdcDaiV4Vault on Polygon was exploited for approximately ~$14,800 USD (14,838.47 DAI ) due to an edge-case logic flaw in _withdraw() that transferred the contract's entire DAI balance when vault liquidity equaled zero.

Details of the Exploit

The vulnerability existed in BitBay's DAI/USDC vault contract (0x048E...) within its internal _withdraw() function. The logic contained a faulty check: when vault liquidity == 0, it transferred the entire token balance held by the vault contract directly to the caller instead of capping the payout to the user's proportional share holding. The attacker executed reposition() to force the vault into a zero-liquidity state, then redeemed just 1 minimal share unit.

This triggered the zero-liquidity withdrawal branch and allowed the attacker to extract the entire balance of 14,838.47 DAI.

Source: De.Fi REKT Database. Data as of November 19, 2026.

Related incidents

Learn more