entekhab.netentekhab.nettrilingual encyclopedia

Oracle Manipulation

ENGLISHOracle Manipulationreference
فارسیدستکاری اوراکلRecommended equivalent
کوردیدەستکاریکردنی ئۆراکڵProposed equivalent — not standard
Category
Decentralised Finance
Level
Expert

Simple definition

Pushing the price a protocol reads away from the real market price, so the protocol lends too much, liquidates the wrong positions, or prices a trade wrongly.

Professional definition

Causing a protocol's price input to misstate market value, usually by trading in the thin venue the feed derives from. The protocol then acts correctly on a false number: collateral is overvalued, debt limits are wrong, and the loss falls on the protocol's depositors.

Technical definition

The vulnerability is in the feed's construction, not the contract logic. A feed taken from one pool's instantaneous reserves can be moved within a single transaction, and atomic uncollateralised borrowing removes the capital needed to do it. Hardening is a design matter: time-weighted rather than spot readings, several independent sources with outlier rejection, deviation and staleness checks, and caps on how far a position can move on one update. None removes the risk, and each adds latency that is itself costly in a fast fall.

Academic definition

An attack on the price-input layer of a protocol, in which an adversary distorts the reference measurement rather than the contract's execution, exploiting feed construction choices such as spot sampling from shallow venues.

Mechanism

A protocol that cannot see the world has to be told a price, and whoever can move what it measures can move what it believes. The cheapest measurement is one pool's current reserves, and the cheapest way to move that is a large trade in a shallow pool. The protocol's own correctness then does the damage, because it enforces the wrong number faithfully.

In practice

Who uses it
Protocol designers and auditors choosing feeds, risk teams setting deviation limits, and depositors assessing where a protocol's prices come from.
Why it matters
The price input is the single assumption every collateral and liquidation rule rests on, so its construction bounds the safety of everything above it.
Limitations
Hardening trades freshness for robustness: a slower feed resists manipulation but liquidates late in a genuine crash, leaving bad debt instead.

Common mistakes

  • Reading a pool's instantaneous price as a market price.
  • Judging a protocol safe because its contracts were audited while its feed is a single thin pool.
  • Assuming multiple feeds are independent when they sample the same venue.

Examples

numeric

A feed reads a pool holding 1,000 and 100,000, a price of 100. A swap of 400 into it moves the reported price to about 51, so collateral valued by that feed is suddenly worth half, on a market where nothing happened.

Given
  • pool reserves x = 1,000, y = 100,000, so the spot price read by the feed is 100
  • a swap adds 400 units of x to the pool
  • fees ignored
Steps
  1. new x = 1,000 + 400 = 1,400
  2. constant product: new y = 1,000 x 100,000 / 1,400 = 71,428.6
  3. new reported price = 71,428.6 / 1,400 = 51.02
  4. collateral valued at this feed falls 49% with no change in any deep market
A single trade halves the price the protocol believes.

This is why a spot reading from one shallow pool is unsafe as a feed. A time-weighted average over the same window would move far less.

crypto

A protocol values a thinly traded collateral token from its only pool. A distorted high reading lets a position borrow far more than the collateral is worth; when the feed returns to normal, the debt remains and the depositors absorb the shortfall.

Related terminology

parent
Oracle
related
Oracle Flash Loan Liquidation Threshold Collateral Ratio Lending Protocol Market Manipulation Smart Contract Audit Time-Weighted Average Price Constant Product Formula
Commonly confused with

Market Manipulation

Market manipulation aims to mislead other traders about value. This aims to mislead one contract's measurement, and can work even if no human is fooled.

Commonly confused with

Reentrancy Attack

A reentrancy attack exploits the contract's own control flow. This one leaves the code intact and corrupts its input.

Sources

Oracles
Ethereum Foundation Developer Docs · oracle designs, trust assumptions and the risks of on-chain price sources
https://ethereum.org/developers/docs/oracles/ URL verified
DeFi risks and the decentralisation illusion
BIS Quarterly Review · 2021-12 · oracle dependence as a shared point of failure in DeFi
https://www.bis.org/publ/qtrpdf/r_qt2112b.pdf URL verified
Final Report with Policy Recommendations for Decentralized Finance (DeFi)
IOSCO · recommendations on operational risk and market integrity
https://www.iosco.org/library/pubdocs/pdf/ioscopd754.pdf URL verified

Editorial status

Needs expert reviewconsensusv1.02026-11-05

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

That spot feeds from shallow venues are the weak point is well established in protocol documentation and supervisory analysis; the share of losses attributable to this class is estimate-dependent and no figure is asserted. The entry describes defences and the mechanism at a conceptual level and gives no operational detail. Kurdish headword is this project's proposal and needs native-expert review.