SlowMist: The root cause of the yearn attack is that the Yearn YETH pool contract contains unsafe mathematical operations.

MarsBitNews

Mars Finance News: According to monitoring by SlowMist, the decentralized finance protocol Yearn suffered a hacker attack, resulting in a loss of approximately $9 million. The SlowMist security team analyzed the incident and confirmed the root cause as follows: the vulnerability originated from the logic of the _calc_supply function used to calculate supply in the Yearn yETH Weighted Stableswap Pool contract. Due to unsafe mathematical operations, this function allowed overflows and rounding errors during calculations, leading to significant discrepancies in the product calculation of new supply and virtual balance. Attackers exploited this flaw to manipulate liquidity to specific values and excessively mint liquidity pool (LP) tokens, thereby gaining illegal profits. It is recommended to strengthen boundary scenario testing and adopt security-verified arithmetic mechanisms to prevent high-risk vulnerabilities such as overflow in similar protocols. Previously, Yearn issued a statement saying that its yETH stable pool was attacked at 21:11 UTC on November 30, with the attacker minting large amounts of yETH through a custom contract, resulting in about $8 million of assets lost in the pool and an additional $900,000 lost from the yETH-WETH pool on Curve.

View Original
Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.
Comment
0/400
No comments