The function setETHUSDOracle() does not check if the address of the oracle is the zero address or not before setting a new oracle.
The function setETHUSDOracle is used to set a new Oracle by the admin for the ETH/USD. But the new Oracle address is not validated against the zero address. This can lead to setting address zero as the Oracle, which means that there will be no Oracle for the pair.
Can lead to not setting any Oracle for the ETH/USD. This can halt protocol operations when querying the oracle for price. Submitted as low because the likelihood is low and funds may not be lost.
Manual Review
Add check to ensure that new address assed in parameter is not the zero address
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.