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

Lack of access controls on setPassword()

Summary

setPassword() does not check that msg.sender is owner, allowing anyone to change the password.

Vulnerability Details

setPassword() does not check that msg.sender is owner, allowing anyone to change the password.

Impact

Original owner will lose control of the contract if the password is changed by someone else.

Tools Used

Hardhat

Recommendations

Check if msg.sender is owner before allowing the function to be called

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.