PancakeHunny Liquidity Pool Drained

From Quadriga Initiative Cryptocurrency Hacks, Scams, and Frauds Repository
Revision as of 12:25, 27 January 2023 by Azoundria (talk | contribs) (Created page with "{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/pancakehunnyliquiditypooldrained.php}} thumb|PancakeHunnyThe PancakeHunny smart contract had an exploit in the rewards mechanism, which allowed the attacker to mint additional Hunny which was not intended. This is a global/international case not involving a specific country. == About PancakeHunny == "PancakeHunny aims to provide users the easiest way to join the bandwag...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

PancakeHunny

The PancakeHunny smart contract had an exploit in the rewards mechanism, which allowed the attacker to mint additional Hunny which was not intended.

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

About PancakeHunny

"PancakeHunny aims to provide users the easiest way to join the bandwagon of the DeFi world, built on top of PancakeSwap, giving you the tastiest CAKEs topped with HUNNY. We support the underlying DeFi technology and ecosystem to compound user yields through the Binance Smart Chain (BSC). We have seen a huge surge in DeFi activity in 2020 since the rise of Yield Aggregator projects on different blockchain networks with existing protocols such as MakerDAO, Aave, Compound, and etc. As a Yield Aggregator with a vital role in the yield farming economy, we are leveraging different DeFi protocols and strategies to maximize user profits."

"On 3rd June 2021, at 1:46 UTC. A smart contract was created to exploit the Hunny Minter Smart Contract. The Contract was subsequently executed 91 times." "According to official sources, PancakeHunny on BSC was attacked by hackers, and the hackers made 43 ETH (a total of more than 100,000 US dollars). PancakeHunny forked from PancakeBunny, and the attack suffered this time was similar to PancakeBunny. Hackers obtained a large amount of HUNNY tokens and threw them to the market, causing the price of HUNNY tokens to plummet." "A lot of Hunny tokens [were] minted out and dumped, the hacker has taken out 38.9 ETH."

"Attacker deployed a contract and added 0.5 BNB from an external wallet address: 0x6be5a267b04e9f24cdc1824fd38d63c436be91ab" "This is the sequence of events: (1) wBNB Swap CAKE from PancakeSwap. (2) Sent CAKE to HUNNY Minter Smart Contract. (3) Added CAKE-BNB Liquidity from PancakeSwap. (4) Deposited CAKE-BNB LP tokens to CAKE-BNB Hive. (5) Redeemed HUNNY Rewards. (6) Swap Cake Balance to HUNNY-BNB, increase CAKE Balance as per #2. (7) Exploited and increased 2,281,142.448 HUNNY supply." "Attacker converted all remaining wBNB into ETH and was sent to an external wallet address: 0x2E5Ea63d69b2ed33C869eED58433f0F799E1F7AA"

"Exploiter’s wallet address: 0x0ef50be29c82ecf2158ec1886dc6692a2b0db411" "Total exploited transactions: 100" "Total BNB gained by the attacker: 216 BNB"

"We have stopped the minting process. Hives are all SAFU." "Since the minter was switched off, we were unable to allocate HUNNY profits to the respective Hives."

"None of the Bunny and Bunny fork attacks is a Flash Loan attack. They are Performance Fee Minting Attacks. They just often get amplified/made easier with Flash Loans. These attacks are made possible by one or more logic bugs in the Performance Fee Minting process."

"The core issue is: it’s taking all the wallet balance to create the LP tokens which will later be used for profit calculation and minting. Same old bug as the two of the previous hacks."

"We have taken immediate action to protect our users from any further potential issues that could arise. All Hives are unaffected. Funds are SAFU. The exploit only affects the Prices of Hunny/BNB." "We have since changed the logic behind the HUNNY Minter, whereby it will only mint HUNNY based on the profits received from vaults."

"Due to the nature of the attack, users who have staked in our HUNNY Hive should observe an increase in the profit as well as an increase in the unlocked HUNNY amount. This is because our Minter also distributed more profits to the HUNNY Hive. In short, other than a price dip, our users are actually benefitting from the higher profits (wBNB) gained from Hunny Hive." "We’ve [also] taken the chance to restructure our internal processes. This has made us stronger and more resilient than ever before."

"We'd like to express our gratitude to our partner @WatchPug_ for keeping a lookout for us since our launch. We will continue to strengthen the security of our smart contracts as we have always endeavored."

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 - PancakeHunny Liquidity Pool Drained
Date Event Description
June 2nd, 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 $100,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

The total amount recovered has been estimated at $0 USD.

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

There do not appear to have been any assets lost here. The only impact was that the price of the Hunny token dropped.

References

@WatchPug_ Twitter (Jun 16)

@PancakeHunny Twitter (Jun 16)

@PancakeHunny Twitter (Jun 16)

@PancakeHunny Twitter (Jun 16)

Introduction - HunnyFinance (Jun 16)

Pancakehunny Performance Fee Minting Attack Analysis (Jun 16)

Binance Transaction Hash (Txhash) Details | BscScan (Jun 18)

Pancakehunny Preliminary Incident Report (Jun 18)

Pancakehunny Post Mortem Analysis (Jun 18)

SlowMist Hacked - SlowMist Zone (May 17)

blocksec-incidents/2021.md at main · openblocksec/blocksec-incidents · GitHub (Aug 10)