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

getPassword owner check can be spoofed

Summary

getPassword is owner checked but msg.sender can be spoofed on call functions

Vulnerability Details

call functions are not signed so anyone can imitate msg.sender as the owner of the contract and get the password

Impact

password is visible to everyone and can be stolen

Recommendations

password needs to be encrypted and then stored on chain

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.