Lune

NDSS2021顶会

Reining in the Web's Inconsistencies with Site Policy

Stefano Calzavara, Tobias Urban, Dennis Tatang, Marius Steffens, Ben Stock

摘要

Over the years, browsers have adopted an ever-increasing number of client-enforced security policies deployed by means of HTTP headers. Such mechanisms are fundamental for web application security, and usually deployed on a per-page basis. This, however, enables inconsistencies, as different pages within the same security boundaries (in form of origins or sites) can express conflicting security requirements. In this paper, we formalize inconsistencies for cookie security attributes, CSP and HSTS, and then quantify the magnitude and impact of inconsistencies at scale by crawling 15,000 popular sites. We show numerous sites endanger their own security by omission or misconfiguration of the aforementioned mechanisms, which lead to unnecessary exposure to XSS, cookie theft and HSTS deactivation. We then use our data to analyse to which extent the recent Origin Policy proposal can fix the problem of inconsistencies. Unfortunately, we conclude that the current Origin Policy design suffers from major shortcomings which limit its practical applicability to address security inconsistencies, while catering to the need of real-world sites. Based on these insights, we propose Site Policy, designed to overcome Origin Policy’s shortcomings and make any insecurity explicit. We make a prototype implementation of Site Policy publicly available, along with a support toolchain for initial policy generation, security analysis, and test deployment.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • The Security Lottery: Measuring Client-Side Web Security Inconsistencies 引用了 CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy
  • Automatic Discovery of Emerging Browser Fingerprinting Techniques 引用了 Online Tracking: A 1-million-site Measurement and Analysis
  • Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron Apps 引用了 Online Tracking: A 1-million-site Measurement and Analysis
  • Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron Apps 引用了 The Security Lottery: Measuring Client-Side Web Security Inconsistencies
  • Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron Apps 引用了 The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the Web
  • Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron Apps 引用了 The Cracked Cookie Jar: HTTP Cookie Hijacking and the Exposure of Private Information
  • The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the Web 引用了 The Security Lottery: Measuring Client-Side Web Security Inconsistencies
  • The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the Web 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the Web 引用了 The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies
  • Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation 引用了 Online Tracking: A 1-million-site Measurement and Analysis
  • The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite Cookies 引用了 The Cracked Cookie Jar: HTTP Cookie Hijacking and the Exposure of Private Information
  • Beyond the Front Page: Measuring Third Party Dynamics in the Field 引用了 Online Tracking: A 1-million-site Measurement and Analysis
  • Beyond the Front Page: Measuring Third Party Dynamics in the Field 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. The State of the SameSite: Studying the Usage, Effectiveness, and Adequacy of SameSite CookiesSoheil Khodayari, Giancarlo PellegrinoS&P 2022 · 28 次引用
  2. Automatic Discovery of Emerging Browser Fingerprinting TechniquesJunhua Su, Alexandros KapravelosWWW 2023 · 17 次引用
  3. Rise of Inspectron: Automated Black-box Auditing of Cross-platform Electron AppsMir Masood Ali, Mohammad Ghasemisharif, Chris Kanich, Jason PolakisUSENIX Security 2024 · 2 次引用
  4. The Security Lottery: Measuring Client-Side Web Security InconsistenciesSebastian Roth, Stefano Calzavara, Moritz Wilhelm, Alvise Rabitti 等USENIX Security 2022
  5. The Leaky Web: Automated Discovery of Cross-Site Information Leaks in Browsers and the WebJannis Rautenstrauch, Giancarlo Pellegrino, Ben StockS&P 2023

它引用的 Paper13

  1. Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski 等NDSS 2019 · 826 次引用
  2. Online Tracking: A 1-million-site Measurement and AnalysisSteven Englehardt, Arvind NarayananCCS 2016 · 798 次引用
  3. 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 次引用
  4. The Cracked Cookie Jar: HTTP Cookie Hijacking and the Exposure of Private InformationSuphannee Sivakorn, Iasonas Polakis, Angelos D. KeromytisS&P 2016 · 86 次引用
  5. Beyond the Front Page: Measuring Third Party Dynamics in the FieldTobias Urban, Martin Degeling, Thorsten Holz, Norbert PohlmannWWW 2020 · 77 次引用

相关 Paper

  1. A Tale of Two Headers: A Formal Analysis of Inconsistent Click-Jacking Protection on the WebStefano Calzavara, Sebastian Roth, Alvise Rabitti, Michael Backes 等USENIX Security 2020
  2. Content Security Problems?: Evaluating the Effectiveness of Content Security Policy in the WildStefano Calzavara, Alvise Rabitti, Michele BugliesiCCS 2016 · 71 次引用
  3. Head(er)s Up! Detecting Security Header Inconsistencies in BrowsersJannis Rautenstrauch, Trung Tin Nguyen, Karthik Ramakrishnan, Ben StockCCS 2025
  4. DiffCSP: Finding Browser Bugs in Content Security Policy Enforcement through Differential TestingSeongil Wi, Trung Tin Nguyen, Jihwan Kim, Ben Stock 等NDSS 2023
  5. Who Left Open the Cookie Jar? A Comprehensive Evaluation of Third-Party Cookie PoliciesGertjan Franken, Tom van Goethem, Wouter JoosenUSENIX Security 2018 · 39 次引用
黄昏的海面,两侧是细线勾勒的悬崖