Katalog CWE

CWE-613 · Słabość

Insufficient Session Expiration

Abstrakcja
Bazowa
Status
Niekompletny
Dodano
7 maja 2007
Ostatnia zmiana
30 kwietnia 2026

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."

Skutki

  • Access Control

    Bypass Protection Mechanism

Zapobieganie

  • Implementation

    Set sessions/credentials expiration date.

Przykłady podatności

Słabość nadrzędna

Może prowadzić do

Kiedy powstaje

Dotyczy

Not Language-Specific, Web Based, Web Server

Uwagi

This CWE entry is being considered for deprecation. For many years (as of CWE 4.20), the intention and usage of this CWE entry has evolved to include many notions of "sessions" that are not specific to the web. The scope of this entry could be expanded accordingly, or it could be split into multiple separate entries. The original WASC-47 entry [REF-1520] includes considerations forcing re-authentication for "inactivity" (expiring sessions after a period of inactivity) versus "absolute" (a fixed expiration time), with a goal to "keep the lifespan of a session ID as short as possible." However, this CWE has also been used for situations in which a session is not fully invalidated or terminated upon logout, which is a different weakness than the original intention for this entry; however, as of CWE 4.19.1, there is no entry that covers this other variation. There is also evidence that this CWE entry is used for session fixation (CWE-384).

The lack of proper session expiration may improve the likely success of certain attacks. For example, an attacker may intercept a session ID, possibly via a network sniffer or Cross-site Scripting attack. Although short session expiration times do not help if a stolen token is immediately used, they will protect against ongoing replaying of the session ID. In another scenario, a user might access a web site from a shared computer (such as at a library, Internet cafe, or open work environment). Insufficient Session Expiration could allow an attacker to use the browser's back button to access web pages previously accessed by the victim.

Źródła

  1. Insufficient Session Expiration — WASC

Wpis z katalogu CWE 4.20.