CAPEC-102
Session Sidejacking
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.
Abstraction
Detailed
Typical severity
High
Likelihood of attack
High
Understand the attack
What is this attack pattern?
Execution flow
How does the attack proceed, step by step?
Explore
Detect Unprotected Session Token Transfer
Techniques used
- 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
Insert captured session token
Exploit
Session Token Exploitation
Requirements
What does the attack require?
Prerequisites
- 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
Skills required
- Low: Easy to use tools exist to automate this attack.
Resources required
- A packet sniffing tool, such as wireshark, can be used to capture session information.
Impact
What does a successful attack lead to?
Affected scopes: Confidentiality, Access Control, Authorization
Affected scopes: Integrity
Affected scopes: Confidentiality
Affected scopes: Availability
Defence
How is it prevented and mitigated?
Real world