MonoX Hack
Incident Overview
Monoswap contracts on Polygon and Ethereum were exploited due to a flaw in the swapTokenForExactToken() function, allowing the attackers to inflate the value of the MONO token and drain other tokens from the pool.
The attackers exploited a weakness in the swapTokenForExactToken() function in the Monoswap contract, using the same token as tokenIn and tokenOut. This resulted in the price of the MONO token being artificially inflated. The attackers then used this inflated token to swap out almost all of the other tokens in the pool.
Stolen funds:
- 5.7M MATIC ($10.5M)
- 3.9k WETH ($18.2M)
- 36.1 WBTC ($2M)
- 1.2k LINK ($31k)
- 3.1k GHST ($9.1k)
- 5.1M DUCK ($257k)
- 4.1k MIM ($4.1k)
- 274 IMX ($2k)
The attacker's addresses:
Polygon: https://polygonscan.com/address/0xecbe385f…953258
Ethereum: https://etherscan.io/address/0xecbe385f…953258
Transactions behind the attack:
Polygon: https://polygonscan.com/tx/0x5a03b9c0…004d5d
Ethereum: https://etherscan.io/tx/0x9f14d093…f5f299
Incident Report
Protocol Information
Market Context at Time of Hack
What the Attacker Needed to Succeed
Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.
What Auditors Should Check
If you're auditing a protocol with similar architecture to MonoX, these are the critical security checks that could have prevented this incident (November 2021).
- Verify all logic paths related to Swap Function Exploit / Other are guarded by proper access controls and input validation
- Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs
Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.
Free TrialProof-of-Concept Exploits
On-Chain Evidence & References
- Post-Mortem https://slowmist.medium.com/detailed-analysis-of-the-31-million-…
- Reference https://knownseclab.com/news/61a986811992da0067558749
- Twitter/X Alert https://www.tuoniaox.com/news/p-521076.html
- Block Explorer https://polygonscan.com/tx/0x5a03b9c03eedcb9ec6e70c6841eaa4976a7…
- Block Explorer https://etherscan.io/tx/0x9f14d093a2349de08f02fc0fb018dadb449351…
Sources & References
- 01
- 02
-
03
Reference https://rekt.news/monox-rekt/
- 04
Learn to Prevent the Next MonoX
The MonoX hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.