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

Lack of Access Control Validation

Summary

Anyone can call setPassword() to set a new password, even if they are not the owner.

Vulnerability Details

Only the owner should be able to call setPassword() to modify the password.

Impact

This directly affects the purpose of the contract, since this is a password manager type contract. Therefore, the integrity of the contract is greatly compromised.

Tools Used

Manual review

Recommendations

Consider using OpenZeppelin Ownable smart contract (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol) to restrict access to the function.

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.