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

Password publicly visible on-chain

Summary

Password is exposed on-chain

Vulnerability Details

Although declaring a variable as private stops it from being read by other smart contracts, one can still obtain the value by looking at the contract's storage on chain. The password will be stored in

Impact

The password of the owner will be visible on chain, so the owner is effectively compromised.

Tools Used

Manual Review

Recommendations

Private data should not be saved on a public blockchain. If having the password on-chain is so important to the contract's owner, they should store it in an encrypted form and make sure that only the owner can decrypt it.

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.