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

Password is not secured

Summary

The password was saved as a state variable and making it easy for attacks.

Vulnerability Details

This vulnerability was founed on line 14. the password was stored in the blockchain which therefore makes it public to anyone and can easily be altered by anyone.

Impact

since the contract was written in solidity it is easier using decompiler to view the contract, so the private variables can be viewed too.

Tools Used

Foundry

Recommendations

using cryptographic techniques such as storing the keccak hash of the password and then covert it using abi.encode.
this way it is safely protected.

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.