The Ownable
contract implements a single-step ownership change process, which can lead to loss of access.
The Ownable
contract implements a single-step ownership change process, where ownership is transferred to a new address via transferOwnership
:
This is against best practices, as accidently passing the wrong address as _owner
causes permanent loss of access to the onlyOwner
methods.
None
Implement a two-step ownership change process, where a new owner is first proposed, which then needs to accept the ownership from the new address. An implementation is available as Ownable2Step
from OpenZeppelin.
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.