Location: ChainlinkOracle.sol (lines 37-38)
The contract only checks if the returned price is greater than zero, but
doesn't validate other important aspects of the Chainlink response such as roundID
and answeredInRound.
Location: ChainlinkOracle.sol (lines 37-38)
The contract only checks if the returned price is greater than zero, but
doesn't validate other important aspects of the Chainlink response such as roundID
and answeredInRound.
Code Snippet:
Silent failures leading to broken contract state or lost funds.
Add comprehensive validation:
Check if roundID is greater than 0
Verify answeredInRound >= roundID
Implement timestamp freshness check
Add maximum staleness threshold
LightChaser: ## [Medium-4] Insufficient oracle validation
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.