AutoCSP: Automatically Retrofitting CSP to Web Applications
Authors:
- Mattia FazziniMFMattia Fazzini
- Prateek SaxenaPSPrateek Saxena
- Alessandro OrsoAOAlessandro Orso
- 1 May 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1 (02705257) , 336-346
Abstract
Web applications often handle sensitive user data, which makes them attractive targets for attacks such as cross-site scripting (XSS). Content security policy (CSP) is a content-restriction mechanism, now supported by all major browsers, that offers thorough protection against XSS. Unfortunately, simply enabling CSP for a web application would affect the application's behavior and likely disrupt its functionality. To address this issue, we propose AutoCSP, an automated technique for retrofitting CSP to web applications. AutoCSP (1) leverages dynamic taint analysis to identify which content should be allowed to load on the dynamically-generated HTML pages of a web application and (2) automatically modifies the server-side code to generate such pages with the right permissions. Our evaluation, performed on a set of real-world web applications, shows that AutoCSP can retrofit CSP effectively and efficiently.Keywords
This publication has 12 references indexed in Scilit:
- Mining SQL injection and cross site scripting vulnerabilities using hybrid program analysis2013
- Remedying the eval that men do2012
- TAJ2009
- Secure Content Sniffing for Web Browsers, or How to Stop Papers from Reviewing Themselves2009
- Automatic creation of SQL Injection and cross-site scripting attacks2009
- Static detection of cross-site scripting vulnerabilities2008
- WASP: Protecting Web Applications Using Positive Tainting and Syntax-Aware EvaluationIEEE Transactions on Software Engineering, 2008
- Defeating script injection attacks with browser-enforced embedded policies2007
- Precise alias analysis for static detection of web application vulnerabilities2006
- Pixy: a static analysis tool for detecting Web application vulnerabilities2006