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

Password is viewable on-chain

Summary

Contract logic is broken, states that password is not viewable by anyone else because it is private.

Vulnerability Details

Password state is marked private assuming that it meant it's not viewable on-chain, however anyone can view contract storage and see the user's password.

Impact

Anyone can view the "secret" password, invalidating the contract logic.

Tools Used

Manual review

Recommendations

Don't store sensitive data on-chain. All data is viewable on-chain.

Updates

Lead Judging Commences

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