You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
Olivierdem
medium
Oracle feed not validated enough
Summary
Oracle data feed is insufficiently validated. There is no check for stale price and round completeness.
Vulnerability Detail
Price can be stale and can lead to wrong spot64x64 return value.
Impact
Impact could be big since the stale price would happen in the getDeltaStrikePrice64x64 function.
Code Snippet
https://github.com/sherlock-audit/2022-09-knox/blob/main/knox-contracts/contracts/pricer/PricerInternal.sol?plain=1#L49-L54
Tool used
Manual Review
Recommendation
The oracle gives back 5 values when called, so don't ignore 4 of them.
Validate Data Feed with some require:
Duplicate of #137
The text was updated successfully, but these errors were encountered: