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

Password Could be set by Anyone

Summary

There is no check through modifier or require statement to ensure that password is set by owner only. Thus anyone can set the password here.

Vulnerability Details

Impact

This could lead to setting of password by anyone and owner would not have the required access

Tools Used

Foundry

Recommendations

Write modifier for onlyOwner and implement it in both functions.

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.