Compound Labs Hack
Incident Overview
Two big liquidations occurred on Compound Protocol due to the $DAI price spike.
Compound is the lending protocol that also provides yield functionality. Around $89 million was liquidated on the protocol Compound due to the oracle issue, as far as Compound's oracle uses Coinbase for pricing data. The price of $DAI token spiked up to $1.3 on the Coinbase Pro exchange.
Since many of the loans were undercollateralized, they were liquidated.
$46 million liquidation transaction:
https://etherscan.io/tx/0x53e09adb…50f3e4
Address liquidated on $17.5 million in several transactions:
https://etherscan.io/address/0xb1adcedd…029484
Incident Report
Protocol Information
What the Attacker Needed to Succeed
Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.
What Auditors Should Check
If you're auditing a protocol with similar architecture to Compound Labs, these are the critical security checks that could have prevented this incident (November 2020).
- Verify all logic paths related to Oracle Issue are guarded by proper access controls and input validation - see the Oracle Manipulation & Price Manipulation attack class for patterns
- Audit oracle price feeds for manipulation risks - ensure time-weighted average prices (TWAPs) or multi-source aggregators are used, not spot prices
- Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs
Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.
Free TrialRelated Attack Classes
The technique used in this hack maps to these vulnerability classes in our security curriculum:
Sources & References
-
01
Source 1 https://archive.is/sF02c
Learn to Prevent the Next Compound Labs
The Compound Labs hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.