慢雾:yearn 遭遇攻击的根本原因是 Yearn yETH 池合约存在不安全的数学运算

ChainCatcher 消息,据 SlowMist 监测,去中心化金融协议 yearn 遭遇黑客攻击,造成约 900 万美元损失。
慢雾安全团队对该事件进行了分析,确认根本原因如下:漏洞源于 Yearn yETH 加权稳定币交换池(Weighted Stableswap Pool)合约中用于计算供应量的 _calc_supply 函数逻辑。由于存在不安全的数学运算,该函数在计算过程中允许溢出和舍入误差,导致新供应量与虚拟余额的乘积计算出现显著偏差。攻击者利用此缺陷可将流动性操控至特定数值,并超额铸造流动性池(LP)代币,从而非法获利。建议加强边界场景测试,并采用经过安全验证的算术运算机制,以防范同类协议中此类溢出等高危漏洞。
此前消息,Yearn 发布声明称,其 yETH 稳定池于 11 月 30 日 21:11 UTC 遭遇攻击,攻击者通过自定义合约大量铸造 yETH,导致池内约 800 万美元资产受损,另有约 90 万美元损失来自 Curve 上的 yETH-WETH 池。
Disclaimer: OKX Orbit content is provided for informational purposes only. Learn more
Replies
Related Flash News
The dYdX community voted to approve the "phasing out 12 markets" proposal
On-chain investigator: A large number of North Korean IT workers are deeply involved in building blockchain protocols, dating back to DeFi Summer in 2020
Binance will delist spot trading pairs such as AI/BTC, ALLO/BNB, APE/BTC, etc
Binance will remove 20 spot trading pairs, including AI/BTC, on January 23, 2026
Lookonchain: Suspected Indexed Finance and Kyber attacker associated addresses are active again after 1 year of silence
Indexed Finance and Kyber Network hacked linked wallets to sell about $2.11 million in assets again after a year
Wallets linked to Indexed Finance and Kyber Network hackers dumped $2.11 million in tokens after 1 year of dormancy
Wallets linked to Indexed Finance and Kyber Network hackers sold $2.11 million in tokens after one year of dormancy
Yearn Finance details the $9 million yETH exploit, confirms the recovery of some assets, and announces a repair plan
Yearn Finance details $9 million yETH exploit, confirms the recovery of some assets and announces repair plans




