In Adminable.sol
The transferAdmin
function is used to set a new admin address. It accepts an address of new admin and sets it to the admin variable. However making such an important change in a single step can be error-prone such as the new admin could be set to an incorrect or an unintended address which cannot be changed or if the new admin loses access to their address they cannot perform admin actions
see summary
If the admin address is incorrectly set to an unintended address that address would have unintended access to admin privileges/functions or the admin could lose the admin privileges if they lose access to their address
Manual Review
Implement a two-step admin transfer process, wherein the current admin first proposes a new admin and the new admin then accepts it.
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.