YearnFinanceV1 suffers $300,000 exploit to legacy TUSD vault

Source Cryptopolitan

A legacy version of the decentralized finance protocol Yearn has suffered an exploit, reviving concerns about misconfigured and immutable smart contracts that have held funds on the network years after being deprecated.

In an X post on Wednesday, Security firm PeckShield reported YearnFinanceV1’s hack resulted in losses of about $300,000. The stolen funds were swapped into 103 Ether and now sit at address 0x0F21…4066, according to Etherscan images shared by the firm.

The hackers took advantage of an outdated Yearn vault tied to TrueUSD, known as the “iearn TUSD vault,” which is still deployed on Ether despite being superseded by newer versions. A configuration flaw helped the attackers manipulate share prices through several transactions.

Yearn Finance misconfigured vault triggered price manipulation 

According to an analysis from pseudonymous crypto researcher and University of Science and Technology of China alumnus Weilin Li, the vault configured one of its strategies as a Fulcrum sUSD vault and calculated its share price using only the sUSD balance deposited.

This opened the door to so-called “donation attacks,” in which an attacker transfers assets directly into a vault to distort accounting metrics. After sending Fulcrum sUSD tokens into the Yearn TUSD vault, the perpetrators were able to artificially inflate the vault’s reported share price.

The issue was compounded by a rebalance function that withdraws all underlying assets in sUSD, an asset not included in the vault’s share price calculations. When the rebalance started, the vault’s share price tanked steeply and created a “price shock.”

Per PeckShield Alert’s Etherscan snapshot, the attacker executed sequenced flash loans by firstly borrowing large amounts of TUSD and sUSD without an upfront collateral. They then deposited sUSD to mint Fulcrum sUSD tokens before depositing TUSD into the Yearn TUSD vault. 

At that stage, all underlying assets of the TUSD vault consisted of Fulcrum sUSD tokens. The exploiter withdrew from the Yearn TUSD vault and called the rebalance function, forcing Fulcrum to redeem everything into sUSD. Because sUSD was excluded from share price calculations, the vault’s accounting collapsed, effectively driving the share price toward zero.

The attacker then transferred a small amount of TUSD back into the vault, pushing the share price to extremely low levels, and minted an outsized number of Yearn TUSD tokens at minimal cost. He ultimately counted gains by selling the cheaply acquired Yearn TUSD tokens on Curve pools, extracting value from liquidity providers before repaying the flash loans.

Yearn Finance recaps 2023 vulnerability, researcher recounts

Researcher Li found that the exploit was similar to an attack carried out in 2023, leading to losses exceeding $10 million. The immutable yUSDT contract targeted in that earlier incident was deployed more than three years ago, during the early days of iearn when the late Andre Cronje led the protocol.

Pessimistic security analysts had issued a warning about the vulnerability on social media before the exploit, but since immutable smart contracts cannot be patched or paused once deployed, it was inevitable.

 “iearn finance, Smoothswap, be careful. This address 0x5bac20…ed8e9cdfe0 got 10 ETH from Tornado and deploys contracts with flashloans using your addresses,” PS’ Nikiti Kirillov wrote.

A Yearn team member known as storming0x admitted the attack happened and reassured users that its current contracts were safe. Yet, Rekt News observers revealed it took 1,156 days for the DeFi protocol to spot a multimillion-dollar vulnerability.

Yearn yUSDT token contract generated yield from a basket of yield-bearing positions, including USDT deposits on Aave, Compound, dYdX and BzX’s Fulcrum. Since launch, however, yUSDT contained a copy-and-paste error which referenced the Fulcrum USDC address instead of the Fulcrum USDT contract. 

Using just 10,000 USDT, hackers were able to mint approximately 1.2 quadrillion yUSDT, draining value from the system before cashing out.

The Yearn incident comes less than a week after Cryptopolitan featured a $2.7 million drainage from an old contract belonging to Ribbon Finance, the rebranded version of Aevo. That attack involved repeated interactions with a proxy admin contract at address 0x9D7b…8ae6B76. The attacker invoked functions such as transferOwnership and setImplementation to manipulate price-feed proxies through delegate calls.

Claim your free seat in an exclusive crypto trading community - limited to 1,000 members.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Gold Price Forecast: XAU/USD drifts higher above $4,200 as Fed delivers expected cutGold price (XAU/USD) gains momentum to around $4,235 during the early Asian session on Thursday. The precious metal extends its upside after the US Federal Reserve (Fed) delivered an expected third consecutive interest rate cut and maintained its outlook for just one cut in 2026.
Author  FXStreet
Dec 11, Thu
Gold price (XAU/USD) gains momentum to around $4,235 during the early Asian session on Thursday. The precious metal extends its upside after the US Federal Reserve (Fed) delivered an expected third consecutive interest rate cut and maintained its outlook for just one cut in 2026.
placeholder
Ethereum Price Slips Lower — $3,000 Looms as the Key BattlegroundEthereum is attempting to recover from a $3,026 low but remains below $3,200 and the 100-hour SMA, with a bearish trend line near $3,175 capping rebounds as bulls need a clean break above $3,200 to target $3,250–$3,400, while a drop below $3,050 risks a retest of $3,000 and $2,940.
Author  Mitrade
Dec 15, Mon
Ethereum is attempting to recover from a $3,026 low but remains below $3,200 and the 100-hour SMA, with a bearish trend line near $3,175 capping rebounds as bulls need a clean break above $3,200 to target $3,250–$3,400, while a drop below $3,050 risks a retest of $3,000 and $2,940.
placeholder
Macro Analysts: Hawkish Japan Could Push Bitcoin Below $70KAnalysts predict Bitcoin may face further declines towards the $70,000 mark if the Bank of Japan raises interest rates as expected.
Author  Mitrade
Dec 15, Mon
Analysts predict Bitcoin may face further declines towards the $70,000 mark if the Bank of Japan raises interest rates as expected.
placeholder
December Santa Claus Rally: New highs in sight for US and European stocks?Historical data show a rising trend of US and European stocks in December. If the momentum is strong, fund managers may rush in with a buying frenzy.
Author  Mitrade
9 hours ago
Historical data show a rising trend of US and European stocks in December. If the momentum is strong, fund managers may rush in with a buying frenzy.
placeholder
XRP’s Price Action Flashes a Warning Even as ETF Flows Stay PositiveXRP’s structure remains weak despite 18 straight positive closes in spot XRP ETFs, with analysts warning that $1.98 and other nearby resistance zones could cap rebounds unless the YO region is reclaimed, while deeper downside scenarios keep $1.53 on watch as a potential (not guaranteed) accumulation area.
Author  Mitrade
5 hours ago
XRP’s structure remains weak despite 18 straight positive closes in spot XRP ETFs, with analysts warning that $1.98 and other nearby resistance zones could cap rebounds unless the YO region is reclaimed, while deeper downside scenarios keep $1.53 on watch as a potential (not guaranteed) accumulation area.
goTop
quote