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

Open Access to setPassword

Summary

No use of access control while calling setPassword function.

Vulnerability Details

The function has no restrictions to setPassword which results in anyone calling it and changing the password.

Impact

The original password can be lost if a bad actor calls the setPassword function with arbitrary arguements.

Recommendations

Use the same restrictions as used in getPassword i.e., restrict access to the owner of 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.