20,000 USDC
View results
Submission Details
Severity: medium
Valid

Ownership can get lost

Summary

Using a single step for transfer of ownership with non even checks for 0 address can potentially lose the ownership

Vulnerability Details

function transferOwnership(address _owner) public virtual onlyOwner {
owner = _owner;
emit OwnershipTransferred(msg.sender, _owner);
}
}
```
## Impact
Losing ownership
## Tools Used
Manual
## Recommendations
Use a 2 steps transfer system as the one by OpenZeppelin [Ownable2Step](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable2Step.sol)

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.