Compound project favicon

Compound

Multi-Chain
Last audited on 2024/06/12
No active critical issues

Last Issues (17)

Low
Medium
High
Critical
Total
Not fixed
3---3
Fixed
941-14
Total1241017

Reported rekts

Compound Labs was reported as rekt on 2021/09/29
Click to show description
Quick Summary

Compound's new proposal caused a loss of 237,000 $COMP tokens due to the smart contract issue


Details of the Exploit
Compound's governance Proposal 62 changed the distribution in the Comptroller contract to liquidity suppliers and borrowers from a
previous 50:50 split to new governance proposed ratios:
https://compound.finance/governance/proposals/62

However, the Comptroller contract contains a bug, causing some users to receive too much COMP. The Comptroller received tokens for
distribution from the Reservoir contract at:
https://etherscan.io/tx/0xe76167796646eb447cf53a72f1b912ad5028e64f8c8129b1a3fb71c1379f2322

84,000,000 in $COMP tokens are at risk

Approximately 237,000 $COMP tokens are already distributed between different addresses and can be calculated as a loss at the
current moment.




Block Data Reference

The examples of transactions that trigger the bug:
https://etherscan.io/tx/0xc9244e5349f49f3b74a54a882e71f1ca11ba14ed74f73bf2cd091ed8be2b0001
https://etherscan.io/tx/0xbc246c878326f2c128462d08a0b74048b1dbee733adde8863f569c949c06422a
https://etherscan.io/tx/0xd77300cd5f10d835d60aa7560ab6a140887e6f84cc76b7911e83a46293492f94
https://etherscan.io/tx/0xc9244e5349f49f3b74a54a882e71f1ca11ba14ed74f73bf2cd091ed8be2b0001
https://etherscan.io/tx/0x0fefe4a123e9137e7725e07166ddd0e29e8e4a2e3f71d788c6edec6bf13b45c1
https://etherscan.io/tx/0xf3731f0e45a2a14fa93345453f10c793b29b707a92cb50d05a7ec5a4d280a973
https://etherscan.io/tx/0xb6d5122afe04a9905adc5de7f708cabc5821e65fb7d6f0bfd571d35b1ddab7f2
https://etherscan.io/tx/0xf4bfef1655f2092cf062c008153a5be66069b2b1fedcacbf4037c1f3cc8a9f45
https://etherscan.io/tx/0xee318650ae8bcf83517e77e8654d40201990080fcb888087f737aea28e70bdb1




Comptroller contract:
https://etherscan.io/address/0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b

Reservoir contract:
https://etherscan.io/address/0x2775b1c75658be0f640272ccb8c72ac986009e38

List of addresses, which claimed a huge amount of tokens:
https://twitter.com/0xngmi/status/1443442885618278407


Audits (17)

#NameAuditorDateChainsIssues
1Compound Quark Smart ContractsChainSecurity2024/06/12
Off-Chain (Private)
No active critical issues
2Compound SUPTBChainSecurity2023/11/06
Off-Chain (Private)
No active critical issues
3Compound IIIChainSecurity2023/01/16
Off-Chain (Private)
No active critical issues
4cToken (unredacted)ChainSecurity2022/11/26
Off-Chain (Private)
No active critical issues
5Compound III AuditOpenZeppelin2022/07/20
Off-Chain (Private)
No active critical issues
6Compound Comprehensive Prot...OpenZeppelin2022/03/21
Off-Chain (Private)
1 active critical issue
7Compound Governor Bravo AuditOpenZeppelin2021/02/12
Off-Chain (Private)
No active critical issues
8Compound Open Price FeedOpenZeppelin2020/07/17
Off-Chain (Private)
No active critical issues
9Compound COMP Distribution ...OpenZeppelin2020/05/22
Off-Chain (Private)
No active critical issues
10Compound: Tether Integratio...OpenZeppelin2020/04/26
Off-Chain (Private)
No active critical issues