GMX Hacker Returns $40M After Exploit: Token Surges Amid White-Hat Deal
A hacker who exploited decentralized derivatives platform GMX V1 earlier this week has returned roughly $40 million in stolen crypto after a coordinated white-hat bounty negotiation. The exploit, which took place on Arbitrum, leveraged a re-entrancy vulnerability in GMX’s OrderBook smart contract, allowing the attacker to manipulate market mechanics and extract outsized profits.
Following a public offer from GMX to let the hacker keep 10% of the stolen funds (around $4 million) in exchange for the safe return of the remainder, the exploiter complied and began returning assets including ETH, FRAX, and USDC across multiple transactions.
🔍 What Happened?
On July 2, a sophisticated attack exploited a flaw in how the GMX V1 OrderBook handled refunds. The attacker used a malicious smart contract that called the refund function during executeDecreaseOrder(), triggering a re-entrancy loop that allowed them to re-enter the contract while state changes were still pending. This allowed them to:
-
Open and close short positions on wrapped BTC (WBTC) in a manipulated window.
-
Force the GLP pool to miscalculate its AUM (Assets Under Management) due to stale state updates.
-
Mint and redeem GLP tokens at artificial prices, siphoning funds from GMX’s vaults.
The attacker used the flaw to extract $40M in ETH, WBTC, and stablecoins in a series of tightly executed transactions.
🤝 The White-Hat Bounty Deal
In a proactive move, GMX issued an on-chain and public appeal to the exploiter, offering a 10% white-hat bounty and immunity from legal pursuit if 90% of the funds were returned within 48 hours. Remarkably, the exploiter responded positively and transferred:
-
10.5 million FRAX
-
5 million FRAX
-
3,000 ETH
-
Other stablecoins including USDC
The return of funds, confirmed on-chain and by GMX contributors, was finalized by July 4.
📉 Market Reaction and Recovery
Immediately after the exploit, the GMX token plunged to a local low of $10.45, down over 30% from its monthly high. Following the fund return and the resolution of the issue, GMX rebounded more than 17%, trading back above $12.25 at press time.
The GLP token, which had its minting and redemption paused during the investigation, remains temporarily frozen as developers assess vault integrity and finalize patches.
🔐 Security Analysis
Key Exploit Elements:
-
Re-entrancy vector in a refund call due to missing checks and gas limits.
-
Use of a contract in place of an Externally Owned Account (EOA) to bypass assumptions.
-
Atomic manipulation of BTC short positions and stale AUM to trigger mispricing.
Developer Oversights:
-
No
reentrancyGuardornonReentrantmodifier on sensitive functions. -
Lack of time-based AUM calculation syncs led to GLP overvaluation.
🧠 Lessons for DeFi
This exploit highlights several persistent risks in decentralized finance:
-
Smart contract functions must not assume user identity types (e.g., EOAs vs. contracts).
-
Monetary mechanisms like AUM must sync instantly to avoid pricing inconsistencies.
-
Even audited code can carry financial logic bugs, necessitating constant threat modeling.
🚀 What’s Next for GMX?
-
V1 contracts remain paused for minting and redemptions on Arbitrum and Avalanche.
-
The GMX team is working on permanent contract patches, including gas limits and tighter refund logic.
-
Long-term, GMX V2 and modular vault separation could improve risk segmentation.
Despite the setback, GMX’s swift resolution and bounty-driven recovery may reinforce confidence in the protocol's governance and responsiveness. However, broader concerns remain in DeFi, where logic-based exploits continue to threaten pooled-value systems.
You May Also Like
Popular Posts
Newsletter
Subscribe to our mailing list to get the new updates!
