Core Contracts

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

Misleading Timestamp in Price Fetch

Summary

getLatestPrice returns a global timestamp, misleading users about individual token price updates.

Vulnerability Details

This will return the wrong and outdated price for all the houses tokens except for one since lastUpdatedTimestamp updates globally when only one house price is changed.

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/primitives/RAACHousePrices.sol#L34-L38

function getLatestPrice(
uint256 _tokenId
) external view returns (uint256, uint256) {
return (tokenToHousePrice[_tokenId], lastUpdateTimestamp);
}

Impact

The user might think the price of that token id was updated correctly but another token was updated instead and the timestamp shows all items's price were updated.

Tools Used

manual

Recommendations

create and return the correct mapping for each token price and when each one was updated correctly.

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 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 3 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.