Cyber Posture

OWASP ASVS 5.0 · All chapters

V6 Authentication

47 verification requirement(s) in this chapter.

← V5 V7 →

V6.1 Authentication Documentation

IDVerify that…Level
V6.1.1 Verify that application documentation defines how controls such as rate limiting, anti-automation, and adaptive response, are used to defend against attacks such as credential stuffing and password brute force. The documentation must make clear how these controls are configured and prevent malicious account lockout. L1
V6.1.2 Verify that a list of context-specific words is documented in order to prevent their use in passwords. The list could include permutations of organization names, product names, system identifiers, project codenames, department or role names, and similar. L2
V6.1.3 Verify that, if the application includes multiple authentication pathways, these are all documented together with the security controls and authentication strength which must be consistently enforced across them. L2

V6.2 Password Security

IDVerify that…Level
V6.2.1 Verify that user set passwords are at least 8 characters in length although a minimum of 15 characters is strongly recommended. L1
V6.2.2 Verify that users can change their password. L1
V6.2.3 Verify that password change functionality requires the user's current and new password. L1
V6.2.4 Verify that passwords submitted during account registration or password change are checked against an available set of, at least, the top 3000 passwords which match the application's password policy, e.g. minimum length. L1
V6.2.5 Verify that passwords of any composition can be used, without rules limiting the type of characters permitted. There must be no requirement for a minimum number of upper or lower case characters, numbers, or special characters. L1
V6.2.6 Verify that password input fields use type=password to mask the entry. Applications may allow the user to temporarily view the entire masked password, or the last typed character of the password. L1
V6.2.7 Verify that "paste" functionality, browser password helpers, and external password managers are permitted. L1
V6.2.8 Verify that the application verifies the user's password exactly as received from the user, without any modifications such as truncation or case transformation. L1
V6.2.9 Verify that passwords of at least 64 characters are permitted. L2
V6.2.10 Verify that a user's password stays valid until it is discovered to be compromised or the user rotates it. The application must not require periodic credential rotation. L2
V6.2.11 Verify that the documented list of context specific words is used to prevent easy to guess passwords being created. L2
V6.2.12 Verify that passwords submitted during account registration or password changes are checked against a set of breached passwords. L2

V6.3 General Authentication Security

IDVerify that…Level
V6.3.1 Verify that controls to prevent attacks such as credential stuffing and password brute force are implemented according to the application's security documentation. L1
V6.3.2 Verify that default user accounts (e.g., "root", "admin", or "sa") are not present in the application or are disabled. L1
V6.3.3 Verify that either a multi-factor authentication mechanism or a combination of single-factor authentication mechanisms, must be used in order to access the application. For L3, one of the factors must be a hardware-based authentication mechanism which provides compromise and impersonation resistance against phishing attacks while verifying the intent to authenticate by requiring a user-initiated action (such as a button press on a FIDO hardware key or a mobile phone). Relaxing any of the considerations in this requirement requires a fully documented rationale and a comprehensive set of mitigating controls. L2
V6.3.4 Verify that, if the application includes multiple authentication pathways, there are no undocumented pathways and that security controls and authentication strength are enforced consistently. L2
V6.3.5 Verify that users are notified of suspicious authentication attempts (successful or unsuccessful). This may include authentication attempts from an unusual location or client, partially successful authentication (only one of multiple factors), an authentication attempt after a long period of inactivity or a successful authentication after several unsuccessful attempts. L3
V6.3.6 Verify that email is not used as either a single-factor or multi-factor authentication mechanism. L3
V6.3.7 Verify that users are notified after updates to authentication details, such as credential resets or modification of the username or email address. L3
V6.3.8 Verify that valid users cannot be deduced from failed authentication challenges, such as by basing on error messages, HTTP response codes, or different response times. Registration and forgot password functionality must also have this protection. L3

V6.4 Authentication Factor Lifecycle and Recovery

IDVerify that…Level
V6.4.1 Verify that system generated initial passwords or activation codes are securely randomly generated, follow the existing password policy, and expire after a short period of time or after they are initially used. These initial secrets must not be permitted to become the long term password. L1
V6.4.2 Verify that password hints or knowledge-based authentication (so-called "secret questions") are not present. L1
V6.4.3 Verify that a secure process for resetting a forgotten password is implemented, that does not bypass any enabled multi-factor authentication mechanisms. L2
V6.4.4 Verify that if a multi-factor authentication factor is lost, evidence of identity proofing is performed at the same level as during enrollment. L2
V6.4.5 Verify that renewal instructions for authentication mechanisms which expire are sent with enough time to be carried out before the old authentication mechanism expires, configuring automated reminders if necessary. L3
V6.4.6 Verify that administrative users can initiate the password reset process for the user, but that this does not allow them to change or choose the user's password. This prevents a situation where they know the user's password. L3

V6.5 General Multi-factor authentication requirements

IDVerify that…Level
V6.5.1 Verify that lookup secrets, out-of-band authentication requests or codes, and time-based one-time passwords (TOTPs) are only successfully usable once. L2
V6.5.2 Verify that, when being stored in the application's backend, lookup secrets with less than 112 bits of entropy (19 random alphanumeric characters or 34 random digits) are hashed with an approved password storage hashing algorithm that incorporates a 32-bit random salt. A standard hash function can be used if the secret has 112 bits of entropy or more. L2
V6.5.3 Verify that lookup secrets, out-of-band authentication code, and time-based one-time password seeds, are generated using a Cryptographically Secure Pseudorandom Number Generator (CSPRNG) to avoid predictable values. L2
V6.5.4 Verify that lookup secrets and out-of-band authentication codes have a minimum of 20 bits of entropy (typically 4 random alphanumeric characters or 6 random digits is sufficient). L2
V6.5.5 Verify that out-of-band authentication requests, codes, or tokens, as well as time-based one-time passwords (TOTPs) have a defined lifetime. Out of band requests must have a maximum lifetime of 10 minutes and for TOTP a maximum lifetime of 30 seconds. L2
V6.5.6 Verify that any authentication factor (including physical devices) can be revoked in case of theft or other loss. L3
V6.5.7 Verify that biometric authentication mechanisms are only used as secondary factors together with either something you have or something you know. L3
V6.5.8 Verify that time-based one-time passwords (TOTPs) are checked based on a time source from a trusted service and not from an untrusted or client provided time. L3

V6.6 Out-of-Band authentication mechanisms

IDVerify that…Level
V6.6.1 Verify that authentication mechanisms using the Public Switched Telephone Network (PSTN) to deliver One-time Passwords (OTPs) via phone or SMS are offered only when the phone number has previously been validated, alternate stronger methods (such as Time based One-time Passwords) are also offered, and the service provides information on their security risks to users. For L3 applications, phone and SMS must not be available as options. L2
V6.6.2 Verify that out-of-band authentication requests, codes, or tokens are bound to the original authentication request for which they were generated and are not usable for a previous or subsequent one. L2
V6.6.3 Verify that a code based out-of-band authentication mechanism is protected against brute force attacks by using rate limiting. Consider also using a code with at least 64 bits of entropy. L2
V6.6.4 Verify that, where push notifications are used for multi-factor authentication, rate limiting is used to prevent push bombing attacks. Number matching may also mitigate this risk. L3

V6.7 Cryptographic authentication mechanism

IDVerify that…Level
V6.7.1 Verify that the certificates used to verify cryptographic authentication assertions are stored in a way protects them from modification. L3
V6.7.2 Verify that the challenge nonce is at least 64 bits in length, and statistically unique or unique over the lifetime of the cryptographic device. L3

V6.8 Authentication with an Identity Provider

IDVerify that…Level
V6.8.1 Verify that, if the application supports multiple identity providers (IdPs), the user's identity cannot be spoofed via another supported identity provider (eg. by using the same user identifier). The standard mitigation would be for the application to register and identify the user using a combination of the IdP ID (serving as a namespace) and the user's ID in the IdP. L2
V6.8.2 Verify that the presence and integrity of digital signatures on authentication assertions (for example on JWTs or SAML assertions) are always validated, rejecting any assertions that are unsigned or have invalid signatures. L2
V6.8.3 Verify that SAML assertions are uniquely processed and used only once within the validity period to prevent replay attacks. L2
V6.8.4 Verify that, if an application uses a separate Identity Provider (IdP) and expects specific authentication strength, methods, or recentness for specific functions, the application verifies this using the information returned by the IdP. For example, if OIDC is used, this might be achieved by validating ID Token claims such as 'acr', 'amr', and 'auth_time' (if present). If the IdP does not provide this information, the application must have a documented fallback approach that assumes that the minimum strength authentication mechanism was used (for example, single-factor authentication using username and password). L2
← V5 V7 →

Source: OWASP ASVS 5.0.0 · Licensed under CC BY-SA 4.0 · CWE / NIST 800-53 cross-references are a separate (Phase B) LLM-authored mapping, not yet rendered here.