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

Password can be read by anyone

Summary

Regular users can read the password of the blockchain by viewing storage slots

Vulnerability Details

address private s_owner;
string private s_password;

const contents = await web3.eth.getStorageAt(contractAddress, storageSlotNumber)

Impact

sensitive data is not secure and will be known by everyone(data breach)

Tools Used

manual audit

Recommendations

Dont store sensitive data on the blockchain

Updates

Lead Judging Commences

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.