DeFiLayer 1Layer 2
14,723 OP
View results
Submission Details
Severity: high
Invalid

Potential Oracle Manipulation

Summary

Vulnerability Details

The _raw_price() function calculates price using the stored price parameters.

However, there is no protection against flash loan attacks or price manipulation through unexpected parameter changes.

eg:

If total_supply or total_idle is artificially inflated or deflated, the computed price could be manipulated.

return self._total_assets(parameters) * 10**18 // self._total_supply(parameters, ts)

Impact

Attackers could use a price oracle exploit to mislead price-dependent smart contracts.

Tools Used

Recommendations

Implement time-weighted price calculations and circuit breakers that prevent large price swings.

Updates

Lead Judging Commences

0xnevi Lead Judge
6 months ago
0xnevi Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.