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

Missing owner check in setPassword function

Summary

Anyone can set a new password because of missing owner check in setPassword function.

Vulnerability Details

There is no owner check in setPassword function.

Impact

Contract core functionality is broken. Anyone can override owner's password.

Tools Used

Manual review.

Recommendations

Insert an owner check in setPassword function.

if (msg.sender != s_owner) {
revert PasswordStore__NotOwner();
}
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.