{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,19]],"date-time":"2026-09-19T09:05:28Z","timestamp":1789808728809,"version":"4.0.1"},"reference-count":36,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2018,1,27]],"date-time":"2018-01-27T00:00:00Z","timestamp":1517011200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"MIUR project ADAPT"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Web"],"published-print":{"date-parts":[[2018,5,31]]},"abstract":"<jats:p>Content Security Policy (CSP) is a recent W3C standard introduced to prevent and mitigate the impact of content injection vulnerabilities on websites. In this article, we introduce a formal semantics for the latest stable version of the standard, CSP Level 2. We then perform a systematic, large-scale analysis of the effectiveness of the current CSP deployment, using the formal semantics to substantiate our methodology and to assess the impact of the detected issues. We focus on four key aspects that affect the effectiveness of CSP: browser support, website adoption, correct configuration, and constant maintenance. Our analysis shows that browser support for CSP is largely satisfactory, with the exception of a few notable issues. However, there are several shortcomings relative to the other three aspects. CSP appears to have a rather limited deployment as yet and, more crucially, existing policies exhibit a number of weaknesses and misconfiguration errors. Moreover, content security policies are not regularly updated to ban insecure practices and remove unintended security violations. We argue that many of these problems can be fixed by better exploiting the monitoring facilities of CSP, while other issues deserve additional research, being more rooted into the CSP design.<\/jats:p>","DOI":"10.1145\/3149408","type":"journal-article","created":{"date-parts":[[2018,1,29]],"date-time":"2018-01-29T13:48:05Z","timestamp":1517233685000},"page":"1-36","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":35,"title":["Semantics-Based Analysis of Content Security Policy Deployment"],"prefix":"10.1145","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9179-8270","authenticated-orcid":false,"given":"Stefano","family":"Calzavara","sequence":"first","affiliation":[{"name":"Universit\u00e0 Ca\u2019 Foscari Venezia, Via Torino, Venezia Mestre (Italy)"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alvise","family":"Rabitti","sequence":"additional","affiliation":[{"name":"Universit\u00e0 Ca\u2019 Foscari Venezia, Via Torino, Venezia Mestre (Italy)"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Michele","family":"Bugliesi","sequence":"additional","affiliation":[{"name":"Universit\u00e0 Ca\u2019 Foscari Venezia, Via Torino, Venezia Mestre (Italy)"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2018,1,27]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2010.27"},{"key":"e_1_2_1_2_1","volume-title":"Retrieved","year":"2016","unstructured":"Alexa. 2016 . Alexa top sites . Retrieved November 26, 2017 from http:\/\/www.alexa.com\/topsites. Alexa. 2016. Alexa top sites. Retrieved November 26, 2017 from http:\/\/www.alexa.com\/topsites."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.17487\/rfc6454"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976749.2978338"},{"key":"e_1_2_1_5_1","volume-title":"USENIX Security Symposium. 695--712","author":"Calzavara Stefano","year":"2017","unstructured":"Stefano Calzavara , Alvise Rabitti , and Michele Bugliesi . 2017 . CCSP: Controlled relaxation of content security policies by runtime policy composition . In USENIX Security Symposium. 695--712 . Stefano Calzavara, Alvise Rabitti, and Michele Bugliesi. 2017. CCSP: Controlled relaxation of content security policies by runtime policy composition. In USENIX Security Symposium. 695--712."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2754933"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-27659-5_25"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.cose.2011.12.004"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-20550-2_14"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.5555\/2699784.2699788"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/2771783.2771789"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/1242572.1242654"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jisa.2014.03.007"},{"key":"e_1_2_1_14_1","doi-asserted-by":"crossref","unstructured":"Michael Kranch and Joseph Bonneau. 2015. Upgrading HTTPS in mid-air: An empirical study of strict transport security and key pinning. In NDSS.  Michael Kranch and Joseph Bonneau. 2015. Upgrading HTTPS in mid-air: An empirical study of strict transport security and key pinning. In NDSS.","DOI":"10.14722\/ndss.2015.23162"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2508859.2516703"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1002\/sec.1562"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2009.33"},{"key":"e_1_2_1_18_1","unstructured":"Yacin Nadji Prateek Saxena and Dawn Song. 2009. Document structure integrity: A robust basis for cross-site scripting defense. In NDSS.  Yacin Nadji Prateek Saxena and Dawn Song. 2009. Document structure integrity: A robust basis for cross-site scripting defense. In NDSS."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2382196.2382274"},{"key":"e_1_2_1_20_1","volume-title":"Retrieved","author":"OWASP.","year":"2013","unstructured":"OWASP. 2013 . OWASP Top 10 Threats . Retrieved November 26, 2017 from https:\/\/www.owasp.org\/index.php\/Top_10_2013-Top_10. OWASP. 2013. OWASP Top 10 Threats. Retrieved November 26, 2017 from https:\/\/www.owasp.org\/index.php\/Top_10_2013-Top_10."},{"key":"e_1_2_1_21_1","volume-title":"Retrieved","author":"OWASP.","year":"2017","unstructured":"OWASP. 2017 . XSS Prevention Cheat Sheet . Retrieved November 26, 2017 from https:\/\/www.owasp.org\/index.php\/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP. 2017. XSS Prevention Cheat Sheet. Retrieved November 26, 2017 from https:\/\/www.owasp.org\/index.php\/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976749.2978384"},{"key":"e_1_2_1_23_1","first-page":"383","article-title":"A measurement study of the content security policy on real-world applications","volume":"18","author":"Patil Kailas","year":"2016","unstructured":"Kailas Patil and Frederik Braun . 2016 . A measurement study of the content security policy on real-world applications . International Journal of Network Security 18 , 2, 383 -- 392 . Kailas Patil and Frederik Braun. 2016. A measurement study of the content security policy on real-world applications. International Journal of Network Security 18, 2, 383--392.","journal-title":"International Journal of Network Security"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3038912.3052634"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1772690.1772784"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2897845.2897899"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08593-7_8"},{"key":"e_1_2_1_28_1","volume-title":"Retrieved","author":"C.","year":"2012","unstructured":"W3 C. 2012 . Content Security Policy 1.0 . Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/2012\/CR-CSP-20121115\/. W3C. 2012. Content Security Policy 1.0. Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/2012\/CR-CSP-20121115\/."},{"key":"e_1_2_1_29_1","volume-title":"Retrieved","author":"C.","year":"2015","unstructured":"W3 C. 2015 . Content Security Policy Level 2 . Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/CSP2\/. W3C. 2015. Content Security Policy Level 2. Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/CSP2\/."},{"key":"e_1_2_1_30_1","volume-title":"Retrieved","author":"C.","year":"2015","unstructured":"W3 C. 2015 . Mixed content . Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/mixed-content\/. W3C. 2015. Mixed content. Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/mixed-content\/."},{"key":"e_1_2_1_31_1","volume-title":"Retrieved","author":"C.","year":"2015","unstructured":"W3 C. 2015 . Upgrade Insecure Requests . Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/upgrade-insecure-requests\/. W3C. 2015. Upgrade Insecure Requests. Retrieved November 26, 2017 from https:\/\/www.w3.org\/TR\/upgrade-insecure-requests\/."},{"key":"e_1_2_1_32_1","volume-title":"Retrieved","author":"C.","year":"2016","unstructured":"W3 C. 2016 . Content Security Policy Level 3 . Retrieved November 26, 2017 from https:\/\/w3c.github.io\/webappsec-csp\/. W3C. 2016. Content Security Policy Level 3. Retrieved November 26, 2017 from https:\/\/w3c.github.io\/webappsec-csp\/."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976749.2978363"},{"key":"e_1_2_1_34_1","unstructured":"Joel Weinberger Adam Barth and Dawn Song. 2011. Towards client-side HTML security policies. In HotSec.   Joel Weinberger Adam Barth and Dawn Song. 2011. Towards client-side HTML security policies. In HotSec."},{"key":"e_1_2_1_35_1","volume-title":"Robertson","author":"Weissbacher Michael","year":"2014","unstructured":"Michael Weissbacher , Tobias Lauinger , and William K . Robertson . 2014 . Why is CSP failing? Trends and challenges in CSP adoption. In RAID. 212--233. Michael Weissbacher, Tobias Lauinger, and William K. Robertson. 2014. Why is CSP failing? Trends and challenges in CSP adoption. In RAID. 212--233."},{"key":"e_1_2_1_36_1","volume-title":"Retrieved","author":"West Mike","year":"2015","unstructured":"Mike West . 2015 . An introduction to Content Security Policy . Retrieved November 26, 2017 from http:\/\/www.html5rocks.com\/en\/tutorials\/security\/content-security-policy\/. Mike West. 2015. An introduction to Content Security Policy. Retrieved November 26, 2017 from http:\/\/www.html5rocks.com\/en\/tutorials\/security\/content-security-policy\/."}],"container-title":["ACM Transactions on the Web"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3149408","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3149408","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T02:11:07Z","timestamp":1750212667000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3149408"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018,1,27]]},"references-count":36,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2018,5,31]]}},"alternative-id":["10.1145\/3149408"],"URL":"https:\/\/doi.org\/10.1145\/3149408","relation":{},"ISSN":["1559-1131","1559-114X"],"issn-type":[{"value":"1559-1131","type":"print"},{"value":"1559-114X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,1,27]]},"assertion":[{"value":"2017-03-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2017-10-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2018-01-27","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}