CAPEC Definitions

    CAPEC Definitions / CAPEC-60

    CAPEC-60: Reusing Session IDs (aka Session Replay)

    This attack targets the reuse of valid session ID to spoof the target system in order to gain privileges. The attacker tries to reuse a stolen session ID used previously during a transaction to perform spoofing and session hijacking. Another name for this type of attack is Session Replay.

    Severity:High
    Possibility:High

    Extended Description

    No Extended Description.

    Mitigations

    Always invalidate a session ID after the user logout.

    Setup a session time out for the session IDs.

    Protect the communication between the client and server. For instance it is best practice to use SSL to mitigate adversary in the middle attacks (CAPEC-94).

    Do not code send session ID with GET method, otherwise the session ID will be copied to the URL. In general avoid writing session IDs in the URLs. URLs can get logged in log files, which are vulnerable to an attacker.

    Encrypt the session data associated with the session ID.

    Use multifactor authentication.

    Relationships with other CAPECs

    CAPEC-593: Session Hijacking

    Prerequisites

    The target host uses session IDs to keep track of the users.

    Session IDs are used to control access to resources.

    The session IDs used by the target host are not well protected from session theft.

    Related Weaknesses

    CWE-294: Authentication Bypass by Capture-replay

    CWE-290: Authentication Bypass by Spoofing

    CWE-346: Origin Validation Error

    CWE-384: Session Fixation

    CWE-488: Exposure of Data Element to Wrong Session

    CWE-539: Use of Persistent Cookies Containing Sensitive Information

    CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

    CWE-285: Improper Authorization

    CWE-664: Improper Control of a Resource Through its Lifetime

    CWE-732: Incorrect Permission Assignment for Critical Resource