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

Password can be read on-chain

Summary

Although s_password is set as private, there is no such thing as hidden variables on the chain. It can be read by anyone via any public explorer.

Impact

Critical, as it defeats the sole purpose of the contract

Tools Used

Manual Review

Recommendations

Don't store sensitive data on-chain in raw format.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year 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.