The LendingPool::getNFTPricefunction query the NFT price and the time of the last update from the RAACHousePrice::tokenToHousePricethrough the getLatestPrice function. However, it doesn't check for staleness.
The RAACHousePrice::getLatestPrice function returns the price and the lastUpdateTimestampbut the LendingPool::getNFTPrice only checks if the price is zero, which means if the price hasn't been updated for a long time, the function will always return an outdated price.
Users can borrow against outdated prices or even take advantage of outdated prices to avoid liquidations.
Code Review
Define a threshold and check against it to avoid stale prices.
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.