In both bridge contracts there is a missing zero address check in the constructor for the input parameter diamondAddr
, which could allow immutable diamond
to be mistakenly set to 0 address.
All of the functions which alter state in these two contracts are locked by a modifier which only allows modification by the diamondAddr
. These functions would be unusable if zero address is passed in the constructor to set the diamond
variable.
Manual Code Review
Add zero address check to the constructor for both contracts; BridgeReth.sol & BrdigeSteth.sol, before setting diamond
to the passed in parameter diamondAddr
.
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.