29068 - [SC - Medium] AaveOracle contract does not verify price stale...
Description
Brief/Intro
Vulnerability Details
function getAssetPrice(address asset) public view override returns (uint256) {
AggregatorInterface source = assetsSources[asset];
if (asset == BASE_CURRENCY) {
return BASE_CURRENCY_UNIT;
} else if (address(source) == address(0)) {
return _fallbackOracle.getAssetPrice(asset);
} else {
int256 price = source.latestAnswer();
if (price > 0) {
return uint256(price);
} else {
return _fallbackOracle.getAssetPrice(asset);
}
}
}Impact Details
Fix suggestion
Proof of concept
Previous29062 - [SC - Critical] Attacker can steal locked balance of staked nft...Next29069 - [SC - Medium] Ability to deny users from repaying and supplyi...
Last updated
Was this helpful?