Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Only owner error

Summary

Anybody can set the password.

Vulnerability Details

The 'setPassword' function can be called anyone because it is not checking whether the 'msg.sender' is owner or not.

Impact

Non-owner can set or change the password.

Tools Used

Git, Foundry

Recommendations

You have to check whether the 'msg.sender' is owner or not in the 'setPassword' function.

Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-lacking-access-control

Anyone can call `setPassword` and set a new password contrary to the intended purpose.

Support

FAQs

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