The onlyAdmin modifier restricts certain functions to the admin account. However, if the admin address is accidentally set to an unusable address, such as address(0), or if the admin’s private key is lost, all onlyAdmin functions will become permanently inaccessible.
Without a fallback or recovery mechanism, the contract could be rendered unusable if the admin account is lost or compromised, potentially locking out essential functions. This could lead to a complete loss of functionality in critical cases.
Manual analysis
Consider implementing a secondary mechanism, such as an emergency reset or a multi-admin model, allowing contract recovery if the admin role is compromised or lost.
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.