Every contract is using ownable.sol
an old version which if provided wrong may potentially loss the funds
Inheriting from OpenZeppelin's Ownable
contract means you are using a single-step ownership transfer pattern. If an admin provides an incorrect address for the new owner, this will result in none of the onlyOwner
marked methods being callable again. The better way to do this is to use a two-step ownership transfer approach, where the new owner should first claim its new rights before they are transferred.
If an incorrect address is mistakenly set as the new owner in contracts, all onlyOwner
functions will become permanently inaccessible. This could result in the loss of administrative control, potentially locking funds, disabling key contract functionality, or preventing critical upgrades.
import "@openzeppelin/contracts/access/Ownable.sol";
Manual analyzed
Consider using the OpenZeppelin's Ownable2Step
instead of Ownable
Owner is trusted and is not expected to interact in ways that would compromise security
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.