Cookie-based Session Management

V3.4.1

Verify that cookie-based session tokens have the 'Secure' attribute set. (C6)

Level 1 required: True

Level 2 required: True

Level 3 required: True

CWE: 614

V3.4.2

Verify that cookie-based session tokens have the 'HttpOnly' attribute set. (C6)

Level 1 required: True

Level 2 required: True

Level 3 required: True

CWE: 1004

V3.4.3

Verify that cookie-based session tokens utilize the 'SameSite' attribute to limit exposure to cross-site request forgery attacks. (C6)

Level 1 required: True

Level 2 required: True

Level 3 required: True

CWE: 1275

V3.4.4

Verify that cookie-based session tokens use the "__Host-" prefix so cookies are only sent to the host that initially set the cookie.

Level 1 required: True

Level 2 required: True

Level 3 required: True

CWE: 16

V3.4.5

Verify that if the application is published under a domain name with other applications that set or use session cookies that might disclose the session cookies, set the path attribute in cookie-based session tokens using the most precise path possible. (C6)

Level 1 required: True

Level 2 required: True

Level 3 required: True

CWE: 16

Disclaimer:

Credit via OWASP ASVS. For more information visit The OWASP ASVS Project or Github respository.. OWASP ASVS is under the Creative Commons Attribution-Share Alike v3.0 license.

Github logo View source on GitHub

OWASP Cornucopia

  • OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use.
  • OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 3.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.
  • © 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.