Anshul439 / Blogverse

A MERN stack Blog App
https://blogverse-l4af.onrender.com
17 stars 23 forks source link

Inadequate Password Length Restrictions #20

Closed mohit-1710 closed 1 month ago

mohit-1710 commented 1 month ago

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:

Screenshot from 2024-10-04 13-14-34

Steps to Reproduce

  1. Go to the signup or login page.
  2. Enter a password with only 1 or 2 characters.
  3. Submit the form.
  4. 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

Additional Context

This issue severely impacts the security of the application by allowing users to create weak passwords, potentially leading to data breaches.

mohit-1710 commented 1 month ago

@Anshul439 I would be happy to work on this issue.

namansharma3007 commented 1 month ago

@Anshul439 Please assign this issue to me. I have worked passwords.

Anshul439 commented 1 month ago

@Anshul439 I would be happy to work on this issue.

Go ahead.