Lune

NDSS2020Top-tier venue

Cross-Origin State Inference (COSI) Attacks: Leaking Web Site States through XS-Leaks

Avinash Sudhodanan, Soheil Khodayari, Juan Caballero

Abstract

In a Cross-Origin State Inference (COSI) attack, an attacker convinces a victim into visiting an attack web page, which leverages the cross-origin interaction features of the victim's web browser to infer the victim's state at a target web site. Multiple instances of COSI attacks have been found in the past under different names such as login detection or access detection attacks. But, those attacks only consider two states (e.g., logged in or not) and focus on a specific browser leak method (or XS-Leak). This work shows that mounting more complex COSI attacks such as deanonymizing the owner of an account, determining if the victim owns sensitive content, and determining the victim's account type often requires considering more than two states. Furthermore, robust attacks require supporting a variety of browsers since the victim's browser cannot be predicted apriori. To address these issues, we present a novel approach to identify and build complex COSI attacks that differentiate more than two states and support multiple browsers by combining multiple attack vectors, possibly using different XS-Leaks. To enable our approach, we introduce the concept of a COSI attack class. We propose two novel techniques to generalize existing COSI attack instances into COSI attack classes and to discover new COSI attack classes. We systematically apply our techniques to existing attacks, identifying 40 COSI attack classes. As part of this process, we discover a novel XS-Leak based on window.postMessage. We implement our approach into Basta-COSI, a tool to find COSI attacks in a target web site. We apply Basta-COSI to test four stand-alone web applications and 58 popular web sites, finding COSI attacks against each of 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.

20 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

  • DISTINCT: Identity Theft using In-Browser Communications in Dual-Window Single Sign-On cites How the Web Tangled Itself: Uncovering the History of Client-Side Web (In)Security
  • Who Left Open the Cookie Jar? A Comprehensive Evaluation of Third-Party Cookie Policies cites Same-Origin Policy: Evaluation in Modern Browsers
  • The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies cites JAW: Studying Client-side CSRF with Hybrid Property Graphs and Declarative Traversals
  • The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies cites Leaky Images: Targeted Privacy Attacks in the Web
  • The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies cites Who Left Open the Cookie Jar? A Comprehensive Evaluation of Third-Party Cookie Policies
  • The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies cites Same-Origin Policy: Evaluation in Modern Browsers
  • The Great Request Robbery: An Empirical Study of Client-side Request Hijacking Vulnerabilities on the Web cites JAW: Studying Client-side CSRF with Hybrid Property Graphs and Declarative Traversals
  • The Great Request Robbery: An Empirical Study of Client-side Request Hijacking Vulnerabilities on the Web cites The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies
  • The Great Request Robbery: An Empirical Study of Client-side Request Hijacking Vulnerabilities on the Web cites Same-Origin Policy: Evaluation in Modern Browsers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. JAW: Studying Client-side CSRF with Hybrid Property Graphs and Declarative TraversalsSoheil Khodayari, Giancarlo PellegrinoUSENIX Security 2021 · 51 citations
  2. The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite CookiesSoheil Khodayari, Giancarlo PellegrinoS&P 2022 · 28 citations
  3. The Great Request Robbery: An Empirical Study of Client-side Request Hijacking Vulnerabilities on the WebSoheil Khodayari, Thomas Barber, Giancarlo PellegrinoS&P 2024 · 12 citations
  4. BrowseLite: A Private Data Saving Solution for the WebConor Kelton, Matteo Varvello, Andrius Aucinas, Ben LivshitsWWW 2021 · 11 citations
  5. DISTINCT: Identity Theft using In-Browser Communications in Dual-Window Single Sign-OnLouis Jannett, Vladislav Mladenov, Christian Mainka, Jörg SchwenkCCS 2022 · 11 citations

Builds on4

  1. 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
  2. Same-Origin Policy: Evaluation in Modern BrowsersJörg Schwenk, Marcus Niemietz, Christian MainkaUSENIX Security 2017 · 52 citations
  3. Who Left Open the Cookie Jar? A Comprehensive Evaluation of Third-Party Cookie PoliciesGertjan Franken, Tom van Goethem, Wouter JoosenUSENIX Security 2018 · 39 citations
  4. Leaky Images: Targeted Privacy Attacks in the WebCristian-Alexandru Staicu, Michael PradelUSENIX Security 2019 · 21 citations

Related papers

  1. Finding All Cross-Site Needles in the DOM Stack: A Comprehensive Methodology for the Automatic XS-Leak Detection in Web BrowsersDominik Trevor Noß, Lukas Knittel, Christian Mainka, Marcus Niemietz et al.CCS 2023
  2. The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the WebJannis Rautenstrauch, Giancarlo Pellegrino, Ben StockS&P 2023
  3. XSinator.com: From a Formal Model to the Automatic Evaluation of Cross-Site Leaks in Web BrowsersLukas Knittel, Christian Mainka, Marcus Niemietz, Dominik Trevor Noß et al.CCS 2021 · 11 citations
  4. Targeted Deanonymization via the Cache Side Channel: Attacks and DefensesMojtaba Zaheri, Yossi Oren, Reza CurtmolaUSENIX Security 2022
  5. Can I Take Your Subdomain? Exploring Same-Site Attacks in the Modern WebMarco Squarcina, Mauro Tempesta, Lorenzo Veronese, Stefano Calzavara et al.USENIX Security 2021 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines