Lune

USENIX Security2022Top-tier venue

The Security Lottery: Measuring Client-Side Web Security Inconsistencies

Sebastian Roth, Stefano Calzavara, Moritz Wilhelm, Alvise Rabitti, Ben Stock

Abstract

To mitigate a myriad of Web attacks, modern browsers support client-side security policies shipped through HTTP response headers. To enforce these defenses, the server needs to communicate them to the client, a seemingly straightforward process. However, users may access the same site in variegate ways, e.g., using different User-Agents, network access methods, or language settings. All these usage scenarios should enforce the same security policies, otherwise a security lottery would take place: depending on specific client characteristics, different levels of Web application security would be provided to users (inconsistencies). We formalize security guarantees provided through four popular mechanisms and apply this to measure the prevalence of inconsistencies in the security policies of top sites across different client characteristics. Based on our insights, we investigate the security implications of both deterministic and non-deterministic inconsistencies, and show how even prominent services are affected by them.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • BUIzz: Finding Policy Enforcement Bugs via Interaction Simulation on the Browser User Interface cites How the Web Tangled Itself: Uncovering the History of Client-Side Web (In)Security
  • BUIzz: Finding Policy Enforcement Bugs via Interaction Simulation on the Browser User Interface cites CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy
  • Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron Apps cites The Cookie Hunter: Automated Black-box Auditing for Web Authentication and Authorization Flaws
  • Didn't You Hear Me? - Towards More Successful Web Vulnerability Notifications cites CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Didn't You Hear Me? - Towards More Successful Web Vulnerability Notifications
  • The Cookie Hunter: Automated Black-box Auditing for Web Authentication and Authorization Flaws cites How the Web Tangled Itself: Uncovering the History of Client-Side Web (In)Security
  • The Cookie Hunter: Automated Black-box Auditing for Web Authentication and Authorization Flaws cites CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy
  • To Auth or Not To Auth? A Comparative Analysis of the Pre- and Post-Login Security Landscape cites The Cookie Hunter: Automated Black-box Auditing for Web Authentication and Authorization Flaws
  • To Auth or Not To Auth? A Comparative Analysis of the Pre- and Post-Login Security Landscape cites CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security ImplicationsJeremy Rack, Cristian-Alexandru StaicuCCS 2023 · 11 citations
  2. To Auth or Not To Auth? A Comparative Analysis of the Pre- and Post-Login Security LandscapeJannis Rautenstrauch, Metodi Mitkov, Thomas Helbrecht, Lorenz Hetterich et al.S&P 2024 · 6 citations
  3. Dynamic Security Analysis of JavaScript: Are We There Yet?Stefano Calzavara, Samuele Casarin, Riccardo FocardiWWW 2025 · 3 citations
  4. Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron AppsMir Masood Ali, Mohammad Ghasemisharif, Chris Kanich, Jason PolakisUSENIX Security 2024 · 2 citations
  5. BUIzz: Finding Policy Enforcement Bugs via Interaction Simulation on the Browser User InterfaceMingi Jung, Donggyu Kim, Mijung Kim, Seongil WiUSENIX Security 2026

Builds on9

  1. The Security Impact of HTTPS InterceptionZakir Durumeric, Zane Ma, Drew Springall, Richard Barnes et al.NDSS 2017 · 161 citations
  2. CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security PolicyLukas Weichselbaum, Michele Spagnuolo, Sebastian Lekies, Artur JancCCS 2016 · 114 citations
  3. Didn't You Hear Me? - Towards More Successful Web Vulnerability NotificationsBen Stock, Giancarlo Pellegrino, Frank Li, Michael Backes et al.NDSS 2018 · 86 citations
  4. How the Web Tangled Itself: Uncovering the History of Client-Side Web (In)SecurityBen Stock, Martin Johns, Marius Steffens, Michael BackesUSENIX Security 2017 · 67 citations
  5. The Cookie Hunter: Automated Black-box Auditing for Web Authentication and Authorization FlawsKostas Drakonakis, Sotiris Ioannidis, Jason PolakisCCS 2020 · 56 citations

Related papers

  1. A Tale of Two Headers: A Formal Analysis of Inconsistent Click-Jacking Protection on the WebStefano Calzavara, Sebastian Roth, Alvise Rabitti, Michael Backes et al.USENIX Security 2020
  2. Reining in the Web's Inconsistencies with Site PolicyStefano Calzavara, Tobias Urban, Dennis Tatang, Marius Steffens et al.NDSS 2021
  3. Head(er)s Up! Detecting Security Header Inconsistencies in BrowsersJannis Rautenstrauch, Trung Tin Nguyen, Karthik Ramakrishnan, Ben StockCCS 2025
  4. Host of Troubles: Multiple Host Ambiguities in HTTP ImplementationsJianjun Chen, Jian Jiang, Hai-Xin Duan, Nicholas Weaver et al.CCS 2016 · 49 citations
  5. Web Platform Threats: Automated Detection of Web Security Issues With WPTPedro Bernardo, Lorenzo Veronese, Valentino Dalla Valle, Stefano Calzavara et al.USENIX Security 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines