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 Dec 17, 2023. It is now read-only.
sherlock-admin opened this issue
Jun 11, 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
The potential solution is to validate that no more than 1 hour has passed from the "updatedAt" timestamp value returned from "latestRoundData()", otherwise the transaction will revert
sherlock-admin2
added
Medium
A valid Medium severity issue
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Reward
A payout will be made for this issue
and removed
Non-Reward
This issue will not receive a payout
labels
Jul 19, 2023
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
sl1
medium
Medim severity - No check for stale price feeds
Summary
getPriceFromChainlink function in PriceOracle.sol does not check for price feed staleness which can lead to wrong price return value.
Vulnerability Detail
Oracle data feed is insufficiently validated. There is no check for stale price. Price can be stale and lead to wrong return value.
Impact
Stale data can lead to wrong price.
Code Snippet
https://github.com/sherlock-audit/2023-05-ironbank/blob/9ebf1702b2163b55479624794ab7999392367d2a/ib-v2/src/protocol/oracle/PriceOracle.sol#L67
Tool used
Manual Review
Recommendation
The potential solution is to validate that no more than 1 hour has passed from the "updatedAt" timestamp value returned from "latestRoundData()", otherwise the transaction will revert
Duplicate of #9
The text was updated successfully, but these errors were encountered: