Description
Set the ASP.NET Core Identity minimum password length for the authentication method. A length check alone can still accept common or compromised passwords.
Potential impact
An easily guessed or reused password can give someone access to the account and its privileges.
Remediation
NIST SP 800-63B-4 requires at least 15 characters for password-only authentication. It permits a minimum of eight when the password is used only as part of MFA. Block common and compromised passwords and avoid mandatory character mixtures.
Examples
Before
csharp
options.Password.RequiredLength = 6;
After
csharp
options.Password.RequiredLength = 12;
The example raises RequiredLength from 6 to 12. This falls below the single-factor minimum and does not configure MFA or compromised-password blocking.