QA Report #101
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Oracle returns Chainlink latestRoundData without proper validation
Lines of code
https://github.com/code-423n4/2022-06-connext/blob/main/contracts/contracts/core/connext/helpers/ConnextPriceOracle.sol#L122
Vulnerability details
Impact
Oracle returns Chainlink latestRoundData without proper validation.
Issue
In getPriceFromChainlink function at ConnextPriceOracle.sol#L122, there is no check to see if returned price of aggregator.latestRoundData() is not stale. More details at https://docs.chain.link/docs/faq/#how-can-i-check-if-the-answer-to-a-round-is-being-carried-over-from-a-previous-round
Recommended Mitigation Steps
Modify the function as below:
The text was updated successfully, but these errors were encountered: