SESSION MANAGEMENT (SM5)

John can predict or guess session identifiers because they are not changed when the user's role alters (e.g. pre and post authentication) and when switching between non-encrypted and encrypted communications, or are not sufficiently long and random, or are not changed periodically

SESSION MANAGEMENT
5

John can predict or guess session identifiers because they are not changed when the user's role alters (e.g. pre and post authentication) and when switching between non-encrypted and encrypted communications, or are not sufficiently long and random, or are not changed periodically

OWASP SCP

60,62,66,67,71,72

OWASP ASVS

3.2.1,3.2.2,3.2.4,3.3.1

OWASP AppSensor

SE4,SE5,SE6

CAPEC

-

SAFECODE

28

How to play?

Ensure the following occur:

Ensure sufficiently long and random session identifiers are used Generate a new session identifier: If a session was established before login, and successful login has occurred When changing from HTTP to HTTPS When re-authenticating Periodically otherwise. See SM 7 for session termination on logging out.

Mappings

OWASP ASVS (4.0): 3.2.1 ,3.2.2 ,3.2.4 ,3.3.1

Capec: 31

OWASP SCP: 60,62,66,67,71,72

OWASP Appsensor: SE4,SE5,SE6

Safecode: 28

ASVS (4.0) Cheatsheetseries Index

ASVS V3.2 - Session Binding Requirements

ASVS V3.3 - Session Logout and Timeout Requirements

No suitable mappings were found.

Attacks

Password Guessing/Brute Force Attacks

Replay attacks

Session Fixation

Session Hijacking (Man-in-the-Middle)

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.