In-depth lesson · Price oracle manipulation
Bypasses and variations
Every point the Price oracle manipulation reports back under this heading, best-backed first, each with the reports it is seen in.
-
Inflate an exchange rate by transferring underlying tokens directly to the contract rather than going through the deposit function.
Seen in 2 reports
-
Take a flash loan of the token being priced so its total supply temporarily shrinks and the price formula inflates.
-
Front-run a legitimate oracle update with a manipulated tick so the attacker's value is the one recorded for the epoch.
Seen in 1 report
-
Front-run a victim's price validation call with a permissionless sync so the same-block check always fails, and repeat on each retry.
Seen in 1 report
-
Replay an older but still-fresh signed price component after an oracle rotation to push a near-maintenance position into liquidation.
Seen in 1 report
-
Create a fresh pool so the TWAP observation reverts, then rely on the guard falling back to the manipulated spot price.
-
Split the swap into small trades to reduce fees while still inflating the pool balance used for weight calculation.
Seen in 1 report