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

setPassword function allows anyone to change your password

Summary

setPassword doesn't check if the caller of the function is the owner, which means that anyone can change the current password.

Vulnerability Details

Impact

Loss of access to a given account/accounts which the password unlocks.

Tools Used

manual review

Recommendations

Put an 'if' statement that checks if the caller of the function is the owner, and revert if not, before setting the new password.

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.