🚨SlowMist TI Alert🚨
💸 @Balancer Loss: ~234k USD
🔍 Root Cause: Balancer V1 BPool `joinswapPoolAmountOut` lets caller specify BPT output while `calcSingleInGivenPoolOut` reverse-computes input via 18-decimal fixed-point math. After attacker compressed WBTC reserves to dust via public swaps, the computed input rounded down to 1 satoshi WBTC yet full BPT was minted. Missing: minimum effective input, minimum pool balance, and relative-error validation; `MIN_BALANCE` only enforced in `bind/rebind`.
📌 Attacker: 0x338c7ec9befbb451d66fd8a468c32184f5689a41 📌 Attack Contract: 0x9caa8d0e44b22f50057d2f4ce0d1446529e11be3 📌 Vulnerable Contract: 0x2257aaac34bcb27900291f7b84ee2565a6cbac57
Impact: Nested flash loans (Spark/Aave, Morpho, Uniswap V3) funded WBTC reserve compression; 4,408.8 BPT minted at 1-satoshi WBTC per join, then proportionally exited to drain DPI, USDC, WETH, WBTC from the pool.
Powered by Tx:
Link: https://t.co/Mz5jOnx997
Link: https://t.co/2Ga2e5c3Hp
Link: https://t.co/wmklYyZ0xB
Link: https://t.co/qBdOaNi7GI
Link: https://t.co/9EzYuQX9wI
Link: https://t.co/INbfTCmBo3
