Learn / Scams and safety

What is an oracle manipulation attack?

An oracle manipulation attack distorts the price a DeFi protocol reads from its oracle, so an attacker can borrow or withdraw more than their assets are worth.

Scams and safety Illustration: Cryptoweek

An oracle manipulation attack is an exploit in which someone makes a DeFi protocol believe an asset is worth more or less than it really is. Smart contracts cannot check prices themselves, so they rely on an oracle. If the attacker can distort what that oracle reports, even for a few minutes, the protocol may hand out loans or payouts based on a fake value.

What is price oracle manipulation?

Chainlink's education hub separates two cases. In market manipulation, the attacker actually moves the price on real markets, and the oracle accurately reports that distorted price. In an oracle exploit, the market is fine but the oracle reports something different, for example because it watches too few venues or a data source fails. Halborn's broader definition also covers oracles that report stale information, which a contract will act on just as readily as a fresh price. It adds attacks on the oracle itself, such as compromising a centralized data node or bribing operators in a weakly secured network.

The most common pattern targets a protocol that reads the spot price from a single exchange. Halborn describes attackers using flash loans to push a token's price up on one DEX, so a lending protocol values their collateral too highly and issues loans that will never be repaid.

What happened in the Mango Markets oracle manipulation?

According to the CFTC, on October 11, 2022, Avraham Eisenberg opened two anonymous accounts on Mango Markets, a digital asset trading platform, and took large leveraged positions tied to the price of its MNGO token. He then bought heavily on three exchanges that fed Mango's oracle. The reported MNGO price rose more than 13-fold in about 30 minutes. Using his inflated positions as collateral, he withdrew more than $110 million, draining most other users' deposits. He later returned about $67 million.

A New York jury convicted him in April 2024 of commodities fraud, commodities manipulation and wire fraud. In May 2025, a federal judge vacated all three convictions, mainly because prosecutors had not proven the case belonged in that court, TRM Labs reported. The judge also found no material misrepresentation for the wire fraud count, noting Mango's platform had no rules against the conduct. The case shows how unsettled the law around these exploits can be.

How do DeFi protocols prevent oracle manipulation?

No single fix exists, so protocols layer defenses:

  • Time-weighted prices. Uniswap's docs explain that its oracle records prices at most once per block and lets contracts average them over a chosen window, so a brief spike counts for little. Halborn warns this can still be cheap to game for low-liquidity tokens.
  • Many sources. Chainlink says its feeds combine many data sources and node operators, weight prices by trading volume, and filter outliers.
  • Collateral limits. Chainlink advises setting loan-to-value ratios by how deep a token's market is, since thin markets are easier to move.
  • Circuit breakers and pauses. Protocols can halt activity after an extreme price move or if a feed looks wrong.
  • Fallbacks and monitoring. Halborn suggests pairing an off-chain feed with an on-chain average, comparing them for deviations, and auditing the oracle logic before launch.

For other ways protocols fail, see how crypto gets hacked and is DeFi safe.

This guide explains how things work. It is not financial, legal or tax advice. Last updated .