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

The password can be changed anytime aby anyone

Summary

The external setPassword function allows any user to set the new password.

Vulnerability Details

The external setPassword function is designed to allows only the owner to set a new password as per the notices (L23).

However, this function does not apply any restriction that will restrict this function to only the owner can call.

Therefore, the setPassword function is now behalf as a external that allows everyone to call and set new password of the contract.

Impact

The password can be changed anytime aby anyone

Tools Used: manual

Recommendations:

Apply the restiction to this function to allow only the owner of the contract to call.

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.