GMX exploited to the tune of $40M: another reminder of the illusion of security in DeFi


Another so-called decentralized crypto exchange has suffered a multimillion-dollar exploit due to a vulnerability in its smart contracts, prompting comments about the “illusion of security in DeFi.”

This time, it was GMX's turn, as the exploiter stole around $40 million worth of GLP tokens from a pool on GMX V1 operating on the arbitrum blockchain on Wednesday. Their initial analysis confirmed that the attack was V1-specific, as the criminal manipulated how the short average price on V1 is calculated.

ADVERTISEMENT

While a detailed post-mortem will be announced as soon as the investigation is finalized, the team is already engaged in negotiations with the exploiter, offering them a 10% whitehat bounty for the return of the stolen funds.

"If the remaining 90% of funds are returned within 48 hours, we commit to pursuing no further legal action," GMX said. According to crypto security specialist PeckShield, almost $10 million worth of tokens have already been sent from arbitrum to the ethereum blockchain.

Meanwhile, the platform also urged its users to disable leverage and take extra steps to prevent further minting of the GLP token. However, some users seem to struggle to take these actions, asking for clearer instructions or a video tutorial.

Another crypto security team, SlowMist, corroborated the initial analysis of GMX, saying that the attacker exploited a GMX design flaw that allowed manipulation of prices of short trading positions, or positions betting on price decline. According to the security specialist, it directly impacts the calculation of assets under management, thereby allowing manipulation of GLP token pricing.

"Through a reentrancy attack, they successfully established massive short positions to manipulate the global average prices, artificially inflating GLP prices within a single transaction and profiting through redemption operations," the team explained.

Other blockchain experts, such as Suhail Kakar of the TAC blockchain, added that the reentrancy is "the oldest trick in the book" and that "this wasn’t a minor bug. It was a foundational flaw."

ADVERTISEMENT

"That means the attacker could trick the contract into thinking they hadn’t withdrawn anything – and mint more tokens repeatedly [without proper collateral], using the same base funds," Kakar said, later adding that the attacker also "used a contract to masquerade as a normal user."

jurgita Linas Kmieliauskas Neilc chrissw
Stay informed and get our latest stories on Google News

"Wait, almost 4 years nobody figured this out and now out of a sudden one hacker recognized this?" X user @0xSchnitzel reacted to the analysis by security experts.

In either case, as Kakar concluded, this story is not just about GMX, "it’s about the illusion of security in DeFi," as the fact that smart contracts are audited doesn't mean they're safe, and even multibillion-dollar protocols can be exploited.