The current password validation on both login and signup forms allows passwords of length 1 or 2. This compromises the security of the application, as short passwords are highly vulnerable to brute-force attacks.
Expected Behavior
Password length should have a minimum requirement (typically 8 characters) for both the login and signup forms.
The system should reject passwords that do not meet the required length and display an appropriate error message to the user.
Actual Behavior
The system accepts passwords of length 1 or 2 without any validation.
No error message is shown, and the user is able to proceed with the login or signup using a weak password.
Screenshot:
Steps to Reproduce
Go to the signup or login page.
Enter a password with only 1 or 2 characters.
Submit the form.
Notice that the form accepts the password without any validation error.
Possible Fix
Implement a password validation rule that enforces a minimum password length of 8 characters. Additionally, the system should notify users if their password is too short during the signup or login process.
Environment
Repository: Blogverse
Browser: Brave/Chrome
Operating System: Linux
Additional Context
This issue severely impacts the security of the application by allowing users to create weak passwords, potentially leading to data breaches.
Issue: Password Length Validation Too Short
Description
The current password validation on both login and signup forms allows passwords of length 1 or 2. This compromises the security of the application, as short passwords are highly vulnerable to brute-force attacks.
Expected Behavior
Actual Behavior
Screenshot:
Steps to Reproduce
Possible Fix
Implement a password validation rule that enforces a minimum password length of 8 characters. Additionally, the system should notify users if their password is too short during the signup or login process.
Environment
Additional Context
This issue severely impacts the security of the application by allowing users to create weak passwords, potentially leading to data breaches.