TWAP Oracle Attack

Exploit

A TWAP Oracle Attack represents a manipulation of Time-Weighted Average Price (TWAP) oracles, commonly utilized in decentralized finance (DeFi) protocols to determine asset prices for execution. This attack vector exploits the inherent latency in data aggregation, allowing malicious actors to influence the oracle’s reported price during the TWAP calculation window, typically through large trades executed strategically. Successful exploitation can lead to unfavorable trade executions for legitimate users, or enable attackers to profit from discrepancies between the oracle price and the prevailing market value.