COMMON WEAKNESS ENUMERATIONIncomplete

CWE-1464

Improper Session Invalidation

The product establishes a session for an authenticated user, but it does not properly invalidate or terminate the session when it is required.

Abstraction

Base

Structure

Simple

Likelihood of Exploit

Medium

Understand the problem

What is the problem?

The product establishes a session for an authenticated user, but it does not properly invalidate or terminate the session when it is required.

Root cause

How and when does the problem arise?

Lifecycle phase

Architecture and Design

Lifecycle phase

Implementation

Defence

How is it prevented and fixed?

Implementation

Implementation-phase defence

Detail
Ensure that user sessions are invalidated on the server-side for all possible security related events relevant to the application. It is important that the server-side handles all session invalidation and does not rely on the client to remove or delete a session, due to the possibility of adversaries capturing session identifiers or cookies for later reuse.

Verification

How is it detected?

Dynamic Analysis with Manual Results Interpretation

Ensure that application testing includes scenarios that are intended to lead to session invalidation and verify that the session can no longer be used.
CWE-1464: Common Weakness Enumeration Entry CWE-1464