The changeOwner
function does not validate the _newOwner
parameter, allowing the contract owner to be set to the zero address, effectively disabling ownership.
Lack of zero-address check in changeOwner
could lead to loss of ownership:
Assigning the zero address as the owner can leave the contract without an owner, potentially preventing further ownership changes or administrative actions. This could lead to a loss of control over the contract.
Manual Review
Add a validation check to ensure the _newOwner
is not the zero address:
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.