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

Data Integrity Attack due to lack of Access Control

Summary

The Attacker is able to change the password without them being the owner of the contract.

Vulnerability Details

There is no Check to see if the msg.sender is the owner in the function setPassword().

Impact

A Core-functionality of the contract is violated.

Tools Used

Manual Review.

Recommendations

Put a check to see if the msg.sender is the owner of the contract before line 27 in PasswordStore.sol before assigning the new 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.