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

Access control mechanism

Summary

Add access control reinforcements to prevent anyone but the contract's owner to update the password.

Vulnerability Details

Function setPassword has no access control mechanism. Anyone can change the password.

Impact

The owner's password can be altered at anytime.

Tools Used

Hardhat

Recommendations

Add a require statement to prevent anyone but the contract's owner to change 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.