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

Password is visible through contract storage

Summary

Setting a variable as private does not mean it can not be found by anyone. It just does not provide the interface publicly but others can find it through blockchain storage.

Impact

Password can be discovered by others.

Recommendations

Encrypt password off chain and only keep the encrypted password on chain. User needs to remember their salt to decrypt the password.

Updates

Lead Judging Commences

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