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

The password set by PasswordStore::setPassword() can be viewed by anyone.

Summary

When a txn. is made on blockchain, it can be viewed by anyone, so anyone can see the password from the argument of the function call.

Vulnerability Details

Anyone can see the user's set password

Impact

Other people can exploit the user by getting access to user's accounts.

Tools Used

Manual Review

Recommendations

To encrypt the password with the user's public key, so that only the user can decrypt it with their private key.

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-anyone-can-read-storage

Private functions and state variables are only visible for the contract they are defined in and not in derived contracts. In this case private doesn't mean secret/confidential

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.