Core Contracts

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

`setHousePrice` in RAACHousePrices contract is callable by the oracle instead of the owner, `updatePriceFromOracle` function is not implemented and manual update of the price for a token by the owner is not available.

Summary

The RAAC protocol documentation specifies that:

  • updatePriceFromOracle function should be callable the oracle in order to update the price of a token.

  • setHousePrice should be callable the owner to manually set the price of a house

The problem arises because the code behaves differently:

  • no updatePriceFromOracle function

  • setHousePrice function only callable by the oracle

  • No ability of the owner to manually set the price of a house

Note that the documentation also specifies that the Owner role is "for setting the oracle address and manual price updates".

Vulnerability Details

The issue lies in the fact that the implementation doesn't follow specification (updatePriceFromOracle for oracle price update, setHousePrice for owner price update).

Impact

The impact is low, as it is only a discrepancy between specification and implementation.

Tools Used

Manual review.

Recommendations

Update the documentation to remove the updatePriceFromOracle function and remove information that the owner can manually update the price of a token (if this is not a desired behaviour).

Updates

Lead Judging Commences

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