Meaning
Type of financial exploit targeting data feeds in decentralized systems. Oracle price manipulation occurs when an attacker temporarily distorts the price of an asset on an exchange that a smart contract uses as its source of truth. By artificially inflating or deflating this value, the attacker can force liquidations or borrow more than they should.
This tactic exploits the reliance on external data for internal logic.
Data Vulnerability
Smart contracts cannot see the outside world and must rely on external feeds to determine asset values. Oracle price manipulation targets the specific markets that provide these feeds, especially those with low liquidity. An attacker uses a large flash loan to execute a massive trade that moves the price for a brief moment.
During this window, the smart contract reads the fake price and executes its programmed functions incorrectly.
Profit Extraction
Gains are made by interacting with a protocol while the distorted price is in effect. Oracle price manipulation allows an attacker to buy assets at a steep discount or sell them at an inflated price to the protocol itself. These funds are then moved to a private wallet before the market price returns to its normal level.
The speed of these attacks often makes them impossible to stop manually.
Defensive Architecture
Developers use time weighted average prices to make their systems more resilient to sudden spikes.