Skip to main content
QUICK REVIEW

[Paper Review] Off-Path Attacking the Web

Yossi Gilad, Amir Herzberg|arXiv (Cornell University)|Apr 30, 2012
Web Application Security VulnerabilitiesComputer Science25 references26 citations
TL;DR

This paper demonstrates that off-path attackers can perform practical TCP injection attacks using predictable IP-ID values in Windows and other systems, enabling cross-site scripting, CSRF, site defacement, and DoS attacks without exploiting browser or server vulnerabilities. The key contribution is a side-channel technique that leverages globally-incrementing IP-IDs to learn sequence numbers and inject malicious packets into established connections, bypassing standard security defenses.

ABSTRACT

We show how an off-path (spoofing-only) attacker can perform cross-site scripting (XSS), cross-site request forgery (CSRF) and site spoofing/defacement attacks, without requiring vulnerabilities in either web-browser or server and circumventing known defenses. Attacker can also launch devastating denial of service (DoS) attacks, even when the connection between the client and the server is secured with SSL/TLS. The attacks are practical and require a puppet (malicious script in browser sandbox) running on a the victim client machine, and attacker capable of IP-spoofing on the Internet. Our attacks use a technique allowing an off-path attacker to learn the sequence numbers of both client and server in a TCP connection. The technique exploits the fact that many computers, in particular those running Windows, use a global IP-ID counter, which provides a side channel allowing efficient exposure of the connection sequence numbers. We present results of experiments evaluating the learning technique and the attacks that exploit it. Finally, we present practical defenses that can be deployed at the firewall level; no changes to existing TCP/IP stacks are required.

Motivation & Objective

  • To investigate whether off-path attackers can bypass TCP security mechanisms using only IP spoofing.
  • To demonstrate that predictable IP-ID values in common OSes (e.g., Windows) can be exploited as a side channel to learn TCP sequence numbers.
  • To show that such sequence number exposure enables practical, real-world attacks like XSS, CSRF, and DoS on secure (SSL/TLS-protected) connections.
  • To propose firewall-level defenses that do not require changes to TCP/IP stacks or end-hosts.
  • To argue for proactive vulnerability disclosure and mitigation, even before full practical exploits are demonstrated.

Proposed method

  • The attacker uses crafted probe packets with spoofed IP addresses and varying IP-IDs to monitor responses from the client.
  • The attacker observes changes in the client's response behavior (e.g., RST or ACK packets) to infer the current sequence number of the target TCP connection.
  • The method exploits the fact that Windows and some other systems use a globally-incrementing IP-ID counter, which acts as a side channel for sequence number exposure.
  • By analyzing the timing and pattern of responses to probe packets, the attacker reconstructs the sequence number of the target connection.
  • The technique is applied to inject malicious data into the TCP stream, enabling attacks such as XSS and CSRF by forging valid TCP segments.
  • Firewall-level defenses are proposed, including per-connection IP-ID randomization using a keyed pseudo-random function to prevent correlation.

Experimental results

Research questions

  • RQ1Can an off-path attacker with only IP spoofing capability perform practical TCP injection attacks?
  • RQ2To what extent can predictable IP-ID values in operating systems like Windows be exploited as a side channel to infer TCP sequence numbers?
  • RQ3Can such sequence number exposure lead to successful exploitation of critical web security mechanisms like the Same Origin Policy?
  • RQ4Are existing defenses such as SSL/TLS sufficient to prevent these low-level attacks?
  • RQ5Can effective, deployable defenses be implemented at the firewall level without modifying TCP/IP stacks?

Key findings

  • The authors successfully demonstrated that off-path attackers can learn TCP sequence numbers using IP-ID side channels on systems with globally-incrementing IP-IDs, such as Windows.
  • The technique enables practical injection of malicious data into established TCP connections, even when protected by SSL/TLS, leading to effective DoS and application-layer attacks.
  • Experiments confirmed that the attack is feasible and effective, with high success rates under typical network conditions, especially when latency is low.
  • The attack bypasses the Same Origin Policy, allowing cross-site scripting and CSRF attacks without requiring client-side vulnerabilities.
  • The proposed firewall-level defense using per-connection, keyed pseudo-random IP-IDs prevents the side channel without requiring changes to end-hosts or TCP stacks.
  • The study shows that even theoretical vulnerabilities in low-level protocols like TCP should be addressed proactively, as demonstrated by the practical feasibility of these attacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.