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

Lack of access control allows anyone to set password

Summary

The setPassword() function is permissionless and can be called by anyone

Vulnerability Details

The password that should only be updatable by the owner can be updated by anyone

Impact

The fundamental logic of the contract breaks since anyone can change the password

Tools Used

Manual review

Recommendations

Add access control to setPassword(). It can be as simple as a onlyOwner modifier.

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.