Worked example · 2023-08
Zunami Protocol price-manipulation drain via Curve pool — Ethereum — 2023-08-13
Summary
Zunami Protocol was a yield-aggregation protocol on Ethereum that issued the stablecoin UZD and the ETH-denominated zETH, backed by strategies that deposit into Curve and related venues. On 2023-08-13 an attacker exploited a price-caching weakness in the two products. Per Ackee, the attacker manipulated the LP price calculation in the MIMCurveStakeDao strategy by donating SDT tokens to it, the inflated price was cached for the whole block, and the attacker ran earlier operations in reverse order to profit; the zETH exploit took 26 WETH and the UZD exploit 1,178 WETH [ackeezunami].
CertiK's walkthrough of the UZD leg: flash loans from Uniswap V3 and Balancer, swaps through Curve pools into UZD and SDT, SDT sent to the strategy contract, SushiSwap prices pushed up via WETH/SDT and USDT/WETH swaps, a call to cacheAssetPrice() that raised the attacker's UZD balance from about 4.8M to 16.9M, unwinding of the price manipulation, swaps of the inflated UZD back through Curve, and repayment of about $32.4M of flash loans, leaving about 1,152 WETH [certikzunami]. UZD fell about 99% and zETH about 89% in the aftermath (reported by CryptoPotato in the search results; not separately fetched).
The attacker's proceeds were cashed out through Tornado Cash [merklezunami].
Realised extraction
Roughly 1,152-1,178 ETH (about $2.1M), depending on whether the figure is gross or after flash-loan repayment [certikzunami]. Laundered via Tornado Cash [merklezunami]; no recovery is reported in the cited sources.
T9.001 / T9.002 classification
The exploit is a price-manipulation attack in which the manipulated input was an internally computed, block-cached price rather than an external oracle feed (T9.001), funded atomically by flash loans (T9.002). The earlier-draft description of a Curve pool exchange rate acting as the protocol's oracle is not supported by CertiK or Ackee and was removed.
Public references
[certikzunami]— CertiK, "Zunami Protocol Incident Analysis" (2023-08-16): https://www.certik.com/ko/blog/zunami-protocol-incident-analysis[ackeezunami]— Ackee Blockchain, "Zunami hack post-mortem: what happened?" (2023-08-31): https://ackee.xyz/blog/wp-json/wp/v2/posts/555[merklezunami]— Merkle Science, "Hack Track: Zunami Flow of Funds Analysis" (2023-08-17): https://www.merklescience.com/blog/hack-track-zunami-flow-of-funds-analysis