Complete Review of Yearn’s $9 Million Hack: How a Three-Stage Bug Triggered "Infinite Minting"

robot
Abstract generation in progress

[Bitpush] Last week’s yETH attack on Yearn Finance has finally gotten a full post-mortem report from the official team.

In short, they had an old stableswap pool with a hidden three-stage numerical bug—attackers exploited it to “mint unlimited LP tokens,” draining nearly $9 million directly from the pool. The incident happened on November 30, specifically at block height 23914086.

But there’s some good news. Yearn, together with the Plume and Dinero teams, managed to recover 857.49 pxETH, about a quarter of the stolen assets. This amount will be proportionally returned to yETH deposit users.

On the technical side, the attacker’s method was quite sophisticated—using a series of complex operations to push the pool’s internal parser into a divergent state, eventually triggering an arithmetic underflow. The main target was a custom stableswap pool aggregating various LSTs, plus a yETH/WETH Curve pool. The team specifically emphasized: v2 and v3 vaults and other products were unaffected.

A fix is already on the way: adding explicit domain checks to the parser, replacing all critical unsafe arithmetic with checked versions, and a clever move—disabling the bootstrap logic immediately after the pool goes live. This incident is a costly lesson learned with real money.

CRV-1.04%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 9
  • Repost
  • Share
Comment
0/400
DefiOldTrickstervip
· 4h ago
Code is always greater than audit
View OriginalReply0
Rugman_Walkingvip
· 12-09 11:07
The three phases were hit too hard by hacks.
View OriginalReply0
HashBrowniesvip
· 12-09 03:02
There are so many pitfalls with old projects.
View OriginalReply0
NftRegretMachinevip
· 12-08 16:18
Old vulnerabilities of old projects
View OriginalReply0
SchrodingerPrivateKeyvip
· 12-08 16:12
Old vulnerabilities can be deadly.
View OriginalReply0
OvertimeSquidvip
· 12-08 16:09
Patch up, check for omissions, and keep mining.
View OriginalReply0
SelfCustodyBrovip
· 12-08 16:07
That's outrageous, bro.
View OriginalReply0
GmGnSleepervip
· 12-08 16:05
Recovering a quarter is not bad.
View OriginalReply0
ProposalDetectivevip
· 12-08 16:01
The audit is not effective.
View OriginalReply0
View More
  • Pin
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate App
Community
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)