CAPEC-59 — Session Credential Falsification through Prediction
CAPEC-59: Session Credential Falsification through Prediction
MITRE CAPEC attack pattern
| Status | Draft |
| Typical severity | High |
| Likelihood of attack | High |
| Catalogue | CAPEC 3.9 (2023-01-24) |
Description
This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.
Where this sits in the chain
A finding maps to a weakness (CWE), a weakness is exploited by an attack pattern (CAPEC), and an attack pattern shows up in ATT&CK as observed adversary behaviour. This page is the middle hop.
Weaknesses exploited: CWE-6, CWE-200, CWE-285, CWE-290, CWE-330, CWE-331, CWE-346, CWE-384, CWE-488, CWE-539, CWE-693
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 predictable. For example, the session IDs are generated using predictable information (e.g., time).
Skills required
- Low: There are tools to brute force session ID. Those tools require a low level of knowledge.
- Medium: Predicting Session ID may require more computation work which uses advanced analysis such as statistical analysis.
Consequences
- Confidentiality, Access Control, Authorization: Gain Privileges
Mitigations
- Use a strong source of randomness to generate a session ID.
- Use adequate length session IDs
- Do not use information available to the user in order to generate session ID (e.g., time).
- Ideas for creating random numbers are offered by Eastlake [RFC1750]
- Encrypt the session ID if you expose it to the user. For instance session ID can be stored in a cookie in encrypted format.