Wild Credit Minting Exploit: 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/wildcreditmintingexploit.php}} thumb|Wild CreditAn exploit in the smart contract allowed anyone to take over the contract. A malicious actor attempted to exploit, however another front-running bot saw the transaction and ran it with a higher fee to bypass them. The front-runner returned the funds to the contract developers, where they were distributed back to affected user...")
 
No edit summary
Line 1: Line 1:
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/wildcreditmintingexploit.php}}
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/wildcreditmintingexploit.php}}
{{Unattributed Sources}}


[[File:Wildcredit.jpg|thumb|Wild Credit]]An exploit in the smart contract allowed anyone to take over the contract.
[[File:Wildcredit.jpg|thumb|Wild Credit]]An exploit in the smart contract allowed anyone to take over the contract.
Line 6: Line 7:


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="wildcredit-1647" /><ref name="wildcreditmedium-1648" /><ref name="wildcredittwitter-1649" /><ref name="wildcredittwitter-1650" /><ref name="wildcredittwitter-1651" /><ref name="wildcredittwitter-1652" /><ref name="wildcredittwitter-1653" /><ref name="etherscan-1654" /><ref name="etherscan-1655" /><ref name="wildcredittwitter-1656" /><ref name="wildcredittwitter-1657" /><ref name="muditguptatwitter-1658" /><ref name="blockthreat-1779" /><ref name="openblocksecgithub-2342" /><ref name="anishagnihotritwitter-2399" />


== About Wild Credit ==
== About Wild Credit ==
Line 86: Line 88:


== Total Amount Recovered ==
== Total Amount Recovered ==
The total amount recovered has been estimated at $0 USD.
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?
What funds were recovered? What funds were reimbursed for those affected users?
Line 97: Line 99:


== References ==
== References ==
[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May 17)
<references><ref name="slowmisthacked-678">[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May 17, 2021)</ref>


[https://wild-credit.gitbook.io/wild-credit/ Introduction - Wild Credit] (Jul 13)
<ref name="wildcredit-1647">[https://wild-credit.gitbook.io/wild-credit/ Introduction - Wild Credit] (Jul 13, 2021)</ref>


[https://medium.com/wild-credit/announcing-wild-credit-borrow-or-lend-any-token-8af2a7d69206 Announcing Wild Credit Borrow Or Lend Any Token] (Jul 13)
<ref name="wildcreditmedium-1648">[https://medium.com/wild-credit/announcing-wild-credit-borrow-or-lend-any-token-8af2a7d69206 Announcing Wild Credit Borrow Or Lend Any Token] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1406939127229026304 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1649">[https://twitter.com/WildCredit/status/1406939127229026304 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1397891144785203203 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1650">[https://twitter.com/WildCredit/status/1397891144785203203 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1397848487593603072 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1651">[https://twitter.com/WildCredit/status/1397848487593603072 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1397786796675649538 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1652">[https://twitter.com/WildCredit/status/1397786796675649538 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1397848317741002755 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1653">[https://twitter.com/WildCredit/status/1397848317741002755 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://etherscan.io/tx/0x49633c4d20e0d96a9ea00bfde0a4faf2dfca06d07aa25b26a7c812d5acaca23f Ethereum Transaction Hash (Txhash) Details | Etherscan] (Jul 13)
<ref name="etherscan-1654">[https://etherscan.io/tx/0x49633c4d20e0d96a9ea00bfde0a4faf2dfca06d07aa25b26a7c812d5acaca23f Ethereum Transaction Hash (Txhash) Details | Etherscan] (Jul 13, 2021)</ref>


[https://etherscan.io/tx/0xb4fffa0e824034a10af2807f1504ac247ae1dd6f2bcfed8085989bbfda434542 Ethereum Transaction Hash (Txhash) Details | Etherscan] (Jul 13)
<ref name="etherscan-1655">[https://etherscan.io/tx/0xb4fffa0e824034a10af2807f1504ac247ae1dd6f2bcfed8085989bbfda434542 Ethereum Transaction Hash (Txhash) Details | Etherscan] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1398112402890125312 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1656">[https://twitter.com/WildCredit/status/1398112402890125312 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/WildCredit/status/1398523831669596162 @WildCredit Twitter] (Jul 13)
<ref name="wildcredittwitter-1657">[https://twitter.com/WildCredit/status/1398523831669596162 @WildCredit Twitter] (Jul 13, 2021)</ref>


[https://twitter.com/Mudit__Gupta/status/1397888546686398470 @Mudit__Gupta Twitter] (Jul 13)
<ref name="muditguptatwitter-1658">[https://twitter.com/Mudit__Gupta/status/1397888546686398470 @Mudit__Gupta Twitter] (Jul 13, 2021)</ref>


[https://blockthreat.substack.com/p/blockthreat-week-25-2021 No Title] (Jul 23)
<ref name="blockthreat-1779">[https://blockthreat.substack.com/p/blockthreat-week-25-2021 No Title] (Jul 23, 2021)</ref>


[https://github.com/openblocksec/blocksec-incidents/blob/main/defi/2021.md blocksec-incidents/2021.md at main · openblocksec/blocksec-incidents · GitHub] (Aug 10)
<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 10, 2021)</ref>


[https://twitter.com/_anishagnihotri/status/1397971686482493443 @_anishagnihotri Twitter] (Aug 10)
<ref name="anishagnihotritwitter-2399">[https://twitter.com/_anishagnihotri/status/1397971686482493443 @_anishagnihotri Twitter] (Aug 10, 2021)</ref></references>

Revision as of 11:32, 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!

Wild Credit

An exploit in the smart contract allowed anyone to take over the contract.

A malicious actor attempted to exploit, however another front-running bot saw the transaction and ran it with a higher fee to bypass them. The front-runner returned the funds to the contract developers, where they were distributed back to affected users.

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]

About Wild Credit

"Wild.credit is an upcoming lending protocol with isolated lending pairs." "Wild is a permissionless lending protocol featuring isolated lending pairs. Lenders supply assets into any of the lending pairs to earn interest. Borrowers pay interest to borrow while collateralizing their loans. The protocol earns an interest rate spread."

"Using isolated lending pairs, lenders can decide which pairs they are comfortable with and provide liquidity only to those. Just like on Uniswap, users of Wild Credit are also free to create lending pairs for any asset permissionlessly."

"The DeFi protocol Wild Credit on Ethereum suffered a white hat attack."

"A potential irregularity on the BNT-ETH pair" "We've discovered a potential irregularity on the BNT-ETH pair. All deposits have been disabled while the investigation is in progress. As a precaution, please withdraw your funds."

"[A]nyone can call the `initialize` function to become the owner of the LP token contract. The owner can freely mint and burn LP tokens. The hacker took ownership of the contract, minted a bunch of tokens to themselves, and then used those fake tokens to withdraw real funds."

"Preliminary results show that BNT-ETH was the only exploited pool. Total amount is 125,585 BNT (~ $637k)."

"The "attacker" who returned the funds was actually an operator of a generalized front-running bot. The real attacker attempted to execute their exploit here and was front-run." "[T]he attacker has returned a total of $650,000."

"We've finished reconstructing the deposit balances. Please review it to see if your deposit amount looks correct. To make sure we haven't missed anyone, we'll wait 24 hours before sending the balances."

"All funds have been returned now. Please check your wallet. If you made a deposit with ETH, you should have WETH balance now instead. WETH is a token representation of ETH which can be unwrapped 1:1 back to ETH on Uniswap."

"NEW BUG BOUNTY: @WildCredit is live now with their Immunefi Bug Bounty program! Wild Credit: decentralized lending protocol with isolated lending pairs. Go wild on your bug bounty hunting and earn $20,000:"

"$10k has been awarded to @Mudit__Gupta for finding a bug in the RewardDistribution contract involving snapshotAccount function which would lead to the loss of all stored rewards. The bounty remains open for all other qualified bugs."

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 - Wild Credit Minting Exploit
Date Event Description
May 27th, 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 $637,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

While there are lots of additional precautions that smart contracts can take including security audits, bug bounties, and careful design practices, it is impossible to prove that a complex smart contract is secure. The safest storage of funds is an offline multi-signature wallet held by known people.

References