Cream Finance Lending Attack: Difference between revisions

From Quadriga Initiative Cryptocurrency Hacks, Scams, and Frauds Repository
Jump to navigation Jump to search
(Created page with "{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/creamfinancelendingattack.php}} thumb|Cream FinanceCream Finance suffered a complex attack to the liquidity stored in their smart contract hot wallets. The attacker came from, and returned to TornadoCash, and didn't appear to respond to any attempts to contact them. The contracts in question have been disabled, and Cream Finance has so far only released Cream tokens to th...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/creamfinancelendingattack.php}}
{{Imported Case Study 2|source=https://www.quadrigainitiative.com/casestudy/creamfinancelendingattack.php}}
{{Unattributed Sources}}


[[File:Creamfinance.jpg|thumb|Cream Finance]]Cream Finance suffered a complex attack to the liquidity stored in their smart contract hot wallets. The attacker came from, and returned to TornadoCash, and didn't appear to respond to any attempts to contact them. The contracts in question have been disabled, and Cream Finance has so far only released Cream tokens to those affected, which many users reported having a market value of less than half the value of their lost assets.
[[File:Creamfinance.jpg|thumb|Cream Finance]]Cream Finance suffered a complex attack to the liquidity stored in their smart contract hot wallets. The attacker came from, and returned to TornadoCash, and didn't appear to respond to any attempts to contact them. The contracts in question have been disabled, and Cream Finance has so far only released Cream tokens to those affected, which many users reported having a market value of less than half the value of their lost assets.


This is a global/international case not involving a specific country.
This is a global/international case not involving a specific country.<ref name="slowmisthacked-3847" /><ref name="creamfinancemedium-3831" /><ref name="rektnews-4432" /><ref name="slowmistteamtwitter-4433" /><ref name="creamdotfinancetwitter-4434" /><ref name="creamdotfinancetwitter-4435" /><ref name="creamfinancemedium-4436" /><ref name="thedefiant-4437" /><ref name="peckshieldtwitter-4438" /><ref name="msn-4439" /><ref name="muditblog-4440" /><ref name="etherscan-4441" /><ref name="yahoofinance-4442" /><ref name="coindesk-4443" /><ref name="defiteller-4444" /><ref name="creamdotfinancetwitter-4445" /><ref name="creamfinance-4446" /><ref name="creamdotfinancetwitter-4447" /><ref name="certikorgtwitter-5451" /><ref name="cointelegraph-6291" /><ref name="coinbureau-6292" /><ref name="cryptonews-9844" /><ref name="carnegieendowment-9983" />


== About Cream Finance ==
== About Cream Finance ==
Line 85: Line 86:
!Description
!Description
|-
|-
|October 27th, 2021 12:00:00 AM
|October 27th, 2021
|Main Event
|Main Event
|Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.
|Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.
Line 93: Line 94:
|
|
|}
|}
== Technical Details ==
This section includes specific detailed technical analysis of any security breaches which happened. What specific software vulnerabilities contributed to the problem and how were they exploited?


== Total Amount Lost ==
== Total Amount Lost ==
Line 112: Line 116:
== Ongoing Developments ==
== Ongoing Developments ==
What parts of this case are still remaining to be concluded?
What parts of this case are still remaining to be concluded?
== General Prevention Policies ==
While Cream Finance may reduce the risks through eliminating long-tail assets, and wrapped assets can make it easier for hackers to cash out, the real solution is to have the majority of funds offline.
== Individual Prevention Policies ==
{{Prevention:Individuals:Placeholder}}


== Prevention Policies ==
{{Prevention:Individuals:End}}
While Cream Finance may reduce the risks through eliminating long-tail assets, and wrapped assets can make it easier for hackers to cash out, the real solution is to have the majority of funds offline.
 
== Platform Prevention Policies ==
{{Prevention:Platforms:Placeholder}}
 
{{Prevention:Platforms:End}}
 
== Regulatory Prevention Policies ==
{{Prevention:Regulators:Placeholder}}
 
{{Prevention:Regulators:End}}


== References ==
== References ==
[https://hacked.slowmist.io/en/?c=ETH SlowMist Hacked - SlowMist Zone] (Nov 5)
<references><ref name="slowmisthacked-3847">[https://hacked.slowmist.io/en/?c=ETH SlowMist Hacked - SlowMist Zone] (Nov 6, 2021)</ref>
 
<ref name="creamfinancemedium-3831">[https://medium.com/cream-finance/c-r-e-a-m-finance-is-coming-to-arbitrum-a806585d6102 C R E A M Finance Is Coming To Arbitrum] (Nov 6, 2021)</ref>


[https://medium.com/cream-finance/c-r-e-a-m-finance-is-coming-to-arbitrum-a806585d6102 C R E A M Finance Is Coming To Arbitrum] (Nov 5)
<ref name="rektnews-4432">[https://rekt.news/cream-rekt-2/ Rekt - Cream Finance - REKT 2] (Dec 14, 2021)</ref>


[https://rekt.news/cream-rekt-2/ Rekt - Cream Finance - REKT 2] (Dec 13)
<ref name="slowmistteamtwitter-4433">[https://twitter.com/SlowMist_Team/status/1453398034151194627 @SlowMist_Team Twitter] (Dec 14, 2021)</ref>


[https://twitter.com/SlowMist_Team/status/1453398034151194627 @SlowMist_Team Twitter] (Dec 13)
<ref name="creamdotfinancetwitter-4434">[https://twitter.com/CreamdotFinance/status/1454862129387880459 @CreamdotFinance Twitter] (Dec 14, 2021)</ref>


[https://twitter.com/CreamdotFinance/status/1454862129387880459 @CreamdotFinance Twitter] (Dec 13)
<ref name="creamdotfinancetwitter-4435">[https://twitter.com/CreamdotFinance/status/1454862106189201414 @CreamdotFinance Twitter] (Dec 14, 2021)</ref>


[https://twitter.com/CreamdotFinance/status/1454862106189201414 @CreamdotFinance Twitter] (Dec 13)
<ref name="creamfinancemedium-4436">[https://medium.com/cream-finance/post-mortem-exploit-oct-27-507b12bb6f8e Post Mortem Exploit Oct 27] (Dec 15, 2021)</ref>


[https://medium.com/cream-finance/post-mortem-exploit-oct-27-507b12bb6f8e Post Mortem Exploit Oct 27] (Dec 14)
<ref name="thedefiant-4437">[https://thedefiant.io/cream-finance-third-largest-exploit/ CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack - The Defiant] (Dec 15, 2021)</ref>


[https://thedefiant.io/cream-finance-third-largest-exploit/ CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack - The Defiant] (Dec 14)
<ref name="peckshieldtwitter-4438">[https://twitter.com/peckshield/status/1453364046904786950 @peckshield Twitter] (Dec 15, 2021)</ref>


[https://twitter.com/peckshield/status/1453364046904786950 @peckshield Twitter] (Dec 14)
<ref name="msn-4439">[https://www.msn.com/en-us/money/news/hackers-steal-130m-from-ethereum-based-defi-protocol-cream-finance/ar-AAQ4aIH Hackers Steal $130M From Ethereum-Based DeFi Protocol Cream Finance] (Dec 15, 2021)</ref>


[https://www.msn.com/en-us/money/news/hackers-steal-130m-from-ethereum-based-defi-protocol-cream-finance/ar-AAQ4aIH Hackers Steal $130M From Ethereum-Based DeFi Protocol Cream Finance] (Dec 14)
<ref name="muditblog-4440">[https://mudit.blog/cream-hack-analysis/ Creamed Cream - Learn the Secret Recipe (Cream Hack Analysis) - Mudit Gupta's Blog] (Dec 15, 2021)</ref>


[https://mudit.blog/cream-hack-analysis/ Creamed Cream - Learn the Secret Recipe (Cream Hack Analysis) - Mudit Gupta's Blog] (Dec 14)
<ref name="etherscan-4441">[https://etherscan.io/tx/0x0fe2542079644e107cbf13690eb9c2c65963ccb79089ff96bfaf8dced2331c92 Ethereum Transaction Hash (Txhash) Details | Etherscan] (Dec 15, 2021)</ref>


[https://etherscan.io/tx/0x0fe2542079644e107cbf13690eb9c2c65963ccb79089ff96bfaf8dced2331c92 Ethereum Transaction Hash (Txhash) Details | Etherscan] (Dec 14)
<ref name="yahoofinance-4442">[https://finance.yahoo.com/news/cream-finance-exploited-117m-defi-165911747.html CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack] (Dec 15, 2021)</ref>


[https://finance.yahoo.com/news/cream-finance-exploited-117m-defi-165911747.html CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack] (Dec 14)
<ref name="coindesk-4443">[https://www.coindesk.com/business/2021/10/27/cream-finance-exploited-in-flash-loan-attack-worth-over-100m/ Cream Finance Exploited in Flash Loan Attack Netting Over $100M] (Dec 15, 2021)</ref>


[https://www.coindesk.com/business/2021/10/27/cream-finance-exploited-in-flash-loan-attack-worth-over-100m/ Cream Finance Exploited in Flash Loan Attack Netting Over $100M] (Dec 14)
<ref name="defiteller-4444">[https://defiteller.guru/cream-finance-lost-over-130m-in-the-latest-exploit/ Cream Finance Lost Over $130M in the Latest Exploit - DeFiTeller] (Dec 15, 2021)</ref>


[https://defiteller.guru/cream-finance-lost-over-130m-in-the-latest-exploit/ Cream Finance Lost Over $130M in the Latest Exploit - DeFiTeller] (Dec 14)
<ref name="creamdotfinancetwitter-4445">[https://twitter.com/CreamdotFinance/status/1459532398991851528 @CreamdotFinance Twitter] (Dec 15, 2021)</ref>


[https://twitter.com/CreamdotFinance/status/1459532398991851528 @CreamdotFinance Twitter] (Dec 14)
<ref name="creamfinance-4446">[https://app.cream.finance/claim C.R.E.A.M.] (Dec 15, 2021)</ref>


[https://app.cream.finance/claim C.R.E.A.M.] (Dec 14)
<ref name="creamdotfinancetwitter-4447">[https://twitter.com/CreamdotFinance/status/1464480899794309128 @CreamdotFinance Twitter] (Dec 15, 2021)</ref>


[https://twitter.com/CreamdotFinance/status/1464480899794309128 @CreamdotFinance Twitter] (Dec 14)
<ref name="certikorgtwitter-5451">[https://mobile.twitter.com/certikorg/status/1453429065780711430 https://mobile.twitter.com/certikorg/status/1453429065780711430] (Jan 10, 2022)</ref>


[https://mobile.twitter.com/certikorg/status/1453429065780711430 https://mobile.twitter.com/certikorg/status/1453429065780711430] (Jan 10)
<ref name="cointelegraph-6291">[https://cointelegraph.com/news/cream-finance-launches-1-5m-bug-bounty-to-improve-defi-security Cream Finance launches $1.5M bug bounty to improve DeFi security] (Feb 8, 2022)</ref>


[https://cointelegraph.com/news/cream-finance-launches-1-5m-bug-bounty-to-improve-defi-security Cream Finance launches $1.5M bug bounty to improve DeFi security] (Feb 8)
<ref name="coinbureau-6292">[https://www.coinbureau.com/review/cream-finance/ Cream Finance Review: What You NEED To Know About CREAM!!] (Feb 8, 2022)</ref>


[https://www.coinbureau.com/review/cream-finance/ Cream Finance Review: What You NEED To Know About CREAM!!] (Feb 8)
<ref name="cryptonews-9844">[https://cryptonews.com/news/cream-finance-suffers-another-exploit-as-attacker-runs-away-with-usd-130m.htm Cream Finance Suffers Another Exploit as Attacker Runs Away With USD 100M+] (Dec 1, 2022)</ref>


[https://cryptonews.com/news/cream-finance-suffers-another-exploit-as-attacker-runs-away-with-usd-130m.htm Cream Finance Suffers Another Exploit as Attacker Runs Away With USD 100M+] (Dec 1)
<ref name="carnegieendowment-9983">[https://carnegieendowment.org/specialprojects/protectingfinancialstability/timeline Timeline of Cyber Incidents Involving Financial Institutions - Carnegie Endowment for International Peace] (Dec 12, 2022)</ref></references>

Latest revision as of 15:54, 10 May 2024

Notice: This page is a freshly imported case study from the original repository. The original content was in a different format, and may not have relevant information for all sections. Please help restructure the content by moving information from the 'About' and 'General Prevention' sections to other sections, and add any missing information or sources you can find. If you are new here, please read General Tutorial on Wikis or Anatomy of a Case Study for help getting started.

Notice: This page contains sources which are not attributed to any text. The unattributed sources follow the initial description. Please assist by visiting each source, reviewing the content, and placing that reference next to any text it can be used to support. Feel free to add any information that you come across which isn't present already. Sources which don't contain any relevant information can be removed. Broken links can be replaced with versions from the Internet Archive. See General Tutorial on Wikis, Anatomy of a Case Study, and/or Citing Your Sources Guide for additional information. Thanks for your help!

Cream Finance

Cream Finance suffered a complex attack to the liquidity stored in their smart contract hot wallets. The attacker came from, and returned to TornadoCash, and didn't appear to respond to any attempts to contact them. The contracts in question have been disabled, and Cream Finance has so far only released Cream tokens to those affected, which many users reported having a market value of less than half the value of their lost assets.

This is a global/international case not involving a specific country.[1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22][23]

About Cream Finance

"C.R.E.A.M. Finance is a decentralized lending protocol for individuals, institutions and protocols to access financial services. Part of the yearn finance ecosystem, it is a permissionless, open source and blockchain agnostic protocol serving users on Ethereum, Binance Smart Chain and Fantom. Users who are passively holding Ethereum or Bitcoin can deposit their assets on C.R.E.A.M. to earn yield, similar to a traditional savings account."

"According to The Block report, Cream Finance, the DeFi lending agreement, was attacked and lost approximately US$130 million." "The initial funds of the hacker address came from 20 ETH withdrawn from @TornadoCash."

“We are investigating an exploit on C.R.E.A.M. v1 on Ethereum and will share updates as soon as they are available,” the CREAM Twitter account noted at 11:04 AM New York time.

"This attack was a mix of economic and oracle exploits." "The key vulnerability lies in the price calculation of a wrappable token." "The hacker was able to take advantage of a pricing vulnerability by repeatedly lending and borrowing flash-loaned funds across two addresses."

"Next, after accumulating yUSDVault-collateralised crYUSD, the price of the underlying yUSDVault token was manipulated in order to effectively double the value of the collateral owned by the attacker."

"Finally, using the now overvalued collateral, the attacker drained CREAM’s lending vaults of as many assets as possible."

“This was one of the most sophisticated and cleanly executed DeFi attacks. The summary of the attack is that the attacker borrowed $1.5b of Yearn’s yUSD vault shares against $2b worth of collateral. They then doubled the value of the shares atomically by donating yUSD to the yearn vault. This meant that their debt on Cream became $3b against a $2b collateral. They can now default and take home a sweet $1b profit. Cream only had $130m assets available for lending, so the attacker was limited to $130m profits,” summarized blockchain security researcher Mudit Gupta in a blog.

"The stolen funds were mainly Cream LP tokens and other ERC-20 tokens." "A full table of the stolen funds, which include over 2760 ETH, a total of 76 BTC in renBTC, WBTC and HBTC, as well as tens of millions in stablecoins and other tokens, can be found here."

"As communicated earlier, we have patched the vulnerability and only our Ethereum v1 markets were impacted. All other C.R.E.A.M. Finance v1 markets and the Iron Bank are safe." "We have suspended all interactions with our Ethereum v1 markets. crTokens on C.R.E.A.M. Ethereum v1 markets are locked and cannot be transferred. Our friends at Yearn Finance successfully salvaged $9.42 million the attacker “donated” to the yUSD vault." "We have stopped all supply/borrow of wrappable tokens, including all PancakeSwap LP tokens."

The attacker wrote a message in the transaction “gÃTµ Baave lucky, iron bank lucky, cream not. ydev : incest bad, dont do.” This appears to imply that CREAM’s Iron Bank is untouched.

"We encourage the attacker to reach out and begin a dialogue for the return of our users' funds. They are impacting everyday users of DeFi and we would like them to do the right thing. We will honor a bug bounty of 10% upon return of funds."

"The hacker is currently divided into two paths to try to launder money: 1. The hacker exchanges tokens for Ether through Paraswap." "The hacker uses Paraswap to exchange tokens such as WBTC and BADGER into renBTC, and uses renBridge to cross-chain a total of 102.83 BTC."

"In addition, there are more than $60 million of funds staked in Uniswap, SushiSwap, Curve and other DeFi protocols."

"The community is discussing shorting the CREAM token as a way of recovering some of the lost assets. The CREAM token was at $116.68 in morning trading New York time Wednesday, from $156.85 yesterday, or a 25% decline. It had fallen to as low as $108.15 earlier."

"The attacker removed ~$130m USD worth of tokens from C.R.E.A.M. Ethereum v1 markets. We are working to repay lost funds, starting with a partial payment. Details of this repayment plan will be announced in the coming days."

"Our community and users will always remain our top priority. We are working with authorities to trace the attacker and have created a plan to restore funds lost. We will disclose the details of this repayment plan as soon as everything is finalized."

"We appreciate your support as we work through the next steps for C.R.E.A.M. Finance and what this means for everyone. We explored every option that was available to us before arriving at the conclusion that this is the best path forward."

"We will distribute 1,453,415 CREAM tokens to impacted users. We are utilizing remaining CREAM tokens within the treasury, and removing the project team's remaining CREAM token allocation. There will be no further CREAM allocations to the team."

"Impacted users can claim their CREAM tokens at this time. This claim process will be available for 1 year.

Users who have successfully made full insurance claims from Nexus Mutual or Bridge Mutual will not be eligible to claim CREAM."

"We have tightened our token listing strategy to no longer include long-tail assets nor tokens that can be wrapped/unwrapped. Collateral Cap limits are deployed across all markets to increase security. Additional monitoring and alerting solutions are being implemented."

"We appreciate the patience of our community as we work through next steps. Once further details are finalised, we will be able to share more to our community and thank everyone again for their support."

This is a global/international case not involving a specific country.

The background of the exchange platform, service, or individuals involved, as it would have been seen or understood at the time of the events.

Include:

  • Known history of when and how the service was started.
  • What problems does the company or service claim to solve?
  • What marketing materials were used by the firm or business?
  • Audits performed, and excerpts that may have been included.
  • Business registration documents shown (fake or legitimate).
  • How were people recruited to participate?
  • Public warnings and announcements prior to the event.

Don't Include:

  • Any wording which directly states or implies that the business is/was illegitimate, or that a vulnerability existed.
  • Anything that wasn't reasonably knowable at the time of the event.

There could be more than one section here. If the same platform is involved with multiple incidents, then it can be linked to a main article page.

The Reality

This sections is included if a case involved deception or information that was unknown at the time. Examples include:

  • When the service was actually started (if different than the "official story").
  • Who actually ran a service and their own personal history.
  • How the service was structured behind the scenes. (For example, there was no "trading bot".)
  • Details of what audits reported and how vulnerabilities were missed during auditing.

What Happened

The specific events of the loss and how it came about. What actually happened to cause the loss and some of the events leading up to it.

Key Event Timeline - Cream Finance Lending Attack
Date Event Description
October 27th, 2021 Main Event Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.

Technical Details

This section includes specific detailed technical analysis of any security breaches which happened. What specific software vulnerabilities contributed to the problem and how were they exploited?

Total Amount Lost

The total amount lost has been estimated at $130,000,000 USD.

How much was lost and how was it calculated? If there are conflicting reports, which are accurate and where does the discrepancy lie?

Immediate Reactions

How did the various parties involved (firm, platform, management, and/or affected individual(s)) deal with the events? Were services shut down? Were announcements made? Were groups formed?

Ultimate Outcome

What was the end result? Was any investigation done? Were any individuals prosecuted? Was there a lawsuit? Was any tracing done?

Total Amount Recovered

There do not appear to have been any funds recovered in this case.

What funds were recovered? What funds were reimbursed for those affected users?

Ongoing Developments

What parts of this case are still remaining to be concluded?

General Prevention Policies

While Cream Finance may reduce the risks through eliminating long-tail assets, and wrapped assets can make it easier for hackers to cash out, the real solution is to have the majority of funds offline.

Individual Prevention Policies

No specific policies for individual prevention have yet been identified in this case.

For the full list of how to protect your funds as an individual, check our Prevention Policies for Individuals guide.

Platform Prevention Policies

Policies for platforms to take to prevent this situation have not yet been selected in this case.

For the full list of how to protect your funds as a financial service, check our Prevention Policies for Platforms guide.

Regulatory Prevention Policies

No specific regulatory policies have yet been identified in this case.

For the full list of regulatory policies that can prevent loss, check our Prevention Policies for Regulators guide.

References

  1. SlowMist Hacked - SlowMist Zone (Nov 6, 2021)
  2. C R E A M Finance Is Coming To Arbitrum (Nov 6, 2021)
  3. Rekt - Cream Finance - REKT 2 (Dec 14, 2021)
  4. @SlowMist_Team Twitter (Dec 14, 2021)
  5. @CreamdotFinance Twitter (Dec 14, 2021)
  6. @CreamdotFinance Twitter (Dec 14, 2021)
  7. Post Mortem Exploit Oct 27 (Dec 15, 2021)
  8. CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack - The Defiant (Dec 15, 2021)
  9. @peckshield Twitter (Dec 15, 2021)
  10. Hackers Steal $130M From Ethereum-Based DeFi Protocol Cream Finance (Dec 15, 2021)
  11. Creamed Cream - Learn the Secret Recipe (Cream Hack Analysis) - Mudit Gupta's Blog (Dec 15, 2021)
  12. Ethereum Transaction Hash (Txhash) Details | Etherscan (Dec 15, 2021)
  13. CREAM Finance Exploited for $130M in DeFi’s Third-Largest Hack (Dec 15, 2021)
  14. Cream Finance Exploited in Flash Loan Attack Netting Over $100M (Dec 15, 2021)
  15. Cream Finance Lost Over $130M in the Latest Exploit - DeFiTeller (Dec 15, 2021)
  16. @CreamdotFinance Twitter (Dec 15, 2021)
  17. C.R.E.A.M. (Dec 15, 2021)
  18. @CreamdotFinance Twitter (Dec 15, 2021)
  19. https://mobile.twitter.com/certikorg/status/1453429065780711430 (Jan 10, 2022)
  20. Cream Finance launches $1.5M bug bounty to improve DeFi security (Feb 8, 2022)
  21. Cream Finance Review: What You NEED To Know About CREAM!! (Feb 8, 2022)
  22. Cream Finance Suffers Another Exploit as Attacker Runs Away With USD 100M+ (Dec 1, 2022)
  23. Timeline of Cyber Incidents Involving Financial Institutions - Carnegie Endowment for International Peace (Dec 12, 2022)