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

s_password can be set by anyone

Summary

s_password can be set by anyone via setPassword().

Vulnerability Details

setPassword() is accessible by anyone. Anyone can change the value of s_password.

Impact

Off-chain code or external contracts that rely on s_password being set only by one entity/role are vulnerable to this. This could result in fund loss or protocol being bricked.

Tools Used

Manual review.

Recommendations

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.