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 Oct 1, 2023. It is now read-only.
sherlock-admin opened this issue
Mar 27, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Ch_301
medium
Missing validations for return value of oracle data feed
Summary
Vulnerability Detail
on getLatestPrice() the price feed must be checked if the data is really updated or not.
Impact
If the oracle price feeds are insufficiently validated, there will be pricing errors leading to wrong de-peg event or missing it
Code Snippet
Tool used
Manual Review
Recommendation
you should Add this check
require(updatedAt > 0, "error message");
Duplicate of #70
The text was updated successfully, but these errors were encountered: