Midas Capital Hack
Incident Overview
Midas Capital protocol was exploited via a flashloan attack. The attacker stole worth around $650k USD.
Midas Capital protocol smart contract was exploited using multiple patterns such as flashloan, reentrancy, and code logic issues. Flashloan, taken, from the balancerV2 pool was used to perform an attack on the Midas pool. The logic of calculation of a position's collateral was exploited and gave an opportunity to the attacker to gain about 660k MATIC of profit.
After that MATIC tokens were transferred to multiple addresses on Polygon network.
Exploit TX:
https://polygonscan.com/tx/0x00534902…0a2c2f
Exploiter addresses:
https://polygonscan.com/address/0x1863b747…d08611
https://polygonscan.com/address/0xe53955d2…e359be
https://polygonscan.com/address/0x123bb33d…293eb8
https://polygonscan.com/address/0x7d27bc40…1d6c40
https://polygonscan.com/address/0xb6ac8cbd…33f429
https://polygonscan.com/address/0x49605afe…8e049c
https://polygonscan.com/address/0x8dded7da…c344ac
https://polygonscan.com/address/0x5ad4238b…d14a0d
https://polygonscan.com/address/0x65281cad…5a72ec
https://polygonscan.com/address/0x7de62e82…7f5922
https://polygonscan.com/address/0x62cc8544…957a8e
https://polygonscan.com/address/0x1395d3d5…8317ff
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 Midas Capital, these are the critical security checks that could have prevented this incident (January 2023).
- Verify all logic paths related to Flashloan Reentrancy Attack / Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
- Check that all state-changing functions follow the Checks-Effects-Interactions (CEI) pattern to prevent reentrancy and logic ordering bugs
- 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 TrialSecurity Audit History
- Audit Report 1 Report
Related Attack Classes
The technique used in this hack maps to these vulnerability classes in our security curriculum:
Sources & References
- 01
- 02
- 03
Learn to Prevent the Next Midas Capital
The Midas Capital 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.