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

Anyone can set the password, onlyOwner check missing from setPassword function

Summary

As mentioned in the comments, ideal behaviour for setPassword function should be that only owner of contract should be able to set the password, but in this contract, anyone can call setPassword function.

Vulnerability Details

onlyOwner check missing from setPassword function.

Impact

Anyone will be able to change the password.

Tools Used

Manual

Recommendations

Create an onlyOwner modifier and add that in setPassword function.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year 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.