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

Private variables can be read

Summary

Private only means that other smart contracts can't read the variables(excluding constant/immutable). Anyone can read the values of each storage slot to get the password.

Vulnerability Details

Private variables can be read off chain

Impact

Anyone can see the password

Tools Used

Manual review

Recommendations

Don't store any sensitive information on chain

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.