Mystery Box

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

Missing access control

Summary

Anybody can have admin access

Vulnerability Details

a user can get the admin access just by calling changeOwner function

Impact

user after getting admin access can withdraw all the funds

Tools Used

Manual

Recommendations

function changeOwner(address _newOwner) public {
+ require(msg.sender == owner);
owner = _newOwner;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge
11 months ago

Appeal created

inallhonesty Lead Judge 11 months 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.