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.
2022
10 pointsNew this year4
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
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
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
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.
Kept working6
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
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.
They examined margin borrowing, liquidations and collateral valuation in lending contracts.
Seen in 2 reports
They reviewed vault share pricing and deposit and withdrawal flows that value assets from pool reserves.
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
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