Bitzu

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

Single choice

What must an attacker get right to inject a packet into an established TCP connection?

  1. The victim's password
  2. Valid sequence and acknowledgment numbers
  3. The server's private TLS key
  4. 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.

Select all that apply

Which statements about network-level hijacking are correct?

  1. A forged RST with an acceptable sequence number can terminate a TCP connection
  2. ARP poisoning can place an attacker in the middle of a LAN conversation
  3. UDP is harder to hijack because it uses sequence numbers
  4. UDP and ICMP are easier to spoof because they keep no connection state
  5. 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

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module