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

Access control issue on setPassword() - anybody can call

Summary

There are no access controls on setPassword().

Vulnerability Details

Anybody can call this function and overwrite what the owner already set.

Impact

High. This defeats the purpose of the contract.

Tools Used

Manual Inspection

Recommendations

Use a modifier like OZ's OnlyOwner or some other way of reverting if the caller is not the contract owner.

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.