The mint
function in the RAACNFT
contract does not check for outdated prices when fetching the house price from the oracle. If the oracle fails to update prices for a prolonged period, users may exploit outdated valuations, leading to financial imbalances in the protocol.
The function fetches the house price from raac_hp.tokenToHousePrice(_tokenId)
.
There is no validation to check whether the price is recent or outdated.
If the oracle stops updating prices, the contract may use stale values.
This could allow users to mint NFTs at inaccurate or lower prices, resulting in financial loss for the protocol.
Users could mint NFTs at outdated (potentially lower) prices, leading to underpriced asset allocation.
The protocol may suffer economic losses if assets are valued incorrectly.
Potential manipulation risks where attackers could exploit stale prices to gain undervalued NFTs.
Manual code review
Static analysis of mint
function
Implement a timestamp check to ensure price data is recent:
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.