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

H2 : The password can be read by anyone

Summary

The "Password" field can be retrieved by anyone.The following requirement is violated "Owner - Only the owner may set and retrieve their password".

Vulnerability Details

Knowing the storage layout and using web3.eth.getStorageAt, we can retrieve the password.

Impact

Anyone can read the password.

Tools Used

Manuel review.

Recommendations

Mitigate using the keccak256 operator.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 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.