CWE-1464

Base Abstraction Level
Pillar — Highest-level weakness category
Class — Abstract, language-independent
Base — Specific enough to detect
Variant — Tied to specific technology
Compound — Requires multiple weaknesses
Incomplete MITRE CWE Status
Stable — Fully reviewed and complete
Draft — Under development, may change
Incomplete — Partially defined by MITRE
Deprecated — No longer recommended
Obsolete — Replaced by another CWE
Improper Session Invalidation

Description

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

Mitigations

Phase: Implementation

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.

Detection

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.