Mystery Box

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

Missing access control on changeOwner

Summary

Anyone can become owner by simply calling changeOwner due to missing access control.

Vulnerability Details

Anyone can become owner and then withdraw all funds.

Impact

Loss of funds for the contract.

Tools Used

Foundry

Recommendations

Require that only the owner can call changeOwner and even in that case, a 2 step ownership transfer process should be implemented where the new owner has to accept their new position as owner to ensure that the new owner is an active account.

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!