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

Anyone can set the password

Summary

The setPassword function allows anyone to set the password.

Vulnerability Details

Anyone can set the password, thus wiping out the password the owner had set, and the original password will be lost.

Impact

High Risk

Tools Used

forge test

Recommendations

add a check to the top of the function to revert if the msg.sender is not the owner.

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.