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

`PasswordStore : setPassword` has no access control

Summary

Anyone can set a new password by calling PaswordStore.setPassword(string). Thigh is a high severe bug of lacking access control.

Vulnerability Details

PaswordStore.setPassword(string) on line26 has no access control, so any one can set a new password by providing the string as parameter.

Impact

High/Severe

Tools Used

Foundry

Recommendations

consider adding access control by using onlyOwner modifier of openzeppelin's Ownable contract.

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.