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

Variables defined in 'private' are public

Summary

Even variables defined as private can be seen by anyone.

Vulnerability Details

private is only declared to restrict access, and variables stored on the smart contract can be seen by anyone. Important information such as passwords should not be stored as variables.

Impact

Password is stolen.

Tools Used

manual

Recommendations

Do not save passwords.

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.