The MultiHopOracle contract's constructor lacks essential validation for oracle addresses, permitting the initialization of the contract with zero addresses.
Here's the current vulnerable implementation:
The constructor blindly accepts and stores oracle configurations without verifying the validity of oracle addresses. When _getData() attempts to interact with these addresses, calls to a zero address will revert:
Price queries will fail when encountering zero addresses.
Manual review
Include zero-address check:
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.