staleCheckLatestRoundData function doesn't implement proper staleness check. There isn't a check for if the returned price > 0.
In OracleLib.sol, staleCheckLatestRoundData()
function fetches the asset price from a Chainlink aggregator using the latestRoundData function. This library is used to check the Chainlink Oracle for stale data. There is a check for if the returned data isn't older than 3 hours. But it is missing additional validations to ensure that if the returned price > 0.
Stale prices could put funds at risk.
Modify the staleCheck function to add a check for answer > 0 as shown below:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.