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

Lack of Input Validation

Summary

setPassword function lacks password validation which can cause issue especially if there is a typo while updating the password.

Vulnerability Details

The setPassword function lacks input validation, allowing users to set the password to be the same as the old one or setting a null string as password. This could lead to unnecessary gas consumption and potential confusion for users.

Impact

Without input validation, users are able to update the password even if it remains unchanged. This can result in wasted computational resources.

Tools Used

Manual Review

Recommendations

Implement input validation to ensure that the new password is different from the existing one before updating it and it is not null.

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.