Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Use two-step ownership transfers instead of single-step ownership transfers

Summary

Project use one step transfer ownership mechanism

Vulnerability Details

Single-step ownership transfers add the risk of setting an unwanted owner by accident (this includes
address(0)) if the ownership transfer is not done with excessive care.

In all files in scope

import "@openzeppelin/contracts/access/Ownable.sol";

Impact

If the new address is inactive or not willing to act, there is no way to restore access to that role. Therefore, the owner role can be lost.

Tools Used

Manual review

Recommendations

It is recommended to use the Ownable2Step library instead of Ownable library

Updates

Lead Judging Commences

m3dython Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Trusted Owner

Owner is trusted and is not expected to interact in ways that would compromise security

Single Stepe Owner Transfer

Support

FAQs

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