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

Sensitive data isnt Private onchain

Summary

Sensitive data isnt safe / private on-chain.

Vulnerability Details

Data can be extracted via ethers.js rpc method getstorageAt(). This returns the hex value which is then converted to ASCII. password retrieved.

Impact

Anyone can extract the password. This is a sensitive data and shouldn't be stored on-chain.

Tools Used

Manual Review

Recommendations

Sensitive data shouldn't be stored on-chain. If it must be stored, then consider hashing off-chain and storing the hash.

Updates

Lead Judging Commences

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.