Cointime

Download App
iOS & Android

CertiK Report: Revisiting the Mango Market Incident Anaylsis

Validated Project

TL;DR

On October 11, 2022 at 6:19 PM EST, Mango Market was attacked, causing a loss of $116M. The attacker was able to manipulate the price of MNGO token and borrowed more assets on the platform than was permitted.

Introduction

Mango Market is built on the Solana blockchain and utilizes Serum DEX for spot margin trading while perpetual futures are traded on Mango Market’s own order book. Mango Market is governed by $MNGO token holders via the Mango DAO.

On October 11, 2022 at 10:19 PM UTC, Mango Markets was hacked by a group of attackers, including Avraham Eisenberg who claimed to be part of the group on Twitter. A loss of $116M occurred after manipulating the value of a posted collateral to higher prices, and then taking out significant loans against the inflated collateral, which ended up draining Mango’s treasury. The attacker began by funding the first account (CQvKSNnY…) with 5M USDC and then offered 483mm units of MNGO perps on the order book. Then the attacker funded the second account (4ND8FVPjU…) which was used to buy the 483mm units of MNFO perps at a price of $0.0382 per unit. As a result, the attacker was able to move the price of MNGO which they increased to $0.91. With this price set for MNGO/USD, the second account was able to borrow other tokens on Mango Market. The attacker subsequently took all available liquidity on Mango, leaving account A with approximately $11,537,729.05 borrowed tokens and account B with 500M uncollectible debt. The price of $MNGO has dropped 47% as a result of the incident.

On October 15, 2022 Eisenberg posted on Twitter that this was a “highly profitable trading strategy” and that it was “legal open market actions, using the protocol as designed.” In his tweet, he claims that the development team failed to anticipate the consequences of the protocol’s parameters.

Funds Returned

The attacker submitted a proposal to send the token back. The wallet receiving funds drained from the protocol offered via a DAO community vote to return a portion of the proceeds less a substantial bounty, if the community promised not to pursue legal action.

On October 15, 2022 Mango’s developers tweeted that they were in the process of getting back $67 million in various cryptoassets and that the team started working on an algorithm to decide on a refund split. Overall, after a proposal in the Mango’s governance forum was approved, Eisenberg was allowed to keep $47 million as a “bug bounty” while $67 million was sent back to the treasury.

Eisenberg was initially linked to the wallet address that carried out the attack via an ENS domain name ponzishorter.eth. An anonymous Discord chat log also showed Eisenberg discussing the precise mechanism of the exploit in advance.

Attack Flow

  1. The attacker funded the first account (Account A) CQvKSNnYtPTZfQRQ5jkHq8q2swJyRsdQLcFcj3EmKFfX with 5M USDC in this transaction.
  1. The attacker then offered out 483M units of MNGO perps (short) on the order book
  1. The attacker funded the second account (Account B) 4ND8FVPjUGGjx9VuGFuJefDWpg3THb58c277hbVRnjNa
  1. Then the second account was used to buy 483M units of MNGO perps (long), at a price of $0.0382 per unit.
  2. The attacker started to move the spot price of MNGO, and increased it to $0.91
  1. With MNGO/USD price of $0.91 per unit, account B was able to borrow other tokens on Mango Market. The attacker also used the funds in account B (the original deposit + the funds for selling borrowed MNGO) to borrow other tokens on Mango Market.
  2. The above borrow behaviors leave account A with a total value of $11,306,771.61 uncollectible debt and account B with -$115,182,674.43 bad debt.

Addresses

Two accounts were used to conduct the attack.

Account “A” received 5M USDC collateral which offered out 483mm units of MNGO perps: CQvKSNnYtPTZfQRQ5jkHq8q2swJyRsdQLcFcj3EmKFfX

Account “B,” the trader, used another 5 million USDC to buy the same amount of MNGO, using 10 million USDC in total to effectively hedge his position: 4ND8FVPjUGGjx9VuGFuJefDWpg3THb58c277hbVRnjNa

Profit and Assets Tracing

Solana.FM🔮🔎 SolanaFM SolanaFM

Account A: 

Account B: 

Conclusion

Overall, the attackers executed a self-funded economic attack by manipulating the oracle price of MNGO. Since the attack, a debate has been sparked on Twitter as to whether those responsible could be subject to civil or even criminal liability. So far, there are few precedents for prosecuting this type of DeFi market manipulation. This case has some similarities to the Indexed Finance exploit that took place in December 2021. The founders of the protocol identified the attacker, and a lawsuit is still pending in Canadian courts. Following these events, Mango Markets has announced a new version dubbed 'v4' which will use the Serum Community Fork. Despite serious setback, the project appears hopeful in securing a place in the future of web3.

Comments

All Comments

Recommended for you

  • Michael Saylor Releases New Bitcoin Tracker Information

    On July 5, Strategy founder Michael Saylor released new information regarding the Bitcoin Tracker. He stated, 'Bitcoin is digital energy.' Following previous patterns, Strategy typically discloses information about increasing Bitcoin holdings the day after related announcements.

  • BTC Falls Below $63,000

    Market data shows that BTC has fallen below $63,000, currently priced at $62,978.8, with a 24-hour increase of 0.24%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Vitalik: Ethereum to Complete Major Third Iteration in Next 5 Years, Quantum Resistance and Privacy as Primary Goals

    On July 5, Vitalik Buterin announced that Ethereum researchers finalized the 'Streamlined Ethereum' roadmap during a conference in Berlin. This is not a one-time upgrade but a series of forks over the next 3 to 4 years (starting from 'I-star'), which will mark the third major era of Ethereum, almost replacing all core components. Core changes include: verification shifting from direct execution to recursive STARK; consensus introducing 1-2 rounds of finality for faster and safer transactions; multi-dimensional Gas pricing; and a complete replacement of existing solutions with quantum-resistant cryptography. The most disruptive change is the state model—current dynamic states only expand to about 2TB, while introducing new scalable states like UTXO and circular buffers, with a total scale reaching up to 100TB, suitable for ERC20/NFT/DeFi, potentially reducing transaction fees by over 10 times after the rewrite; complex applications (like Uniswap pools) will retain the old state without mandatory migration. However, the issue of who will store the 100TB state and the associated incentives has become a new focus of research. Privacy upgrades are now a primary design goal, with all new components needing to support quantum-resistant, intermediary-free privacy transactions. Formal verification will be fully implemented, and there is exploration into introducing RISC-V or leanISA as the underlying VM for the protocol, with EVM potentially becoming a feature at the compilation layer in the future. In terms of scalability metrics, Gas limits, Blob capacity, and block times will be increased multiple times over the next 5 years, with the Glasterdam fork set to significantly raise Gas limits first. In the order of forks, H-star (Hegota) will be the last 'pre-streamlined' fork, after which Ethereum will fully enter the streamlined era. Through this complex yet smooth transition, Ethereum is moving towards a quantum-resistant, massively scalable, privacy-first new network while maximizing the protection of existing applications. This cautious disruption over the next five years has officially begun.

  • ETH Surpasses $1800

    Market data shows that ETH has surpassed $1800, currently priced at $1803.65, with a 24-hour increase of 3.76%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • BTC Surpasses $63,000

    Market data shows that BTC has surpassed $63,000, currently priced at $63,057.24, with a 24-hour increase of 1.18%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Bank of England Governor Bailey to Speak on Fiscal and Monetary Policy Coordination in Ten Minutes

    Bank of England Governor Bailey will deliver a speech on the issue of coordination between fiscal and monetary policy in ten minutes.

  • Solana Achieves $4.84 Billion in Spot Trading Volume for Tokenized Stocks This Quarter

    On July 3, it was reported that Solana broke multiple records in trading, revenue, and trading volume in the second quarter of 2026. In the tokenized stock sector, Solana's spot trading volume reached $4.84 billion this quarter, capturing over 96% market share. This volume far exceeded that of all other blockchains combined, marking the fourth consecutive quarter that Solana has led this sector, solidifying its dominant position. In terms of decentralized application revenue, the total dApp revenue for this quarter was $257 million, maintaining its lead over all Layer 1 and Layer 2 blockchains for the ninth consecutive quarter. Despite competitive pressure from peers, the enthusiasm of ecosystem developers and actual user demand remains strong. On-chain trading activity has surged, with daily, weekly, and monthly trading volumes all hitting new highs. The total number of non-voting transactions for the quarter approached 9.8 billion, with the overall network transaction volume rising to 59%, reaching an eleven-month high. The perpetual futures trading scale has seen a significant surge, with nominal trading volume for the quarter reaching $183 billion. GMTrade, Pacifica, and Jupiter were the main sources of trading volume, with GMTrade showing impressive growth in asset locking, cumulative trading volume, and protocol fees. The Phoenix platform also gained market recognition with its new features. Meanwhile, the Solana Foundation has proactively reduced its staking holdings, with the staking scale dropping to 4.92% of the total network staking, aiming to weaken its control over network validation and promote the decentralized and mature development of the validator ecosystem. Overall, even though the market is generally perceived to be at the bottom of a bear cycle, Solana's various innovative businesses and fundamental on-chain data are rising against the trend. If this quarter indeed marks the low point of the current market cycle, the existing performance will lay a solid foundation for long-term growth. The article also briefly mentions developments related to Solana's on-chain governance, the Grass rewards controversy, and future plans of the foundation's executives.

  • Venezuela's Largest Oil Refinery Resumes Operations

    On July 3, three sources reported that Venezuela's largest refinery, the Amuay refinery with a processing capacity of 645,000 barrels per day, has resumed operations after a power outage on Friday. It is currently processing approximately 140,000 barrels per day of crude oil, and the fluid catalytic cracking unit (FCC) has also restarted. Following two earthquakes last week that caused significant casualties, several refineries in Venezuela were affected by power outages. Additionally, sources indicated that the El Palito refinery, with a processing capacity of 146,000 barrels per day, has regained power, but staff have not yet been able to restart the production units.

  • US Bitcoin ETF Sees Net Outflow of 588 BTC Today, Ethereum ETF Records Net Inflow of 6,105 ETH

    According to monitoring by Lookonchain, today the US Bitcoin ETF experienced a net outflow of 588 BTC, with a total net outflow of 22,189 BTC over the past seven days. Meanwhile, the Ethereum ETF recorded a net inflow of 6,105 ETH, with a net outflow of 1,915 ETH over the past seven days.

  • US Stock Market Closed on July 3rd (Friday)

    On July 3rd, the US stock market will be closed for one day in observance of the Independence Day holiday.