Last updated: March 11, 2025
SCWE-028: Price Oracle Manipulation
Stable Version v0.0.1
This content is in the version-(v0.0.1) and still under active development, so it is subject to change any time (e.g. structure, IDs, content, URLs, etc.).
Send Feedback
Relationships
Description
Price Oracle manipulation refers to the exploitation of vulnerabilities in price oracles to manipulate contract logic. This can lead to:
- Unauthorized actions by malicious actors.
- Loss of funds or data.
- Exploitation of the contract's logic.
- Use decentralized oracles: Leverage multiple decentralized oracles for price data.
- Validate inputs: Ensure all oracle data is properly validated before use.
- Implement circuit breakers: Add mechanisms to halt operations in case of suspicious activity.
Examples
Why is this vulnerable?
Fixes:
- Uses TWAP (Time-Weighted Average Price) instead of relying on instantaneous price updates.
- Implements price guards to prevent extreme price fluctuations.