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

Private can be read

Summary

Private variable can be read using web3 libraries like Ethers.

Vulnerability Details

s_password is available for anyone to be read.

Impact

Password is visible to everyone.

Tools Used

Ethers

Recommendations

Either hash the password before storing, or don't store it in the smart contract.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 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.