The ChainlinkOracle::_getData() implements the Chainlink price feed data without adequate validation. Though the function in question makes sure that the data value is greater than 0, however it does not check other key parameters such as, roundId and timestamp to assess accuracy and truthfulness of the oracle data.
Because of the missing validation, the ChainlinkOracle::_getData() can be seen receiving fusty data from the oracle. This can interfere directly with the protocol’s basic features which depend on an accurate and current price for its proper functioning. The absence of validation leads to a protocol that may develop its logic and make decisions based on worthless or old information, which can cause anomalous behavior and financial discrepancies and disruption of vital processes.
Manual Review
implement the `ChainlinkOracle::_getData()` that properly validate staleness of the data
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.