Vulnerability ID: M-01
Location: In BridgeReth.sol:22
, the contract sets the diamond
variable using the value passed in the diamondAddr
parameter of the constructor. There is no check to ensure that the diamondAddr
is not the zero address.
The vulnerability poses a risk because if the zero address is accidentally passed as the diamondAddr
when the contract is deployed, it could potentially lead to unintended behavior or exploitation.
Manual Review
Recommendation: Add a check within the constructor to revert the transaction if the zero address is passed as the diamondAddr
. The recommended implementation is:
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.