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

Store the password in the blockchain, even as a private variable, can be read

Summary

The password of the owner is visible to everyone.

Vulnerability Details

Storing a plaintext password on a blockchain is dangerous because everything on the blockchain is visible to everyone who can read the blockchain's state.
Because of this, the contract is useless.

Impact

the password can be easily stolen

Tools Used

Manual Review

Recommendations

Put the paswords in a .env file and then import them.

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-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.