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

anyone can change the password

Summary

anyone can change the password

Vulnerability Details

Everyone can use the setPassword function because doesnt have modifier onlyOwner or doesnt have this check: if (msg.sender != s_owner) {
revert PasswordStore__NotOwner();
}

Impact

anyone can change the password

Tools Used

manual

Recommendations

use onlyOwner modifier from OZ or use this check if (msg.sender != s_owner) {
revert PasswordStore__NotOwner();
}

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 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.