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

Password can be changed by everyone

Summary

setPassword function lacks access restrictions, allowing unauthorized changes.

Vulnerability Details

Despite documentation indicating owner-only access, setPassword can be called by any Ethereum address.

Impact

Unrestricted ability for any user to modify the stored password.

Tools Used

Manual Review

Recommendations

Implement a require check for msg.sender to match the contract's owner.

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.