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 Nov 26, 2023. It is now read-only.
sherlock-admin opened this issue
May 23, 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 Oracle return values are not being checked.
Summary
Chainlink Oracle return values are not handled properly.
Vulnerability Detail
The chainlink priceFeed.latestRoundData() returns other values (like roundId, updatedAt, answeredInRound) apart from price that need to be checked. Otherwise, we could get stale prices or incomplete rounds.
Impact
If there is a problem with Chainlink starting a new round and finding consensus on the new value for the oracle, consumers of the oracle contract may continue using outdated data.
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
ni8mare
medium
Chainlink Oracle return values are not being checked.
Summary
Chainlink Oracle return values are not handled properly.
Vulnerability Detail
The chainlink
priceFeed.latestRoundData()
returns other values (likeroundId
,updatedAt
,answeredInRound
) apart fromprice
that need to be checked. Otherwise, we could get stale prices or incomplete rounds.Impact
If there is a problem with Chainlink starting a new round and finding consensus on the new value for the oracle, consumers of the oracle contract may continue using outdated data.
Code Snippet
This is seen in the following contacts:
StableOracleDai
StableOracleWBTC
StableOracleWETH
Tool used
Manual Review
Recommendation
It is recommended to add the following checks:
Duplicate of #31
The text was updated successfully, but these errors were encountered: