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

Password can be accessed on blockchain

Summary

Password can be accessed by anyone because it is stored on the blockchain.

Vulnerability Details

Even though the password variable has been made private, the password will still be stored on the blockchain and can therefore be accessed by decoding the bytecode.

Impact

People other than owner know what the password is and can use that to maliciously attack the protocol.

Tools Used

Manual Review

Recommendations

DOn't store sensitive data on the blockchain.

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.