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

03-`s_password`, even if set to `privte`, may still cause sensitive data leakage.

Summary

State variables (private) in a contract only limit their invocation scope and remain accessible on the chain. Referable study material: Ethernaut Level 12 - Privacy

Impact

The sensitive data of s_password will be accessed in the chain and will lead to sensitive data leakage!

Tools Used

Manual Review

Recommendations

Do not store any sensitive data in the contract, as any data in the contract can be accessed.

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.