Dark Mode
Capec-102 Detail
Session Sidejacking
Detailed Software Likelihood: High Typical Severity: High
Parents: 593
Threats: T292 T293 T376
Session sidejacking takes advantage of an unencrypted communication channel between a victim and target system. The attacker sniffs traffic on a network looking for session tokens in unencrypted traffic. Once a session token is captured, the attacker performs malicious actions by using the stolen token with the targeted application to impersonate the victim. This attack is a specific method of session hijacking, which is exploiting a valid session token to gain unauthorized access to a target system or information. Other methods to perform a session hijacking are session fixation, cross-site scripting, or compromising a user or server machine and stealing the session token.
Not present
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-102 | capec | https://capec.mitre.org/data/definitions/102.html | |
| CWE-294 | cwe | http://cwe.mitre.org/data/definitions/294.html | |
| CWE-522 | cwe | http://cwe.mitre.org/data/definitions/522.html | |
| CWE-523 | cwe | http://cwe.mitre.org/data/definitions/523.html | |
| CWE-319 | cwe | http://cwe.mitre.org/data/definitions/319.html | |
| CWE-614 | cwe | http://cwe.mitre.org/data/definitions/614.html |
Explore
-
Detect Unprotected Session Token Transfer: The attacker sniffs on the wireless network to detect unencrypted traffic that contains session tokens.
| Techniques |
|---|
| The attacker uses a network sniffer tool like ferret or hamster to monitor the wireless traffic at a WiFi hotspot while examining it for evidence of transmittal of session tokens in unencrypted or recognizably encrypted form. An attacker applies their knowledge of the manner by which session tokens are generated and transmitted by various target systems to identify the session tokens. |
Experiment
-
Capture session token: The attacker uses sniffing tools to capture a session token from traffic.
-
Insert captured session token: The attacker attempts to insert a captured session token into communication with the targeted application to confirm viability for exploitation.
Exploit
-
Session Token Exploitation: The attacker leverages the captured session token to interact with the targeted application in a malicious fashion, impersonating the victim.
- An attacker and the victim are both using the same WiFi network.
- The victim has an active session with a target system.
- The victim is not using a secure channel to communicate with the target system (e.g. SSL, VPN, etc.)
- The victim initiated communication with a target system that requires transfer of the session token or the target application uses AJAX and thereby periodically "rings home" asynchronously using the session token
- A packet sniffing tool, such as wireshark, can be used to capture session information.
| Low |
|---|
| Easy to use tools exist to automate this attack. |
| Integrity | Availability | Authorization | Access Control | Confidentiality |
|---|---|---|---|---|
| Modify Data | Unreliable Execution | Gain Privileges | Gain Privileges | Gain Privileges |
| Read Data |
- The attacker and the victim are using the same WiFi public hotspot. When the victim connects to the hotspot, they has a hosted e-mail account open. This e-mail account uses AJAX on the client side which periodically asynchronously connects to the server side and transfers, amongst other things, the user's session token to the server. The communication is supposed to happen over HTTPS. However, the configuration in the public hotspot initially disallows the HTTPS connection (or any other connection) between the victim and the hosted e-mail servers because the victim first needs to register with the hotspot. The victim does so, but their e-mail client already defaulted to using a connection without HTTPS, since it was denied access the first time. Victim's session token is now flowing unencrypted between the victim's browser and the hosted e-mail servers. The attacker leverages this opportunity to capture the session token and gain access to the victim's hosted e-mail account.