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

Password is not truly private

Summary

private variables in Solidity does not provide actual privacy

Vulnerability Details

address private s_owner;
variables are assigned to storage. In this case it can be read by reading storage slot 0

Impact

This is a high risk finding because it completely violates the privacy intention of the contract.

Tools Used

manual analysis

Recommendations

  • don't store sensitive information onchain

  • encrypt variables that are stored

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.