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

Storage is view-able

Summary

Although the variable is marked private anyone could view it on the chain. On top of that they would also be able to view the TX that submitted it

Vulnerability Details

Anyone can read the storage of this contract using foundry, on top of that they would also see the TX that submitted the string.

Impact

Anyone can access the password.

Tools Used

Manual review

Recommendations

This code is useless as nothing is private on the chain, and nothing should be kept with the assumption that it can be private.

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.