When LendingPool
gets the current price of an NFT from the oracle it does not checks price for staleness.
LendingPool::getNFTPrice
calls priceOracle.getLatestPrice
that returns price
and lastUpdateTimestamp
(link), but timestamp is unused.
Price oracle can return stale NFT price and LendingPool
will allow to withdraw NFT and user will be under collateralized (link)
Manual code review
Check returned by oracle last price update timestamp for staleness
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.