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

Not so private 'Private Variable'

Summary

Password stored on the smart contract can be read by anyone.

Vulnerability Details

Private Variables stored on a public blockchain smart contract can be accessed using storage slots.

Impact

The application fails to securely store the password of users. Anyone can access stored password.

Tools Used

Ethersjs

Recommendations

Use off-chain cryptic hashing algorithms on sensitive data before storing it 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.