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

Nothing is private on blockchain

Summary

Everything on the blockchain is public, if you don't want the world to see it, don't put it on the chain.

Vulnerability Details

The contract stores the password, a sensitive piece of data that should never be stored on the chain. And if you have to, encrypt it off-chain and store the encrypted version.

Impact

This is a high-risk issue that can lead to the transfer of ownership, the theft of tokens, and much more.

Tools Used

Recommendations

  • Avoid putting sensitive data on the chain whenever possible.

  • Use a good encryption algorithm to protect your sensitive data.

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.