Worked example · 2023
Hundred Finance Compound V2 fork exploit — Optimism — 2023-04-15
Summary
Hundred Finance was a multi-chain lending protocol that forked Compound Finance V2. On 2023-04-15 an attacker exploited the hWBTC market on its Optimism deployment. Per Decrypt (quoting CertiK), the attacker manipulated the exchange rate between the ERC-20 token and its hToken by donating a large amount of wrapped Bitcoin to the contract that sets the rate, then borrowed against the inflated value and redeemed a small amount of hWBTC to recover the donation. PeckShield's summary, as relayed by secondary coverage, was a 200 WBTC donation. A Rekt write-up describes the donation moving an empty market's rate, and a BlockSec analysis treats the incident as the start of a wave of precision-related exploits on vulnerable Compound forks.
Sources cited here do not support an attack spanning multiple Hundred Finance chains; they place the loss on Optimism. See also examples/2023-hundred-finance-compound-v2-fork-cascade.md (a sibling file).
Timeline (UTC)
| When | Event | OAK ref |
|---|---|---|
| 2023-04-15 | Attacker donates WBTC to inflate the hWBTC exchange rate on Hundred Finance's Optimism deployment and drains lending pools; ~$7M–$7.4M lost | T9.007 |
| 2023-04-15 | Hundred Finance discloses the exploit and says it is trying to open communication with the attacker | (incident response) |
Public references
[decrypt2023hundred]— Decrypt, "Hacker Exploits Hundred Finance Protocol In $7.4 Million Heist" (2023-04-15): https://decrypt.co/136918/hacker-exploits-hundred-finance-protocol-in-7-4-million-heist[blocksec2023hundred]— BlockSec, "Hundred Finance incident: catalyzing the wave of precision-related exploits in vulnerable forked protocols": https://blocksec.com/zh/blog/6-hundred-finance-incident-catalyzing-the-wave-of-precision-related-exploits-in-vulnerable-forked-protocols[rekt2023hundred]— Rekt, "Hundred Finance - REKT 2": https://alpha.rekt.news/hundred-rekt2