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

Missing Access Control

Summary

Missing Access Control

Vulnerability Details

The function setPassword needs to be called only by the owner. Yet currently because there is no access control, anyone can call the function and change the variable s_password.

Impact

Sensitive information can be changed by anyone.

Tools Used

Manual reading.

Recommendations

Use onlyOwner modifier at the function setPassword

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.