Cream Finance Hack: $130 Million Stolen in Exploit
Summary
On October 27, 2021, Cream Finance, a decentralized finance (DeFi) platform, fell victim to a sophisticated attack resulting in the theft of $130 million worth of cryptocurrency. The attacker exploited vulnerabilities in Cream Finance’s lending pool contract and manipulated the price oracle, allowing them to carry out a series of orchestrated transactions that ultimately drained the protocol of its liquidity.
Attackers
The attackers remain unidentified.
Losses
$130M USD
Timeline
- October 27, 2021, 01:54:10 PM +UTC Attacker’s transaction
- October 28, 2021, 03:17 AM +UTC: Cream Finance announced that the protocol was successfully attacked.
- October 28, 2021: Blockchain security firm Slow Mist published attack analysis
- November 1, 2021: Cream Finance published exploit Post-Mortem.
- November 13, 2021: Cream Finance announced that affected users will receive 1,453,415 CREAM tokens
- November 9, 2022: Immunefi published hack analysis
Security Failure Causes
- Uncapped Token Supply: Cream Finance allowed users to supply tokens without strict limits, making it susceptible to manipulation. The attacker leveraged this design flaw by repeatedly supplying the same asset, artificially inflating the collateral value and triggering additional borrowing capacity.
- Oracle Vulnerability: The use of an easily manipulatable hybrid oracle exacerbated the attack. The oracle, based on the Yearn 4-Curve pool’s assets, allowed the attacker to double the value of certain tokens, leading to significant distortions in the protocol’s health calculations. The protocol relied on this oracle to determine the value of collateral and borrowed tokens.
- Lack of Reentrancy Guard: Cream Finance lacked a protocol-level reentrancy guard, leaving it vulnerable to reentrancy attacks. This deficiency enabled the attacker to execute a series of complex transactions with precision.