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

Password can be retrieved off chain

Summary

s_password although a private variable can be read off chain using .getStorageAt

Vulnerability Details

Password can be retrieved by anyone. Storing private and credential on chain is not recommended as it can be read offchain, private variable only help in on chain restriction of reading of data but not off chain

Impact

Password can be retrieved by anyone

Tools Used

Recommendations

Don't store password on chain

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.