Session Management (SMA)

SESSION MANAGEMENT
A

Je hebt een nieuwe aanval uitgevonden tegen Sessiebeheer

How to play?

Players can discuss any type of Session Management (SM) attack they think might be possible against the assessment target. It does not matter if the attack relates to another SM card, but if possible try to identify an attack that is fairly unique to the application/functionality/users.

Scenario: Invent your own Session Management threat

Inventing a new session management attack could lead to:

  1. Session Hijacking / Impersonation: Attacker takes over another user’s active session.
  2. Session Fixation: Attacker forces a victim to use a session ID they know.
  3. Privilege Escalation: Attacker uses session manipulation to gain admin or sensitive access.
  4. Information Leakage: Sensitive user data or tokens could be exposed.
  5. Replay / CSRF-like attacks: Reusing a valid session to perform unauthorized actions.
  6. Service Disruption: Exhausting session tables or server resources through massive session creation.
  7. Loss of Auditability: Actions performed via hijacked or manipulated sessions may not be attributable.

Threat modeling

STRIDE

STRIDE categories affected, depends on the context. Potentially, all six may be affected (Spoofing, Tampering, Repudiation, Information Disclosure, Elevation of Privilege, Denial of Service).

What can go wrong?

Hijacking, escalation, data leaks, denial of service, loss of auditability.

What are you going to do about it?

Use strong session IDs, secure cookies, enforce timeouts, re-authentication, centralized session management, monitoring, and periodic testing.

Best Practices / Mitigations for Session Management threats would be:

  1. Strong Session Identifiers: Use cryptographically random, long, and unpredictable session IDs.
  2. Secure Storage and Transmission: Cookies: HttpOnly, Secure, SameSite and avoiding putting session IDs in URLs.
  3. Session Expiration: Inactivity timeouts and absolute session lifetimes.
  4. Session Binding: Bind sessions to IP addresses, devices, or user agents when feasible.
  5. Re-authentication for Critical Actions: Ask users to log in again for sensitive operations.
  6. Invalidate Old Sessions: After logout, password change, or role change.
  7. Monitor & Detect: Detect concurrent sessions, unusual access patterns, or abnormal session behavior.
  8. Centralized Session Management: Avoid custom implementations; use framework-standard, tested routines.
  9. Audit and Logging: Log session creation, invalidation, and unusual activity.
  10. Periodic Security Testing: Include fuzzing, stress tests, and penetration testing against session controls.

Mappings

OWASP ASVS (v5.0): -

OWASP DevGuide: -

STRIDE: -

CAPEC™: -

SAFECode™: -

ASVS (5.0) Cheat Sheet Series Index

No attacks registered!

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 4.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.