Root Cause: The changeAdmin function lacks a check to prevent the new admin from being set to the zero address.
Impact: The contract could become irreversibly locked without an admin, preventing administrative functions from being executed.
Code Snippet:
Issue: No validation of newAdmin.
Consequence: Setting admin to address(0) could disable admin functionalities.
Add Validation for newAdmin:
Consider Emitting an Event:
Emit an event to log admin changes:
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.