Scan to download
BTC $74,688.03 -0.50%
ETH $2,321.89 -1.55%
BNB $628.00 +0.53%
XRP $1.43 +1.44%
SOL $87.67 +2.63%
TRX $0.3255 -0.06%
DOGE $0.0968 +0.38%
ADA $0.2530 +1.36%
BCH $447.94 +1.02%
LINK $9.36 +0.49%
HYPE $43.52 -4.72%
AAVE $112.11 +5.30%
SUI $0.9778 +0.79%
XLM $0.1648 +3.00%
ZEC $332.17 -3.01%
BTC $74,688.03 -0.50%
ETH $2,321.89 -1.55%
BNB $628.00 +0.53%
XRP $1.43 +1.44%
SOL $87.67 +2.63%
TRX $0.3255 -0.06%
DOGE $0.0968 +0.38%
ADA $0.2530 +1.36%
BCH $447.94 +1.02%
LINK $9.36 +0.49%
HYPE $43.52 -4.72%
AAVE $112.11 +5.30%
SUI $0.9778 +0.79%
XLM $0.1648 +3.00%
ZEC $332.17 -3.01%

Review of the GMX theft of 42 million dollars: The decline of second-generation derivatives DEX

Summary: Circle has also been "cursed."
ChainCatcher Selection
2025-07-10 14:40:29
Collection
Circle has also been "cursed."

Author: Fairy, ChainCatcher

Editor: TB, ChainCatcher

During the bear market of 2022, GMX was one of the few highlights, representing on-chain perpetual contract trading and even once held an almost monopolistic position.

However, as the market recovered and competition intensified, its brilliance gradually faded behind emerging stars. Today, a hacker attack amounting to $42 million has once again brought GMX back into the public eye.

What is even more disheartening is that this incident has not garnered widespread attention in the Chinese community. A project that once held significant influence in the industry is quietly exiting the main stage.

The Former King Faces Heavy Blow

Since its launch in September 2021, GMX's TVL rapidly grew to $350 million before the LUNA collapse and reached a peak of about $700 million in May 2023. Its token price also soared, peaking at $91 in April 2023.


Source: Defillama

However, with the rise of new protocols, the market share of established projects like GMX has been continuously eroded. The recent hacker attack on GMX has further compounded the challenges amid declining traffic.

This attack caused GMX's token price to drop by 17.3%, with a TVL evaporation of about $100 million, a decline of up to 20%. The hacker stole over $42 million in crypto assets, involving various mainstream tokens, including WBTC, WETH, UNI, FRAX, LINK, USDC, USDT, and others.

After the incident, the GMX team immediately left a message on the hacker's address, offering a 10% white hat bounty. However, according to monitoring by YuJin, the attacker has converted most of the stolen assets into about 11,700 ETH and dispersed them into four wallets. This operation essentially means the attacker has rejected the bounty proposal made by the project team.

It is worth noting that this is not the first time GMX has faced an attack. Back in September 2022, its v1 protocol deployed on Avalanche was exploited by hackers, resulting in a loss of about $560,000.

Attack Path Analysis

In GMX, GLP is the liquidity provider token, representing a share of the treasury assets (such as USDC, ETH, WBTC). When the enableLeverage function is activated, users can open leveraged positions, including long or short operations.

According to security company BlockSec, the root cause of this issue lies in the incorrect invocation of the executeDecreaseOrder function.

The first parameter of this function was supposed to be an external account (EOA), but the attacker passed in a smart contract address, thereby executing a reentrancy attack.

Specifically, before redeeming GLP, the attacker opened a large short position in WBTC. Since the short position increased the global short size as soon as it was opened, and the price had not yet changed, the system defaulted that the short was at a loss, and this unrealized loss would be counted as "assets" of the treasury, leading to an artificial increase in AUM.

Although the treasury did not actually gain additional value, the redemption calculation would be based on this inflated AUM, allowing the attacker to obtain assets far exceeding what they were entitled to.

Source: BlockSec

$27 Million in Funds May Face Chain Reaction?

GMX's early success sparked a wave of "forks," where numerous projects copied its open-source code with slight modifications or deployed it on other blockchains. Security company PeckShield warned that the vulnerability exploited in GMX v1 may also exist in these forked protocols.

It is estimated that approximately $27 million in funds are still exposed to such risks. Data from DeFiLlama shows that 64 related projects have been identified, but only 13 of them have a TVL exceeding $100,000.

Source: DeFiLlama

GMX has issued a warning on the X platform, urging these projects to take immediate countermeasures, including disabling leverage features and pausing the minting of GLP tokens to prevent similar attacks from occurring again.

Circle's Slow Response Sparks Outrage

In this attack incident, the stablecoin issuer Circle has also faced criticism for its "too slow" response, according to the community. Several users pointed out that Circle had the opportunity to blacklist the hacker's address and freeze over $9 million of the stolen USDC but failed to take timely action.

The attacker even used Circle's own cross-chain bridging tool CCTP to transfer 8 million USDC from Arbitrum to Ethereum, subsequently exchanging it for DAI. Despite this fund remaining on-chain for 1-2 hours, Circle did not respond at all.

On-chain analyst ZachXBT publicly criticized Circle's sluggishness, and this is not the first time ZachXBT has targeted Circle; he has repeatedly questioned co-founder Jeremy Allaire on Twitter about why they are always "slow to react" at critical moments. For instance, during the Bybit hacking incident, Circle only froze the relevant address a day later.

GMX was once a pioneer in decentralized perpetual contract trading platforms, leading a golden wave. Looking back at the development of this sector, the first-generation project DYDX once flourished but now struggles in silence, while Perpetual Protocol is nearly "extinct"; the second-generation project GMX has been severely wounded by the hacker attack; now, only the third-generation project Hyperliquid is rising strongly and dominating the scene.

The market landscape is ever-changing; security and evolution are the eternal paths for projects.

Recommended Reading:

Not Tracking Hackers, PR Out of Control: A Review of the $9.6 Million Theft Incident of DeFi Protocol Resupply

$300 Million Lost in a Year: Coinbase Users Frequently Targeted by Precision Scams, Is There an "Insider" Leaking Information?

Are Mixing Platforms a Hotbed for Money Laundering? An In-Depth Look at the "Countercurrent" eXch in the Bybit Hacking Incident

warnning Risk warning
app_icon
ChainCatcher Building the Web3 world with innovations.