LendingPool::getNFTPrice retrieves NFT prices without validating how old the price data is, potentially allowing the use of stale prices in lending decisions.
The LendingPool::getNFTPrice function retrieves prices without checking their age:
While the function retrieves the lastUpdateTimestamp, it doesn't use it to validate the freshness of the price data.
Stale prices could be used in lending calculations
Could lead to incorrect loan-to-value ratios
Financial impact through miss-priced loans
Manual code review
Control flow analysis
Add a staleness check with a configured threshold and create a new error:
Note: added lastUpdateTimestamp == 0 is extra incase it should revert if that value is 0
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.