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

password stored on a private variable is not safe

Summary

anybody can access the memory slot of string private s_password

Vulnerability Details

you shouldn't store password on a memory block in the blockchain because it's accessible to anybody

Impact

Tools Used

Recommendations

private variable are still accessible if you directly read the memory, so never store something like of password on the blockchain

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.