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.
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.
Even if it’s not an immediate exploitable issue, it can lead to accidental or intentional disabling of critical functionality
Manual Review
Implement a validation check within the setOracle function to ensure the provided oracle address is not the zero address.
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.