Skip to content

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.

Back to the lesson 1 to 7 of 7
  1. Inflate an exchange rate by transferring underlying tokens directly to the contract rather than going through the deposit function.

    Seen in 2 reports
  2. Take a flash loan of the token being priced so its total supply temporarily shrinks and the price formula inflates.

    Seen in 2 reports
  3. 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
  4. 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
  5. 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
  6. Create a fresh pool so the TWAP observation reverts, then rely on the guard falling back to the manipulated spot price.

    Seen in 1 report
  7. Split the swap into small trades to reduce fees while still inflating the pool balance used for weight calculation.

    Seen in 1 report