Technology

What Is Oracle Manipulation? How One Block Moves a Price and What It Costs to Break a TWAP

What Is Oracle Manipulation? How One Block Moves a Price and What It Costs to Break a TWAP
Image: Null TX

AI-assisted summary, reviewed .A lending protocol asks one pool a single question: what is ETH worth right now? The pool answers with whatever its reserves say this second. If an attacker can change the reserves in the same block, the protocol believes the new answer.

This guide follows What Is a Stablecoin Depeg? How the Redemption Math Breaks a $1 Peg, another case where one price number decides whether money is safe. Below is a spot-price attack worked out in dollars, then what a 30-minute time-weighted average price (TWAP) costs to move.A lending protocol needs to know what collateral is worth. Some read the price straight from an on-chain exchange pool. In a constant-product pool, that price is just the ratio of the two reserves. OWASP lists price oracle manipulation as SC02 in its 2025 Smart Contract Top 10, and warns it can lead to unauthorized withdrawals, excess leverage or drained pools.ETH reserve times USDC reserve stays at 3,000,000,000Reads this pool's spot price, lends 80% of collateral valueOwns 100 ETH ($300,000) and can take a flash loan1. Borrow with a flash loan. The attacker borrows 464,100 USDC with no collateral. It must be repaid inside the same transaction.2. Push the price. Swapping that USDC into the pool leaves it with about 866.03 ETH and 3,464,100 USDC. The reserve ratio now reads $4,000, up 33%. The attacker receives about 133.97 ETH.3. Borrow against the fake price. The attacker deposits their own 100 ETH. The lender values it at $400,000 and lends 80%, or $320,000 USDC. At the true price it would lend only $240,000.4. Put the price back. The attacker sells the 133.97 ETH into the pool. Reserves return to 1,000 ETH and 3,000,000 USDC, and the attacker gets back about 464,100 USDC.5. Repay and leave. The flash loan is repaid. The attacker keeps $320,000 and abandons the loan.

oracle manipulationstablecoinsethereumblockchainattacks

This summary is from Null TX, published Dec 3, 2026. NewsFusion links to the original reporting and groups related coverage.

Bitcoin News app icon

Find more in the app

Keep reading in Bitcoin News

Get every Bitcoin News story as it breaks, follow the topics you care about, and get alerts the moment something big happens. Free on iPhone and Android.

  • Breaking-news alerts
  • Follow topics & teams
  • Related coverage grouped by AI