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
Chainlink’s latestRoundData might return stale results
Summary
Chainlink’s latestRoundData might return stale results
Vulnerability Detail
Chainlink’s latestRoundData might return stale results
Impact
Across these contracts, you are using Chainlink’s latestRoundData API, but there is no check on updatedAt property. Not checking how stale the answer is could lead to stale prices according to the Chainlink documentation and even to entirely drained protocols.
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
martin
medium
Chainlink’s
latestRoundData
might return stale resultsSummary
Chainlink’s
latestRoundData
might return stale resultsVulnerability Detail
Chainlink’s
latestRoundData
might return stale resultsImpact
Across these contracts, you are using Chainlink’s
latestRoundData
API, but there is no check onupdatedAt
property. Not checking how stale the answer is could lead to stale prices according to the Chainlink documentation and even to entirely drained protocols.Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Controllers/ControllerPeggedAssetV2.sol#L299
Tool used
Manual Review
Recommendation
Consider adding the missing checks for stale data:
Duplicate of #70
The text was updated successfully, but these errors were encountered: