This repository has been archived by the owner on Dec 31, 2023. It is now read-only.
BugHunter101 - Using latestRoundData()
function but does not check return's validity
#53
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
BugHunter101
medium
Using
latestRoundData()
function but does not check return's validitySummary
Using
latestRoundData()
function but does not check return's validityVulnerability Detail
As we can see,
ChainLinkOraclePivot.sol
are using latestRoundData, but there is no check if the return value indicates stale dataImpact
This could lead to stale prices according to the Chainlink documentation:
https://docs.chain.link/data-feeds/price-feeds/historical-data
Related report:
code-423n4/2021-05-fairside-findings#70
Code Snippet
https://github.com/sherlock-audit/2023-06-arrakis/blob/main/v2-manager-templates/contracts/oracles/ChainLinkOraclePivot.sol#L239
Tool used
Manual Review
Recommendation
Add the below check for returned data. you can refer to:
sherlock-audit/2023-02-blueberry-judging#94
The text was updated successfully, but these errors were encountered: