ChainLink Oracle data feed is insufficiently validated. #161
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
out of scope
Lines of code
https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed3a74290b854341d8de6afa/src/contracts/FraxlendPairCore.sol#L524
https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed3a74290b854341d8de6afa/src/contracts/FraxlendPairCore.sol#L532
Vulnerability details
Impact
Return value of AggregatorV3Interface.latestRoundData() is not properly checked. The price may be stale or the round may be incomplete.
Proof of Concept
FraxlendPairCore.sol
Same as code-423n4/2022-01-yield-findings#136.
Among all return values of
latestRoundData
, onlyanswer
is checked.Tools Used
Code review.
Recommended Mitigation Steps
Suggest code snippet is like
The text was updated successfully, but these errors were encountered: