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

Anyone can see the password by the `Etherscan or other block explorer (like polygonscan)`

Summary

  • Anyone can see the password by the Etherscan or other block explorer (like polygonscan) transaction history. This is link of transaction

Vulnerability Details

  • Go to this link and follow the steps below.

  1. Click on the + Click to show More.

  2. Go to Input Data section.

  3. Click on the Decode Input Data button.

  • here you can see the password and you are not owner .

Impact

  • Anyone can see the password without interacting with the contract.

Tools Used

  • foundry

  • etherscan

Recommendations

  • we can take encrypted password as the parameter of the setpassword function which can only decrypted by the owner private key.

Updates

Lead Judging Commences

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