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

Private variables are still visible on the blockchain.

Summary

the s_password variable stores the password as private but private variables can still be read.

Vulnerability Details

Private variables are still visible on the blockchain, so sensitive information like 'passwords' should never be stored there

Impact

anyone can read the password set by the user, which we obviously don't want.

Tools Used

Manual Review

Recommendations

Avoid storing sensitive data in blockchain state variables. and use proper sanitization methods like hasing , encryption wherever necessary.

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

thetechnofeak Submitter
almost 2 years ago

Support

FAQs

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