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

Everyone can see the first password setted by the owner.

Summary

Password setted by the owner is visibile by everyone.

Vulnerability Details

Everyone watching the contract on Etherscan can see the owner passed myPassword as a parameter when calling
passwordStore.setPassword("myPassword").

Impact

Everyone can see onchain the password added by the owner.

Tools Used

Etherscan

Recommendations

Do not store passwords on smart contracts.

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.