Diamond:constructor
is missing validation for the param _contractOwner
, it can lead to several issues. Like owner can be set to 0 address which will revoke full admin access from owner. Also it can be set to a contract address which could be malicious too.
See the following code:
If zero address is set as contract owner it can disrupt the whole protocol functionality. All the owner functions wouldn't be accessible.
Manuall Review
Do proper validation of _contractOwner
in Diamond:constructor
, ensure that the owner is non-zero address.
Invalid as per docs https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.