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

Anyone can set a new password.

Summary

Anyone can set a new password using the function setPassword(...).

Vulnerability Details

The function setPassword(...) is not protected by any modifier or require statement which allows only the s_owner to set the s_password parameter.

Impact

Anyone can overwrite the password variable.

Tools Used

Manual review is done.

Recommendations

Using a modifier to the function setPassword(...) or having a require which only allows the owner to set the password.

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.