Oracle price could not be fresh in ChainlinkInceptionPriceFeed #57
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
invalid
This doesn't seem right
Lines of code
https://github.com/code-423n4/2022-04-mimo/blob/b18670f44d595483df2c0f76d1c57a7bfbfbc083/core/contracts/inception/priceFeed/ChainlinkInceptionPriceFeed.sol#L74-L78
Vulnerability details
Vulnerability
On ChainlinkInceptionPriceFeed, we are using
latestRoundData
, but there are no validations that the data is not stale.The current code is:
But is missing the checks to validate the data is stale
This could affect in all the logic, including funds.
Recommendation
Check the round and answeredInRound return.
The text was updated successfully, but these errors were encountered: