Core Contracts

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

RAACHousePrices oracle uses single timestamp for all tokens

Summary

Timestamps of house prices should be updated for each token individually, but RAACHousePrices uses the same lastUpdateTimestamp storage variable for all tokens.

Vulnerability Details

RAACHousePrices.lastUpdateTimestamp is updated on every RAACHousePrices::setHousePrice call (link), so when RAACHousePrices::getLatestPrice is called for some _tokenId it returns lastUpdateTimestamp updated by some another _tokenId (link).

Impact

House price oracle can return fresh timestamp for staled price

Tools Used

Manual code review

Recommendations

Store timestamps for each token individually

Updates

Lead Judging Commences

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

RAACHousePrices uses a single global lastUpdateTimestamp for all NFTs instead of per-token tracking, causing misleading price freshness data

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

RAACHousePrices uses a single global lastUpdateTimestamp for all NFTs instead of per-token tracking, causing misleading price freshness data

Support

FAQs

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

Give us feedback!