Core Contracts

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

In the RAACHousePrice the setHousePrice can be used only by the onlyOracle not by the Owner as it is stated in the docs.

Summary

In the RAACHousePrice the setHousePrice can be used only by the onlyOracle not by the Owner as it is stated in the docs.

Vulnerability Details

This is from the docs:

setHousePrice
Manually sets the price for a token Owner Only _tokenId: ID of the token to update _amount: New price for the token
function setHousePrice(uint256 _tokenId, uint256 _amount) external onlyOracle {
tokenToHousePrice[_tokenId] = _amount;
lastUpdateTimestamp = block.timestamp;
emit PriceUpdated(_tokenId, _amount);
}

As we can see the setHousePrice has the onlyOracle modifier not the onlyOwner

Impact

The owner can not change the HousePrice manually

Tools Used

Recommendations

change the modifier in the setHousePrice()

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACHousePrices implementation restricts setHousePrice to oracle only despite documentation stating owner access, preventing manual price corrections during oracle failures

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACHousePrices implementation restricts setHousePrice to oracle only despite documentation stating owner access, preventing manual price corrections during oracle failures

Support

FAQs

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