Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

[EVMN] Everyone Can Become Owner

Summary

An arbitrary user can escalate their role as the contract owner that has a complete control over the contract.

Vulnerability Details

Function changeOwner() allows everyone to change the owner address. This allows the new owner to execute damaging actions to the contract, such as draining assets. This is because the function changeOwner() does not have any access control to limit the function access to a certain party (most likely the current owner).

Impact

A user takes over the contract ownership and drains the contract's assets.

Tools Used

Manual review.

Recommendations

Consider adding an access control to limit the access to the function.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 1 year ago

Appeal created

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

Anyone can change owner

Support

FAQs

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

Give us feedback!