Plan Do Check

Sensible Approaches to Passwords

Authentication and Password Strength Guidelines

Authentication Solution and Sensitive Accounts

Proper Password Strength Controls

A critical aspect of authentication is password strength. A strong password policy is essential to protect against unauthorized access. The following characteristics define a strong password:

These guidelines aim to enhance authentication security and establish robust password strength controls. pwnd

Long Password DOS

Authentication and Error Messages

Incorrectly implemented error messages in the case of authentication functionality can be used for the purposes of user ID and password enumeration. An application should respond (both HTTP and HTML) in a generic manner.

Authentication Responses

Using any of the authentication mechanisms (login, password reset or password recovery), an application must respond with a generic error message regardless of whether:

The user ID or password was incorrect. The account does not exist. The account is locked or disabled.

INCORRECT AND CORRECT RESPONSE EXAMPLES

Login

Incorrect response examples:

“Login for User foo: invalid password.” “Login failed, invalid user ID.” “Login failed; account disabled.” “Login failed; this user is not active.”

Correct response example:

“Login failed; Invalid user ID or password.” Password recovery¶

Incorrect response examples:

“We just sent you a password reset link.” “This email address doesn’t exist in our database.”

Correct response example:

“If that email address is in our database, we will send you an email to reset your password.”

Account creation

Incorrect response examples:

“This user ID is already in use.” “Welcome! You have signed up successfully.” Correct response example:

“A link to activate your account has been emailed to the address provided.”

Tags: