MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Lack of two-step process for contract ownership changes

Summary

Ownable lets you:

transferOwnership from the owner's account to a new one.
renounceOwnership for the owner to relinquish this administrative privilege, a typical pattern after an initial stage with centralized administration is over.
If the wrong address is written while transferring the ownership, the whole protocol will be destroyed.

Vulnerability Details

Ownable2Step and Ownable2StepUpgradeable prevent the contract ownership from mistakenly being transferred to an address that cannot handle it (e.g. due to a typo in the address), by requiring that the recipient of the owner permissions actively accept via a contract call of its own.

Impact

Charlie, a Composable Finance developer, invokes transferOwnership() to change the address of an existing contract’s owner but accidentally enters the wrong address. As a result, he permanently loses access to the contract

Tools Used

Manual Review

Recommendations

Consider using Ownable2Step instead of Ownable

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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