Student or educator? Sign up with your school email and get 6 months of Pro free.
Cited by 98Web Application Security VulnerabilitiesSecurity and Verification in ComputingInformation and Cyber Security

The DOI matches its Crossref record.

CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy

Open access
Weichselbaum, Lukas, Spagnuolo, Michele, Lekies, Sebastian, Janc, Artur·2016·Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security

Abstract

Content Security Policy is a web platform mechanism designed to mitigate cross-site scripting (XSS), the top security vulnerability in modern web applications. In this paper, we take a closer look at the practical benefits of adopting CSP and identify significant flaws in real-world deployments that result in bypasses in 94.72% of all distinct policies. We base our Internet-wide analysis on a search engine corpus of approximately 100 billion pages from over 1 billion hostnames; the result covers CSP deployments on 1,680,867 hosts with 26,011 unique CSP policies -- the most comprehensive study to date. We introduce the security-relevant aspects of the CSP specification and provide an in-depth analysis of its threat model, focusing on XSS protections. We identify three common classes of CSP bypasses and explain how they subvert the security of a policy. We then turn to a quantitative analysis of policies deployed on the Internet in order to understand their security benefits. We observe that 14 out of the 15 domains most commonly whitelisted for loading scripts contain unsafe endpoints; as a consequence, 75.81% of distinct policies use script whitelists that allow attackers to bypass CSP. In total, we find that 94.68% of policies that attempt to limit script execution are ineffective, and that 99.34% of hosts with CSP use policies that offer no benefit against XSS. Finally, we propose the "strict-dynamic" keyword, an addition to the specification that facilitates the creation of policies based on cryptographic nonces, without relying on domain whitelists. We discuss our experience deploying such a nonce-based policy in a complex application and provide guidance to web authors for improving their policies.

Overview

Integrity signals

Registry

Crossref · 10.1145/2976749.2978363

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Verification

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Citations

Cites

Still being checked.

Research works printed but not linked: 33

  1. E. Athanasopoulos , V. Pappas , A. Krithinakis , S. Ligouras , E. P. Markatos , and T. Karagiannis . xjs: practical xss prevention for web application development . In USENIX conference on Web application development , 2010 . E. Athanasopoulos, V. Pappas, A. Krithinakis, S. Ligouras, E. P. Markatos, and T. Karagiannis. xjs: practical xss prevention for web application development. In USENIX conference on Web application development, 2010.
  2. A. Barth . Bug 54379 - add basic parser for content security policy , 2011 . A. Barth. Bug 54379 - add basic parser for content security policy, 2011.
  3. A. Barth , D. Veditz , and M. West . Content security policy level 2. W3C Working Draft , 2014 . A. Barth, D. Veditz, and M. West. Content security policy level 2. W3C Working Draft, 2014.
  4. 10.1145/1772690.1772701 · DOI
  5. 10.1145/1653662.1653713 · DOI
  6. 10.1145/2508859.2516708 · DOI
  7. M. V. Gundy and H. Chen . Noncespaces: Using randomization to enforce information flow tracking and thwart cross-site scripting attacks . In NDSS , 2009 . M. V. Gundy and H. Chen. Noncespaces: Using randomization to enforce information flow tracking and thwart cross-site scripting attacks. In NDSS, 2009.
  8. R. Hansen and J. Grossman . Clickjacking , 2008 . R. Hansen and J. Grossman. Clickjacking, 2008.
  9. 10.1007/978-3-319-20550-2_14 · DOI
  10. B. Hayak . Same origin method execution (some): Exploiting a callback for same origin policy bypass , 2014 . B. Hayak. Same origin method execution (some): Exploiting a callback for same origin policy bypass, 2014.
  11. 10.1145/2382196.2382276 · DOI
  12. 10.1145/2508859.2516723 · DOI
  13. E. Homakov . Using content-security-policy for evil , 2014 . E. Homakov. Using content-security-policy for evil, 2014.
  14. 10.1145/1242572.1242654 · DOI
  15. 10.1016/j.jisa.2014.03.007 · DOI
  16. 10.1109/SP.2006.29 · DOI
  17. A. Klein . Dom based cross site scripting or xss of the third kind . Web Application Security Consortium Articles 4, 2005 . A. Klein. Dom based cross site scripting or xss of the third kind. Web Application Security Consortium Articles 4, 2005.
  18. 10.1145/2508859.2516703 · DOI
  19. 10.1109/SP.2009.33 · DOI
  20. Y. Nadji , P. Saxena , and D. Song . Document structure integrity: A robust basis for cross-site scripting defense . In NDSS , 2009 . Y. Nadji, P. Saxena, and D. Song. Document structure integrity: A robust basis for cross-site scripting defense. In NDSS, 2009.
  21. 10.1145/1455770.1455783 · DOI
  22. K. Patil and B. Frederik . A measurement study of the content security policy on real-world applications. International Journal of Network Security , 2016 . K. Patil and B. Frederik. A measurement study of the content security policy on real-world applications. International Journal of Network Security, 2016.
  23. D. Ross . IE 8 xss filter architecture/implementation. Blog: http://goo.gl/eOiPsI , 2008 . D. Ross. IE 8 xss filter architecture/implementation. Blog: http://goo.gl/eOiPsI, 2008.
  24. P. Saxena , S. Hanna , P. Poosankam , and D. Song . Flax: Systematic discovery of client-side validation vulnerabilities in rich web applications . In NDSS , 2010 . P. Saxena, S. Hanna, P. Poosankam, and D. Song. Flax: Systematic discovery of client-side validation vulnerabilities in rich web applications. In NDSS, 2010.
  25. W. Security . Website security statistics report , May 2013 . W. Security. Website security statistics report, May 2013.
  26. 10.1145/1772690.1772784 · DOI
  27. B. Sterne . Creating a safer web with content security policy , 2011 . B. Sterne. Creating a safer web with content security policy, 2011.
  28. B. Stock , S. Lekies , T. Mueller , P. Spiegel , and M. Johns . Precise client-side protection against dom-based cross-site scripting . In USENIX Security , 2014 . B. Stock, S. Lekies, T. Mueller, P. Spiegel, and M. Johns. Precise client-side protection against dom-based cross-site scripting. In USENIX Security, 2014.
  29. P. Vogt , F. Nentwich , N. Jovanovic , E. Kirda , C. Kruegel , and G. Vigna . Cross site scripting prevention with dynamic data tainting and static analysis . In NDSS , 2007 . P. Vogt, F. Nentwich, N. Jovanovic, E. Kirda, C. Kruegel, and G. Vigna. Cross site scripting prevention with dynamic data tainting and static analysis. In NDSS, 2007.
  30. 10.1145/1368088.1368112 · DOI
  31. D. Wichers . Owasp top-10 2013 . OWASP Foundation , February, 2013. D. Wichers. Owasp top-10 2013. OWASP Foundation, February, 2013.
  32. M. Zalewski . Postcards from the post-xss world. Online at http://lcamtuf.coredump.cx/postxss , 2011 . M. Zalewski. Postcards from the post-xss world. Online at http://lcamtuf.coredump.cx/postxss, 2011.
  33. M. Zalewski . The subtle / deadly problem with csp. Online at http://goo.gl/sK4w7q , 2011 . M. Zalewski. The subtle / deadly problem with csp. Online at http://goo.gl/sK4w7q, 2011.

Cited by

See all 98

Metadata

Authors
Weichselbaum, L., Spagnuolo, M., Lekies, S., & Janc, A.
Affiliations
Google (Switzerland) (CH)
Venue
Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security
Publisher
ACM
Published
2016-10-24
Pages
1376-1387
ISSN
1543-7221 (ISSN-L)
OpenAlex
W2510134782
Cited by
98
References
0
Citations by year
2026: 5 · 2025: 12 · 2024: 9 · 2023: 9 · 2022: 4 · 2021: 12 · 2020: 12 · 2019: 10 · 2018: 16 · 2017: 9
FWCI
9.91
Type
conference paper
Language
en
Open access
Locations
ACM SIGSAC Conference on Computer and Communications Security (CCS) (publishedVersion, cc-by-nc-sa)
Topics
  • Physical Sciences › Computer Science › Information Systems › Web Application Security Vulnerabilities
  • Physical Sciences › Computer Science › Hardware and Architecture › Security and Verification in Computing
  • Physical Sciences › Computer Science › Information Systems › Information and Cyber Security
Keywords
content security policy, cross-site scripting, web application security, threat model

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy. https://app.cochat.ai/papers/10.1145/2976749.2978363
The paper
Weichselbaum, L., Spagnuolo, M., Lekies, S., & Janc, A. (2016). CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security. https://doi.org/10.1145/2976749.2978363

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.