Core Contracts

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

Stale Price Check Missing in `RAACNFT` NFT Minting

Summary

In the RAACNFT::mint() function, the price for a given _tokenId NFT is fetched from RAACHousePrices::tokenToHousePrice(), but there is no check to verify whether the price is stale. If the price is outdated and lower than the actual price, buyers may end up paying less than intended for the NFT.

Vulnerability Details

The RAACNFT::mint() function relies on RAACHousePrices::tokenToHousePrice() to retrieve the price for a given NFT _tokenId. However, it does not perform any validation to ensure the returned price is current or up-to-date. If the price is stale and lower than the actual price, the buyer can mint the NFT at a discount, which could lead to financial losses.

Impact

The absence of a stale price check can result in buyers paying less than intended for NFTs.

Tools Used

vscode

Recommendations

Implement a check to ensure the price retrieved from RAACHousePrices::tokenToHousePrice() is not stale.

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.