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

Password Exposing

Summary

Exposing a password

Vulnerability Details

The contract has two storage variables that store the address and the password of the owner. The password is supposed to be known only by the owner. Although the variables are declared as private, they are all visible and can be accessed by anyone due to the public nature of all the data stored on a public blockchain. Private state variables are only visible for the contract they are defined in and not in derived contracts. Yet, anyone can access the slot where this variable lives and read its value.

Impact

The password can be seen by anyone.

Tools Used

Recommendations

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.