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

onchain password value can be read even if private

Summary

Oonchain password value can be read even if private.

Vulnerability Details

Any value stored on the blockchain can be read, even if declared as private.

Impact

Password value can be read by anyone.

Tools Used

For example with a JS script:
await web3.eth.getStorageAt(contractAddress, 1 /storageSlotNumber/);

Recommendations

Store only a hash, or an encrypted value.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
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.