Worked example · 2023-04
Yearn iearn yUSDT — token contract wired to the Fulcrum iUSDC token instead of iUSDT, so a small deposit minted a huge supply of yUSDT — Yearn iearn legacy protocol / Ethereum — 2023-04-13
Summary
On 2023-04-13 an exploit hit yUSDT, the USDT token of Yearn's early "iearn" protocol (Decrypt). Researcher samczsun said yUSDT pointed at the Fulcrum iUSDC token instead of the iUSDT token (The Block); CertiK states the same ("the Fulcrum iUSDC token was used in place of the Fulcrum iUSDT token"). PeckShield, relayed by The Block, said the attacker minted 1.2 quadrillion yUSDT from roughly $10,000. Halborn describes the same deposit of 10,000 USDT and calls the wrong address a "copy-paste error". The attack used Aave V1 to carry out many swaps; Aave said V1 was not exploited (The Block, Decrypt). Yearn contributor Storm Blessed 0x said the issue seemed isolated to the iearn legacy protocol and liquidity pool, and that "Yearn v2 vaults seem not to be impacted" (Decrypt).
Timeline (UTC)
Stages: Flaw (config wrong since deployment), Take (mint and swap out), Money (Tornado Cash), Response (Yearn statement). No opened source gives times of day or transaction hashes; those are undisclosed here.
| When | What happened | OAK |
|---|---|---|
| About 2020 (deployment) | yUSDT is deployed pointing at the Fulcrum iUSDC token instead of iUSDT; samczsun says it was broken "since deploy", over 1,000 days earlier (Decrypt) | T9.016 |
| 2023-04-13 (time undisclosed) | The attacker deposits about $10,000 and mints 1.2 quadrillion yUSDT, per PeckShield (The Block). Transaction hashes undisclosed | T9.016 |
| 2023-04-13 (time undisclosed) | The minted yUSDT is swapped for DAI, USDC, BUSD, TUSD and USDT, using Aave V1 for many of the swaps (The Block) | T9.016 |
| 2023-04-13 (time undisclosed) | The attacker begins withdrawing ETH through Tornado Cash; PeckShield reports 1,000 ETH (about $1.9M) at the time of reporting (Decrypt) | T7.001 |
| 2023-04-13 | Yearn contributor says the issue looks isolated to the legacy iearn protocol and pool and that contributors are investigating (Decrypt) | response |
Key addresses:
- yUSDT contract (vulnerable) —
0x83f798e925bcd4017eb265844fddabb448f1707d, printed by CertiK - Attacker addresses — undisclosed (none printed on an opened page)
Root-cause evidence
- Technique: OAK-T9.016
- Source: https://www.certik.com/resources/blog/earnings-misconfigured-yearn-finance-exploit-explained; https://www.theblock.co/post/226134; https://decrypt.co/126194/older-versions-of-aave-yearn-finance-exploited-11-6m; https://halborn.com/blog/post/explained-the-yearn-finance-hack-april-2023
- Source type: security-firm
- Confidence: corroborated
- Evidence: CertiK and Halborn independently describe the wrong underlying token (iUSDC for iUSDT) in the yUSDT contract; samczsun (via Decrypt and The Block) says the same. Yearn has not been seen by this pass to publish its own post-mortem, so the step from the misconfiguration to the minting calls is not documented at function level. The attacker's transactions are undisclosed in the opened pages.
Public references
- The Block, "Exploit involving early version of Yearn Finance saw damages of $11.6 million: PeckShield" (2023-04-13): https://www.theblock.co/post/226134
- Decrypt, "Older versions of Aave, Yearn Finance exploited for $11.6M" (2023-04-13): https://decrypt.co/126194/older-versions-of-aave-yearn-finance-exploited-11-6m
- CertiK, "Earnings Misconfigured: Yearn.finance Exploit Explained": https://www.certik.com/resources/blog/earnings-misconfigured-yearn-finance-exploit-explained
- Halborn, "Explained: The Yearn Finance Hack (April 2023)" (2023-04-21): https://halborn.com/blog/post/explained-the-yearn-finance-hack-april-2023