Core Contracts

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

Zero Address Oracle Misconfiguration

Summary

The setOracle function does not validate the provided oracle address is nonzero. This vulnerability disables the price update functionality by allowing the owner to set the oracle to the zero address.

Vulnerability Details

The setOracle function assigns the provided address to the oracle variable without checking that it is not 0x0. When the oracle is set to the zero address, the onlyOracle modifier in functions like setHousePrice always fails because no valid account equals 0x0. As a result, price updates are permanently blocked, violating the security guarantee that continuous, accurate price data is maintained.

Impact

Even if it’s not an immediate exploitable issue, it can lead to accidental or intentional disabling of critical functionality

Tools Used

Manual Review

Recommendations

Implement a validation check within the setOracle function to ensure the provided oracle address is not the zero address.

function setOracle(address _oracle) external onlyOwner {
require(_oracle != address(0), "RAACHousePrices: oracle cannot be the zero address");
oracle = _oracle;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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