312-50 ยท Session hijacking
Network-level session hijacking
TCP/IP hijacking with sequence numbers, blind hijacking, RST hijacking, UDP and ICMP hijacking, MITM.
Key points
- Attacks on the transport and network layers, not the web app.
- TCP hijacking: learns or guesses valid sequence and acknowledgment numbers, injects accepted packets.
- Blind hijacking: injects without seeing replies.
- RST hijacking: forged resets kill a connection.
- UDP, ICMP: no sequence state, easier spoofing.
- Man-in-the-middle (e.g. ARP poisoning) makes all this simpler.
Practice questions
What must an attacker get right to inject a packet into an established TCP connection?
- The victim's password
- Valid sequence and acknowledgment numbers
- The server's private TLS key
- The victim's browser version
Show answer
Answer: B. Valid sequence and acknowledgment numbers
The receiver only accepts segments whose sequence numbers fall in the expected window, so the attacker needs valid sequence (and acknowledgment) numbers plus the correct addresses and ports.
Which statements about network-level hijacking are correct?
- A forged RST with an acceptable sequence number can terminate a TCP connection
- ARP poisoning can place an attacker in the middle of a LAN conversation
- UDP is harder to hijack because it uses sequence numbers
- UDP and ICMP are easier to spoof because they keep no connection state
- TCP hijacking works only against HTTPS sites
Show answer
Answer: A. A forged RST with an acceptable sequence number can terminate a TCP connection, B. ARP poisoning can place an attacker in the middle of a LAN conversation, D. UDP and ICMP are easier to spoof because they keep no connection state
A forged RST with an acceptable sequence number can end a connection, and ARP poisoning puts an attacker in the path. UDP has no sequence numbers, so it is easier to spoof, not harder.
True or false: an attacker who is not on the path between two hosts can never hijack a TCP session.
Show answer
Answer: False
False. Off-path (blind) attacks are possible if sequence numbers can be guessed, which is why randomised initial sequence numbers matter. They are harder than on-path attacks, not impossible.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
