Weak Password Policy
The application lets users choose short, common or breached passwords, which makes accounts easier to guess online or crack offline.
| Severity | Medium |
| CVSS 3.1 | 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N Open in the calculator |
| CVSS 4.0 | 8.3 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N Open in the calculator |
| CWE | CWE-521: Weak Password Requirements |
| OWASP Top 10 | A07:2025 Authentication Failures |
| MITRE ATT&CK | T1110.001 Password Guessing, T1110.003 Password Spraying, T1110.002 Password Cracking |
| Category | Security Misconfiguration |
Description
The password policy enforced by the application allows passwords that are too short or too predictable to resist guessing. Common examples are a minimum of six or eight characters for passwords that are the only authentication factor, no check against lists of common or breached passwords, and acceptance of the username, the application's name or simple sequences as the password. Some policies rely instead on composition rules (an upper-case letter, a digit and a symbol), which users satisfy with predictable patterns such as a capitalised word followed by a year and an exclamation mark, and which do little to stop guessing.
Passwords that the policy permits can be guessed online, particularly where login rate limiting is weak, and recovered quickly by offline cracking if password hashes are ever obtained. An attacker who guesses or cracks one gains the user's access to the application and its data, and may reuse the password against other services. The policy is a root cause rather than proof that weak passwords are in use, however, so the practical risk depends on how many accounts actually have weak passwords and on whether multi-factor authentication is enforced.
The policy is identified by attempting to register or change a password to a range of weak values, such as a short password, a dictionary word, a well-known breached password and the username, and recording which are accepted. Related weaknesses include a low maximum length that rules out passphrases, silent truncation of long passwords, blocking paste into password fields, which discourages password managers, and forced periodic changes, which tend to produce predictable sequences. The policy may also differ between interfaces, for example between the web sign-up form and an API or administrative function that creates accounts.
Remediation
Align the policy with NIST SP 800-63B-4 and the OWASP Authentication Cheat Sheet:
- Require at least 15 characters for passwords used as the only authentication factor, and at least 8 characters where the password is always combined with a second factor.
- Allow at least 64 characters, all printable characters, spaces and Unicode, so that passphrases can be used, and never truncate passwords silently.
- Check every new password against a blocklist of common, expected and breached values, including context-specific words such as the product and organisation names, and tell the user why a password was rejected.
- Remove composition rules and periodic expiry, and require a change only when there is evidence that a password has been compromised.
- Allow paste and password managers, and show a strength indicator to guide users.
- Apply the same policy in every function that sets a password, including registration, password change, reset, administrative account creation and APIs.
Existing passwords can be checked against the new policy when users next sign in, and users asked to change any that fail. Confirm the fix by attempting to set the weak passwords used in testing through each function and confirming that they are rejected.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.