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

Access to sensitive data

Summary

Anyone can retrieve the password set by someone

Vulnerability Details

The smart contract has an access control vulnerability. Indeed, everyone is able to retrieve the password stored by a user. Here is the proof of concept :

  1. Deploy the contract and set a password with Remix IDE

  2. Take the transaction hash and search it on etherscan

  3. We can retrieve the password on Overview -> More Details -> Input data

Impact

This smart contract application is not secure and everyone can retrieve the password

Tools Used

Manual review

Recommendations

Don't store sensitive information on the blockchain

Updates

Lead Judging Commences

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.