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

Lack of Access control on set function

Summary

The setPassword() function lacks access control enabling anyone to alter the password

Vulnerability Details

Impact

Anyone can alter the Password to a wrong one. Hence when owner tries to retrieve, he gets a wrong pass

Tools Used

Manual Review

Recommendations

Add modifier onlyOwner() to function.

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.