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 May 26, 2023. It is now read-only.
cccz
medium
Chainlink's latestRoundData might return stale or incorrect results
Summary
Chainlink's latestRoundData might return stale or incorrect results
Vulnerability Detail
On PricerInternal, we are using latestRoundData, but there is no check if the return value indicates stale data.
This could lead to stale prices according to the Chainlink documentation:
https://docs.chain.link/docs/historical-price-data/#historical-rounds
https://docs.chain.link/docs/faq/#how-can-i-check-if-the-answer-to-a-round-is-being-carried-over-from-a-previous-round
Impact
Stale prices might be used.
Code Snippet
https://github.com/sherlock-audit/2022-09-knox/blob/main/knox-contracts/contracts/pricer/PricerInternal.sol#L49-L55
Tool used
Manual Review
Recommendation
Validate data feed by:
Duplicate of #137
The text was updated successfully, but these errors were encountered: