TransferAdmin()
function of Adminable.sol
uses single step ownership transfer which is not optimal.
Here is the implementation of TransferAdmin()
function:
This function directly sets admin
to newAdmin
. This is a very risky approach as admin can set incorrect address or the address set can be zero address.
All the onlyAdmin()
function can be locked.
Manual Analysis
Implement a two step mechanism in which newOwner
accepts the ownership with acceptOwnership()
function.
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.