MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Valid

Incorrect contract upgrade setup

Summary

The function _authorizeUpgrade lacks the checks to verify that it is only called by the owner.

Vulnerability Details

function _authorizeUpgrade(address) internal view override {}

The _authorizeUpgrade should be only called by the owner so that only the owner can upgrade the contract but it lacks any such checks .

Impact

Anyone can upgrade the contract.

Tools Used

VS code

Recommendations

- function _authorizeUpgrade(address) internal view override {}
+ function _authorizeUpgrade(address) internal view override onlyOwner {}
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

_authorizeUpgrade(address) lacks access control in mock contracts

Support

FAQs

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