Impossible Finance Fake Token Drain: Difference between revisions
(Created page with "{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/impossiblefinancefaketokendrain.php}} thumb|Impossible FinanceThe Impossible Finance smart contract contained an exploit which allowed for draining the liquidity pool by creating a fake token. This was exploited. Some funds were returned, and the team made up the difference. This is a global/international case not involving a specific country. == About Impossible...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/impossiblefinancefaketokendrain.php}} | {{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/impossiblefinancefaketokendrain.php}} | ||
{{Unattributed Sources}} | |||
[[File:Impossiblefinance.jpg|thumb|Impossible Finance]]The Impossible Finance smart contract contained an exploit which allowed for draining the liquidity pool by creating a fake token. | [[File:Impossiblefinance.jpg|thumb|Impossible Finance]]The Impossible Finance smart contract contained an exploit which allowed for draining the liquidity pool by creating a fake token. | ||
| Line 7: | Line 8: | ||
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-678" /><ref name="blockthreat-1779" /><ref name="watchpugmedium-1919" /><ref name="impossiblefinancemedium-1920" /><ref name="johndoughbulltwitter-1921" /><ref name="impossiblefinance-1922" /><ref name="investingcube-1923" /><ref name="cryptoslate-1924" /><ref name="watchpugtwitter-1925" /><ref name="btcmanager-1926" /><ref name="impossiblefitwitter-1927" /><ref name="impossiblefitwitter-1928" /><ref name="impossiblefinancemedium-1929" /><ref name="openblocksecgithub-2342" /><ref name="knownsecblockchainlabmedium-2415" /><ref name="muditguptatwitter-2416" /><ref name="peckshieldtwitter-2417" /><ref name="bscscan-2512" /> | |||
== About Impossible Finance == | == About Impossible Finance == | ||
| Line 106: | Line 108: | ||
== References == | == References == | ||
[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May | <references><ref name="slowmisthacked-678">[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May 18, 2021)</ref> | ||
[https://blockthreat.substack.com/p/blockthreat-week-25-2021 No Title] (Jul | <ref name="blockthreat-1779">[https://blockthreat.substack.com/p/blockthreat-week-25-2021 No Title] (Jul 24, 2021)</ref> | ||
[https://watchpug.medium.com/impossible-finance-exploit-root-cause-analysis-ba0ed7c151e4 Impossible Finance Exploit Root Cause Analysis] (Jul | <ref name="watchpugmedium-1919">[https://watchpug.medium.com/impossible-finance-exploit-root-cause-analysis-ba0ed7c151e4 Impossible Finance Exploit Root Cause Analysis] (Jul 24, 2021)</ref> | ||
[https://medium.com/impossiblefinance/impossible-finance-v2-swap-jun-21st-postmortem-94e4b59ad490 Impossible Finance V2 Swap Jun 21st Postmortem] (Jul | <ref name="impossiblefinancemedium-1920">[https://medium.com/impossiblefinance/impossible-finance-v2-swap-jun-21st-postmortem-94e4b59ad490 Impossible Finance V2 Swap Jun 21st Postmortem] (Jul 24, 2021)</ref> | ||
[https://twitter.com/johndoughbull/status/1408362066600148995 @johndoughbull Twitter] (Jul | <ref name="johndoughbulltwitter-1921">[https://twitter.com/johndoughbull/status/1408362066600148995 @johndoughbull Twitter] (Jul 24, 2021)</ref> | ||
[https://impossible.finance/ Impossible Finance - DeFi made impossibly easy] (Jul | <ref name="impossiblefinance-1922">[https://impossible.finance/ Impossible Finance - DeFi made impossibly easy] (Jul 28, 2021)</ref> | ||
[https://www.investingcube.com/defi-project-impossible-finance-upgrades-swap-service-with-v2-launch/ DeFi Project Impossible Finance Upgrades Swap Service with V2 Launch] (Jul | <ref name="investingcube-1923">[https://www.investingcube.com/defi-project-impossible-finance-upgrades-swap-service-with-v2-launch/ DeFi Project Impossible Finance Upgrades Swap Service with V2 Launch] (Jul 28, 2021)</ref> | ||
[https://cryptoslate.com/defi-hacks-on-binance-smart-chain-continue-as-impossible-finance-drained-for-500k/ DeFi hacks on Binance Smart Chain continue as 'Impossible Finance' drained for $500k | CryptoSlate] (Jul | <ref name="cryptoslate-1924">[https://cryptoslate.com/defi-hacks-on-binance-smart-chain-continue-as-impossible-finance-drained-for-500k/ DeFi hacks on Binance Smart Chain continue as 'Impossible Finance' drained for $500k | CryptoSlate] (Jul 28, 2021)</ref> | ||
[https://twitter.com/WatchPug_/status/1406872310368268288 @WatchPug_ Twitter] (Jul | <ref name="watchpugtwitter-1925">[https://twitter.com/WatchPug_/status/1406872310368268288 @WatchPug_ Twitter] (Jul 28, 2021)</ref> | ||
[https://btcmanager.com/defi-protocol-impossible-finance-700k/ DeFi Protocol Impossible Finance Suffers $700k Heist | BTCMANAGER] (Jul | <ref name="btcmanager-1926">[https://btcmanager.com/defi-protocol-impossible-finance-700k/ DeFi Protocol Impossible Finance Suffers $700k Heist | BTCMANAGER] (Jul 28, 2021)</ref> | ||
[https://twitter.com/impossiblefi/status/1407281201887416326 @impossiblefi Twitter] (Jul | <ref name="impossiblefitwitter-1927">[https://twitter.com/impossiblefi/status/1407281201887416326 @impossiblefi Twitter] (Jul 28, 2021)</ref> | ||
[https://twitter.com/impossiblefi/status/1409795955126308864 @impossiblefi Twitter] (Jul | <ref name="impossiblefitwitter-1928">[https://twitter.com/impossiblefi/status/1409795955126308864 @impossiblefi Twitter] (Jul 28, 2021)</ref> | ||
[https://medium.com/impossiblefinance/impossible-finance-100-compensation-plan-a4619ce1c1b7 Impossible Finance 100 Compensation Plan] (Jul | <ref name="impossiblefinancemedium-1929">[https://medium.com/impossiblefinance/impossible-finance-100-compensation-plan-a4619ce1c1b7 Impossible Finance 100 Compensation Plan] (Jul 28, 2021)</ref> | ||
[https://github.com/openblocksec/blocksec-incidents/blob/main/defi/2021.md blocksec-incidents/2021.md at main · openblocksec/blocksec-incidents · GitHub] (Aug | <ref name="openblocksecgithub-2342">[https://github.com/openblocksec/blocksec-incidents/blob/main/defi/2021.md blocksec-incidents/2021.md at main · openblocksec/blocksec-incidents · GitHub] (Aug 11, 2021)</ref> | ||
[https://medium.com/@Knownsec_Blockchain_Lab/one-thought-of-heaven-one-thought-of-hell-impossible-finance-lightning-loan-attack-incident-dd7b921a174c One thought of heaven, one thought of hell-Impossible Finance lightning loan attack incident tracking | by Knownsec Blockchain Lab | Medium] (Aug | <ref name="knownsecblockchainlabmedium-2415">[https://medium.com/@Knownsec_Blockchain_Lab/one-thought-of-heaven-one-thought-of-hell-impossible-finance-lightning-loan-attack-incident-dd7b921a174c One thought of heaven, one thought of hell-Impossible Finance lightning loan attack incident tracking | by Knownsec Blockchain Lab | Medium] (Aug 11, 2021)</ref> | ||
[https://twitter.com/Mudit__Gupta/status/1406878176509194246 @Mudit__Gupta Twitter] (Aug | <ref name="muditguptatwitter-2416">[https://twitter.com/Mudit__Gupta/status/1406878176509194246 @Mudit__Gupta Twitter] (Aug 11, 2021)</ref> | ||
[https://twitter.com/peckshield/status/1408356901499199492 @peckshield Twitter] (Aug | <ref name="peckshieldtwitter-2417">[https://twitter.com/peckshield/status/1408356901499199492 @peckshield Twitter] (Aug 11, 2021)</ref> | ||
[https://bscscan.com/tx/0x7104c2c188776b1ee86313b71c90f5e258ab4524056b7607e7baec2903235eff Binance Transaction Hash (Txhash) Details | BscScan] (Aug | <ref name="bscscan-2512">[https://bscscan.com/tx/0x7104c2c188776b1ee86313b71c90f5e258ab4524056b7607e7baec2903235eff Binance Transaction Hash (Txhash) Details | BscScan] (Aug 15, 2021)</ref></references> | ||
Revision as of 21:45, 22 February 2023
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' section 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!
The Impossible Finance smart contract contained an exploit which allowed for draining the liquidity pool by creating a fake token.
This was exploited. Some funds were returned, and the team made up the difference.
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]
About Impossible Finance
"Impossible Finance is a multi-chain incubator, launchpad, and swap platform which offers a robust product-first ecosystem that supports top-tier blockchain projects to targeted user audiences."
"Impossible Finance described the new “v2 swap design” as a big step forward, citing the increased flexibility it provides for market makers in how they provide liquidity into the protocol."
"The company touted the most significant improvement as a novel bonding curve called “xybk invariant,” which essentially achieves an artificial inflation of Total Value Locked (TVL) in pools by a multiplier of boost times."
"The enhancement also paves the way for low slippage trade execution while addressing the issue of Ethereum gas fees that have recently skyrocketed. The record transaction costs on the major blockchain have caused non-whale users to be slowly priced-out of DeFi because fees are eliminating their profits. In addition, many non-yield generating applications such as crypto-based gaming applications are becoming unusable on Ethereum Layer 1."
"On June 21, 2021 Impossible Finance LP contract design flaw was exploited which resulted in the loss of $700K."
"The DeFi protocol Impossible Finance on the BSC chain was attacked by lightning loans, and the attacker made a profit of 1,510.75 WBNB (a total of 497,000 US dollars)." "The attack on the Impossible Finance liquidity pool happened on June 21 and resulted in a loss of 229.84 Ethereum (ETH), valued $500.000 at the time of the exploit."
"Auditing service WatchPug explained that the attack involved consecutive swaps at about the same price, draining the liquidity pool, “which is usually impossible.”" "Using a vulnerability in the LP contract, the hacker managed to swap IF into BUSD at about the price 2 times in a row, which is usually “Impossible” because of the slippage."
Steps taken to produce the exploit: "(1) Borrow 233.3 BNB of flash loan from PancakeSwap. (2) Swapped 65,140 IF token. (3) Created a FAKE token called AAA (BBB). (4) Created LP with the FAKE token and IF. (5) Swapped 32,570 IF into 221,898 BUSD and another 32,570 IF into 221,898 BUSD using IF router thru the FAKE token LP. (6) Repeated the steps from 3 to 5. (7) Sold 556,384 BUSD for 1,731 BNB, repaid the flash loan."
"At step 5, the FAKE token got a special design that will call the swap() function of the LP contract, while the router calls the cheapSwap() function. The swap() call triggered by the transferFrom() of the FAKE token happened before the cheapSwap() call, which will update the price. So that the two swaps can be made at about the same price."
"Some of the funds were returned after an unknown action by BSC team."
"For full transparency we have written an event report and conducted a post-mortem analysis of this attack. Fortunately, this was an isolated incident and users' funds are safe. We are confident for a full recovery and have plans to emerge stronger from this." “All users who deposited into liquidity pools prior to the attack will be 100 percent compensated. We are confident for a full recovery and have plans to emerge stronger from this.”
Impossible Finance "completed full distribution of the reimbursed funds. Affected Liquidity Providers, please check your wallets for the reimbursed funds."
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.
| Date | Event | Description |
|---|---|---|
| June 21st, 2021 12:00:00 AM | Main Event | Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here. |
Total Amount Lost
The total amount lost has been estimated at $700,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?
Prevention Policies
All affected users were made whole in this case.
Security of smart contracts is similar to hot wallets.
Complex smart contracts generally contain vulnerabilities and cannot be proven secure.
More secure forms of storage are generally simpler offline multi-sig wallets.
References
- ↑ SlowMist Hacked - SlowMist Zone (May 18, 2021)
- ↑ No Title (Jul 24, 2021)
- ↑ Impossible Finance Exploit Root Cause Analysis (Jul 24, 2021)
- ↑ Impossible Finance V2 Swap Jun 21st Postmortem (Jul 24, 2021)
- ↑ @johndoughbull Twitter (Jul 24, 2021)
- ↑ Impossible Finance - DeFi made impossibly easy (Jul 28, 2021)
- ↑ DeFi Project Impossible Finance Upgrades Swap Service with V2 Launch (Jul 28, 2021)
- ↑ DeFi hacks on Binance Smart Chain continue as 'Impossible Finance' drained for $500k | CryptoSlate (Jul 28, 2021)
- ↑ @WatchPug_ Twitter (Jul 28, 2021)
- ↑ DeFi Protocol Impossible Finance Suffers $700k Heist | BTCMANAGER (Jul 28, 2021)
- ↑ @impossiblefi Twitter (Jul 28, 2021)
- ↑ @impossiblefi Twitter (Jul 28, 2021)
- ↑ Impossible Finance 100 Compensation Plan (Jul 28, 2021)
- ↑ blocksec-incidents/2021.md at main · openblocksec/blocksec-incidents · GitHub (Aug 11, 2021)
- ↑ One thought of heaven, one thought of hell-Impossible Finance lightning loan attack incident tracking | by Knownsec Blockchain Lab | Medium (Aug 11, 2021)
- ↑ @Mudit__Gupta Twitter (Aug 11, 2021)
- ↑ @peckshield Twitter (Aug 11, 2021)
- ↑ Binance Transaction Hash (Txhash) Details | BscScan (Aug 15, 2021)