TWAP Oracle Vulnerability

Exploit

A TWAP Oracle Vulnerability arises from the manipulation of Time-Weighted Average Price (TWAP) oracles, commonly used in decentralized finance (DeFi) to determine asset prices for execution. This vulnerability centers on the ability of an attacker to influence the price reported by the oracle during the TWAP calculation window, leading to unfavorable trade execution for counterparties. Successful exploitation requires sufficient capital to significantly shift the price within the specified time frame, often involving front-running or sandwich attacks to maximize profit.