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 24, 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 lastestRoundData is not checked for stale or round completeness
Summary
It currently has no checks at all
Vulnerability Detail
latestRoundData returns: (uint80 roundID, int256 price, uint256 startedAt, uint256 timeStamp, uint80 answeredInRound).
In order to ensure Chainlink returned the correct price, these needs to be checked.
Impact
Not checking returned values can result in wrong price calculations of getPriceUSD.
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
Delvir0
medium
Chainlink lastestRoundData is not checked for stale or round completeness
Summary
It currently has no checks at all
Vulnerability Detail
latestRoundData returns: (uint80 roundID, int256 price, uint256 startedAt, uint256 timeStamp, uint80 answeredInRound).
In order to ensure Chainlink returned the correct price, these needs to be checked.
Impact
Not checking returned values can result in wrong price calculations of
getPriceUSD
.Code Snippet
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/oracles/StableOracleDAI.sol#L48
Tool used
Manual Review
Recommendation
Implement the following solution:
sherlock-audit/2023-02-blueberry-judging#94
Duplicate of #31
The text was updated successfully, but these errors were encountered: