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

setPassword() exposes new password

Summary

The argument for setPassword is in plain string format, which would expose the new password easily to anyone looking at the transaction. Furthermore, this critical function should not be emitting an event which would alert others to the transaction.

Vulnerability Details

The argument for setPassword is in plain string format, which would expose the new password easily to anyone looking at the transaction. Furthermore, this critical function should not be emitting an event which would alert others to the transaction.

Impact

Potential loss of password and control of contract

Tools Used

Hardhat

Recommendations

New password should be encoded. Remove event SetNetPassword().

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.