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

Incorrect access control allows anyone to update the password

Summary

Set password function not restricted to the owner.

Vulnerability Details

The contracts purpose is to store the password set by the owner, however, as setPassword() is an external function - anyone can update the password.

Impact

The password originally saved can be overwritten and lost.

Tools Used

Manual review.

Recommendations

Revert if function not called by owner.

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.