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

setPassword function can be called by anyone

Summary

setPassword function can be called by anyone therefore anyone can change the password to a new string

Vulnerability Details

The setPassword function lacks access control to verify if the owner is msg.sender, therefore anyone can access the function.

Impact

Anyone can change password.

Tools Used

Manual review

Recommendations

Add onlyOwner modifier to function or add if statement that reverts if msg.sender is not owner.

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.