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

Anybody can set password

Summary

Anybody can reset the password

Vulnerability Details

There is no form of security on the function, no modifier to restrict the access/calling of the function. This should be restricted to only be called by the owner alone

Impact

If the password is used for safeguarding a very sensitive pool, it can be taken over by an attacker

Tools Used

Manual review

Recommendations

use a modifier to restrict the calling of the function to only the owner of the contract/deployer

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.