# Authentication and JWT: ASVS 5.0.0 checklist, level 1 and below

## V3 Web Frontend Security

### V3.3 Cookie Setup

- [ ] **v5.0.0-3.3.1** (L1) Verify that cookies have the 'Secure' attribute set, and if the '\__Host-' prefix is not used for the cookie name, the '__Secure-' prefix must be used for the cookie name.
- Cheat sheets: [Cross-Site Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html), [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html), [Transport Layer Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html)

## V6 Authentication

### V6.1 Authentication Documentation

- [ ] **v5.0.0-6.1.1** (L1) 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.
- Cheat sheets: [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html), [Security Terminology Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Security_Terminology_Cheat_Sheet.html)

### V6.2 Password Security

- [ ] **v5.0.0-6.2.1** (L1) (situational) Verify that user set passwords are at least 8 characters in length although a minimum of 15 characters is strongly recommended.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.2** (L1) (situational) Verify that users can change their password.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.3** (L1) (situational) Verify that password change functionality requires the user's current and new password.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.4** (L1) (situational) 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.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.5** (L1) (situational) 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.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.6** (L1) (situational) 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.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.7** (L1) (situational) Verify that "paste" functionality, browser password helpers, and external password managers are permitted.
  - Applies when: Users sign in with a password that the application itself checks.
- [ ] **v5.0.0-6.2.8** (L1) (situational) Verify that the application verifies the user's password exactly as received from the user, without any modifications such as truncation or case transformation.
  - Applies when: Users sign in with a password that the application itself checks.
- Cheat sheets: [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)

### V6.3 General Authentication Security

- [ ] **v5.0.0-6.3.1** (L1) Verify that controls to prevent attacks such as credential stuffing and password brute force are implemented according to the application's security documentation.
- [ ] **v5.0.0-6.3.2** (L1) Verify that default user accounts (e.g., "root", "admin", or "sa") are not present in the application or are disabled.
- Cheat sheets: [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html), [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html), [Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)

### V6.4 Authentication Factor Lifecycle and Recovery

- [ ] **v5.0.0-6.4.1** (L1) (situational) 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.
  - Applies when: The application manages its own credentials, initial passwords or account recovery.
- [ ] **v5.0.0-6.4.2** (L1) (situational) Verify that password hints or knowledge-based authentication (so-called "secret questions") are not present.
  - Applies when: The application manages its own credentials, initial passwords or account recovery.
- Cheat sheets: [Choosing and Using Security Questions Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html), [Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html), [Multifactor Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html)

## V7 Session Management

### V7.2 Fundamental Session Management Security

- [ ] **v5.0.0-7.2.1** (L1) Verify that the application performs all session token verification using a trusted, backend service.
- [ ] **v5.0.0-7.2.2** (L1) Verify that the application uses either self-contained or reference tokens that are dynamically generated for session management, i.e. not using static API secrets and keys.
- [ ] **v5.0.0-7.2.3** (L1) Verify that if reference tokens are used to represent user sessions, they are unique and generated using a cryptographically secure pseudo-random number generator (CSPRNG) and possess at least 128 bits of entropy.
- [ ] **v5.0.0-7.2.4** (L1) Verify that the application generates a new session token on user authentication, including re-authentication, and terminates the current session token.
- Cheat sheets: [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)

### V7.4 Session Termination

- [ ] **v5.0.0-7.4.1** (L1) Verify that when session termination is triggered (such as logout or expiration), the application disallows any further use of the session. For reference tokens or stateful sessions, this means invalidating the session data at the application backend. Applications using self-contained tokens will need a solution such as maintaining a list of terminated tokens, disallowing tokens produced before a per-user date and time or rotating a per-user signing key.
- [ ] **v5.0.0-7.4.2** (L1) Verify that the application terminates all active sessions when a user account is disabled or deleted (such as an employee leaving the company).
- Cheat sheets: [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)

## V9 Self-contained Tokens

### V9.1 Token source and integrity

- [ ] **v5.0.0-9.1.1** (L1) Verify that self-contained tokens are validated using their digital signature or MAC to protect against tampering before accepting the token's contents.
- [ ] **v5.0.0-9.1.2** (L1) Verify that only algorithms on an allowlist can be used to create and verify self-contained tokens, for a given context. The allowlist must include the permitted algorithms, ideally only either symmetric or asymmetric algorithms, and must not include the 'None' algorithm. If both symmetric and asymmetric must be supported, additional controls will be needed to prevent key confusion.
- [ ] **v5.0.0-9.1.3** (L1) Verify that key material that is used to validate self-contained tokens is from trusted pre-configured sources for the token issuer, preventing attackers from specifying untrusted sources and keys. For JWTs and other JWS structures, headers such as 'jku', 'x5u', and 'jwk' must be validated against an allowlist of trusted sources.
- Cheat sheets: [JSON Web Token Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html), [SAML Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/SAML_Security_Cheat_Sheet.html)

### V9.2 Token content

- [ ] **v5.0.0-9.2.1** (L1) Verify that, if a validity time span is present in the token data, the token and its content are accepted only if the verification time is within this validity time span. For example, for JWTs, the claims 'nbf' and 'exp' must be verified.
- Cheat sheets: [REST Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html)

## V10 OAuth and OIDC

### V10.4 OAuth Authorization Server

- [ ] **v5.0.0-10.4.1** (L1) (situational) Verify that the authorization server validates redirect URIs based on a client-specific allowlist of pre-registered URIs using exact string comparison.
  - Applies when: The organisation runs its own OAuth authorisation server rather than a hosted identity provider.
- [ ] **v5.0.0-10.4.2** (L1) (situational) Verify that, if the authorization server returns the authorization code in the authorization response, it can be used only once for a token request. For the second valid request with an authorization code that has already been used to issue an access token, the authorization server must reject a token request and revoke any issued tokens related to the authorization code.
  - Applies when: The organisation runs its own OAuth authorisation server rather than a hosted identity provider.
- [ ] **v5.0.0-10.4.3** (L1) (situational) Verify that the authorization code is short-lived. The maximum lifetime can be up to 10 minutes for L1 and L2 applications and up to 1 minute for L3 applications.
  - Applies when: The organisation runs its own OAuth authorisation server rather than a hosted identity provider.
- [ ] **v5.0.0-10.4.4** (L1) (situational) Verify that for a given client, the authorization server only allows the usage of grants that this client needs to use. Note that the grants 'token' (Implicit flow) and 'password' (Resource Owner Password Credentials flow) must no longer be used.
  - Applies when: The organisation runs its own OAuth authorisation server rather than a hosted identity provider.
- [ ] **v5.0.0-10.4.5** (L1) (situational) Verify that the authorization server mitigates refresh token replay attacks for public clients, preferably using sender-constrained refresh tokens, i.e., Demonstrating Proof of Possession (DPoP) or Certificate-Bound Access Tokens using mutual TLS (mTLS). For L1 and L2 applications, refresh token rotation may be used. If refresh token rotation is used, the authorization server must invalidate the refresh token after usage, and revoke all refresh tokens for that authorization if an already used and invalidated refresh token is provided.
  - Applies when: The organisation runs its own OAuth authorisation server rather than a hosted identity provider.
- Cheat sheets: [OAuth 2.0 Protocol Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/OAuth2_Cheat_Sheet.html), [Transport Layer Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html), [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)

## V11 Cryptography

### V11.4 Hashing and Hash-based Functions

- [ ] **v5.0.0-11.4.1** (L1) (situational) Verify that only approved hash functions are used for general cryptographic use cases, including digital signatures, HMAC, KDF, and random bit generation. Disallowed hash functions, such as MD5, must not be used for any cryptographic purpose.
  - Applies when: The application stores passwords or derives keys from them.
- Cheat sheets: [Password Storage Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)

---

Requirements: OWASP Application Security Verification Standard 5.0.0, (c) OWASP Foundation, licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/. Source: https://github.com/OWASP/ASVS/tree/v5.0.0_release. The grouping by stack (Authentication and JWT), the relevance labels and the notes are Helm's own editorial curation, not an OWASP product, and are not endorsed by OWASP. Cheat sheet links point to the OWASP Cheat Sheet Series (CC BY-SA 4.0). Completing a checklist means the listed controls were considered; it does not mean a system is secure.

Retrieved from Helm on 2026-11-24 22:53 UTC.
