Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: medium
Valid

LendingPool can use stale NFT price from the oracle

Summary

When LendingPool gets the current price of an NFT from the oracle it does not checks price for staleness.

Vulnerability Details

LendingPool::getNFTPrice calls priceOracle.getLatestPrice that returns price and lastUpdateTimestamp (link), but timestamp is unused.

Impact

Price oracle can return stale NFT price and LendingPool will allow to withdraw NFT and user will be under collateralized (link)

Tools Used

Manual code review

Recommendations

Check returned by oracle last price update timestamp for staleness

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool::getNFTPrice or getPrimeRate doesn't validate timestamp staleness despite claiming to, allowing users to exploit outdated collateral values during price drops

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool::getNFTPrice or getPrimeRate doesn't validate timestamp staleness despite claiming to, allowing users to exploit outdated collateral values during price drops

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.