Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Owner can renounce ownership

Summary

Ownable.sol contract from openzeppelin brings about the possibility for the owner to renounce ownership.

Vulnerability Details

contract Credibility is ERC20, Ownable {

In smart contracts, the renounceOwnership() function is used to renounce ownership, which means that if the contract's ownership has never been transferred, it will never have an Owner.

Impact

This renders some owner-exclusive functionality unavailable.

Tools Used

Manual Review
VS code

Recommendations

I recommend that to prevent the owner from calling renounce Ownership without first transferring ownership to a different address. Additionally, if you decide to use a multi- signature wallet, then the execution of the renounce Ownership will require for at least two or more users to be confirmed. Alternatively, you can disable Renounce Ownership functionality by overriding it.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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