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

Blank Password

Summary

We are not checking if the password has a minimum length.
This is crucial to prevent blank or weak passwords.

Vulnerability Details

Inside the 'setPassword' function there is no check implemented to verify that the password is not a blank one.
So someone could accidentally set a blank password which would result in a potential critical exploit.

Impact

Very High impact as this is critical to a secure system.
Without a password this contract can and will be exploited sooner or later.

Tools Used

Vs Code
Foundry

Recommendations

Implement a check to verify the password has a minimum length of 8 characters for example.
This way a user can not set a blank password and be vulnerable to a hack/exploit.

Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Admin Input/call validation

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.