Skip to content

In-depth lesson · Price oracle manipulation

Year by year: 2022

What the disclosed Price oracle manipulation reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 10 of 10 (of 40 in all)

Clear the search

2022

10 points

New this year4

  1. Minting synths while the native asset looked overvalued after a large swap, then burning them after restoring the pool, appears as a way to test whether redemption value tracks manipulated reserves.

    Seen in 1 report
  2. Calling the parameter update function with a different oracle while a loan was outstanding, to check whether the contract compared the new oracle with the existing one, appears in the disclosed reports.

    Seen in 1 report
  3. Checking decimal scaling in a cToken price calculation, where dividing by the number of decimals instead of ten raised to that power overvalues the token, appears in the disclosed reports.

    Seen in 1 report
  4. Checking whether the minimum lock period could be set to zero and whether that turned a flash-loan price manipulation into extra shares on deposit appears in the disclosed reports.

    Seen in 1 report

Kept working6

  1. Hunters checked whether price, share or redemption calculations read Uniswap pair reserves at the current instant and whether a large swap in one transaction moved the value enough to profit.

    Seen in 3 reports
  2. They checked whether a vault strategy valued assets using a Curve pool spot exchange rate, then skewed that rate with a large swap and deposited or withdrew on favourable terms.

    Seen in 2 reports
  3. They examined margin borrowing, liquidations and collateral valuation in lending contracts.

    Seen in 2 reports
  4. They reviewed vault share pricing and deposit and withdrawal flows that value assets from pool reserves.

    Seen in 2 reports
  5. For a vault with impermanent loss protection, they unbalanced the pool with a flash loan just before withdrawing liquidity and checked whether the payout was calculated from the manipulated reserves.

    Seen in 1 report
  6. They held LP tokens, swapped a large amount of the paired token into the pool, burned the LP tokens for an inflated payout, then swapped back and compared the net result.

    Seen in 1 report