20,000 USDC
View results
Submission Details
Severity: gas

Operations such as the changing of the owner should be behind a timelock

Summary

From the point of view of a user, the changing of the owner of a contract is a high risk operation that may have outcomes ranging from an attacker gaining control over the protocol, to the function no longer functioning due to a typo in the destination address. To give users plenty of warning so that they can validate any ownership changes, changes of ownership should be behind a timelock.

Impact

File: utils/Ownable.sol
19: function transferOwnership(address _owner) public virtual onlyOwner {

Support

FAQs

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