Price can be stale and can lead to wrong exchangeRate between asset and collateral
Proof of Concept
Oracle data feed is insufficiently validated. There is no check for stale price and round completeness.
Price can be stale and can lead to wrong exchangeRate between asset and collateral
Lines of code
https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPairCore.sol#L523-L537
Vulnerability details
Impact
Price can be stale and can lead to wrong
exchangeRate
between asset and collateralProof of Concept
Oracle data feed is insufficiently validated. There is no check for stale price and round completeness. Price can be stale and can lead to wrong
exchangeRate
between asset and collateralRecommended Mitigation Steps
Validate data feed