All Projects

ID Status Summary Opened by
 570 Closed Password Policy Bypass via Password Reset Functionality shabiz Task Description

Affected URL

https://security.alwaysdata.com/lostpw

Description

The password reset functionality on security.alwaysdata.com fails to enforce the application’s minimum password length requirement. During testing, I observed that the registration functionality rejects passwords shorter than 5 characters. However, the same restriction is not enforced during password recovery. By requesting a password reset link and accessing it through the registered email address, I was able to set a password containing only 2–3 characters (e.g., 123), which the server accepted successfully. This allows users to bypass the application’s defined password policy through the password reset functionality.

Steps to Reproduce

1: Navigate to the registration page and attempt to register using a password shorter than 5 characters.

2: Observe that the application rejects the password due to the minimum length requirement.

3: Navigate to https://security.alwaysdata.com/lostpw.

4: Request a password reset link using a registered email address.

5: Open the password reset link received in the email.

6: Enter a password containing only 2–3 characters (e.g., 123).

7: Submit the password reset form.

8: Observe that the server accepts the password and successfully updates the account credentials despite violating the application’s minimum password length requirement.

Impact

The inconsistent enforcement of password requirements allows users to set extremely short and easily guessable passwords through the password reset functionality. This weakens account security and increases susceptibility to password guessing, particularly for accounts without additional authentication protections.

Remediation

Enforce password policy requirements consistently across registration, password reset, and password change functionalities. Implement server-side validation to reject passwords that do not meet the application’s minimum length requirement, regardless of the method used to set or update the password. Ensure that validation is performed by the backend rather than relying solely on client-side checks, preventing users from bypassing password restrictions through alternative account recovery mechanisms.

Showing tasks 1 - 1 of 1 Page 1 of 1

Available keyboard shortcuts

Tasklist

Task Details

Task Editing