The flash-minting feature from the fyDAI
token can be used to redeem an arbitrary amount of funds from a mature token.
Short term, disallow calls to redeem in the YDai
and Unwind contracts during flash minting.
Long term, do not include operations that allow any user to manipulate an arbitrary amount of funds, even if it is in a single transaction.
This will prevent attackers from gaining leverage to manipulate the market and break internal invariants.
- ToB Audit Yield Protocol Finding 1
- Undefined Behavior
- Medium Severity
- FlashMint Any Number
- Mature Tokens
- Disallow Flash Minting
- Youtube Reference
- Medium Risk severity finding from ToB’s Audit of Yield Protocol