Skip to main content
QUICK REVIEW

[Paper Review] XSS-FP: Browser Fingerprinting using HTML Parser Quirks

Erwan Abgrall, Yves Le Traon|arXiv (Cornell University)|Nov 20, 2012
Advanced Malware Detection TechniquesComputer Science11 references7 citations
TL;DR

This paper presents XSS-FP, a novel browser fingerprinting technique that exploits HTML parser quirks through cross-site scripting (XSS) vectors to identify browser type and version. By executing six carefully crafted XSS tests, the method achieves 98% accuracy in identifying browser families and 71% accuracy in determining exact browser versions, offering a highly accurate, hard-to-spoof client fingerprinting approach at the application level.

ABSTRACT

There are many scenarios in which inferring the type of a client browser is desirable, for instance to fight against session stealing. This is known as browser fingerprinting. This paper presents and evaluates a novel fingerprinting technique to determine the exact nature (browser type and version, eg Firefox 15) of a web-browser, exploiting HTML parser quirks exercised through XSS. Our experiments show that the exact version of a web browser can be determined with 71% of accuracy, and that only 6 tests are sufficient to quickly determine the exact family a web browser belongs to.

Motivation & Objective

  • To address the limitations of traditional browser fingerprinting methods based on JavaScript or network behavior, which can be easily spoofed.
  • To develop a fingerprinting technique that leverages inherent, hard-to-simulate quirks in HTML parser behavior across different browsers.
  • To enable precise identification of browser type and version (including exact version) for improved security detection, such as session stealing prevention.
  • To create a robust, application-level fingerprinting method that does not require low-level network stack access.
  • To evaluate the feasibility and accuracy of using HTML parser quirks as a reliable fingerprinting vector in real-world scenarios.

Proposed method

  • The method exploits specific HTML inputs that trigger unique parsing behaviors—so-called 'parser quirks'—in different web browsers.
  • These inputs are derived from known XSS vectors that cause distinct rendering or execution outcomes depending on the browser's underlying HTML parser.
  • A custom tool was developed to automatically execute these XSS vectors across a diverse set of browsers and collect their responses.
  • The responses were analyzed to extract unique signatures based on how each browser parsed the same malformed or edge-case HTML.
  • Machine learning classification techniques (e.g., those by Hall et al.) were applied to reduce the number of required tests while maintaining high accuracy.
  • The approach relies on the fact that HTML parser behavior is deeply embedded in browser engines and cannot be easily emulated without replicating the full parsing logic.

Experimental results

Research questions

  • RQ1Can HTML parser quirks be reliably used to distinguish between different browser types and versions?
  • RQ2To what extent can a small number of XSS-based tests achieve accurate browser family classification?
  • RQ3How does the accuracy of version-level fingerprinting compare to existing methods based on JavaScript or network behavior?
  • RQ4How resistant is this fingerprinting technique to spoofing attempts compared to other client fingerprinting methods?
  • RQ5Can this method be extended to detect disguised clients such as bots or crawlers?

Key findings

  • The proposed XSS-FP technique achieves 71% accuracy in identifying the exact version of a web browser out of 77 possible versions.
  • Only six XSS vectors are required to classify a browser into its correct family with 98% accuracy.
  • The method is highly resistant to spoofing because HTML parser quirks are deeply embedded in browser engines and difficult to emulate without access to the same parser logic.
  • The technique operates at the application level and does not require access to low-level network stack behavior, making it more practical for server-side deployment.
  • The approach outperforms existing JavaScript-based fingerprinting in version-level accuracy, especially for subversion detection.
  • The study confirms that HTML parser quirks provide a stable and unique fingerprinting vector, with potential for detecting non-human clients like crawlers.

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.