Detecting Cross-Site Scripting Vulnerability Using Concolic Testing
Michelle Ruse, Samik Basu · International Conference on Information Technology: New Generations · 2013
Cross-Site Scripting (XSS) attack is a type of Web-based attack wherein a malicious script is executed (from an immediate injection or from a stored source) to steal information or gain unauthorized access to user/system resources. We propose a two-phase technique to detect XSS vulnerabilities and prevent XSS attacks. In the first phase, we translate the Web application to a language for which recently developed concolic testing tools are available. Our translation also identifies input and output variables that are used to generate test cases for determining input/output dependencies in the application. Dependencies indicate vulnerabilities in the application that can be potentially exploited when the application is deployed. In the second phase, based on the input/output dependencies determined in the first phase, we appropriately (automatically) instrument the application code by including monitors. The monitors check exploitation of vulnerabilities at runtime. In addition to being both as efficient and effective as the available XSS attack detection techniques, our two-phase method is also capable of identifying XSS vulnerabilities that occur due to (a) conditional copy (of inputs to outputs) and (b) construction of malicious string inputs from the concatenation of singularly benign inputs. We present a prototype implementation of our framework and demonstrate its effectiveness using non-trivial JSP Web applications.
Cited by 21 works. doi:10.1109/itng.2013.97
Authors
References
- Cross Site Scripting Prevention with Dynamic Data Tainting and Static Analysis.
- Noxes
- Defeating script injection attacks with browser-enforced embedded policies
- Automatic creation of SQL Injection and cross-site scripting attacks
- CUTE and jCUTE: Concolic Unit Testing and Explicit Path Model-Checking Tools
- Neural-Network Based Test Cases Generation Using Genetic Algorithm
- Testing and Comparing Web Vulnerability Scanning Tools for SQL Injection and XSS Attacks
- Automatic generation of XSS and SQL injection attacks with goal-directed model checking
- Finding bugs in dynamic web applications
- Blueprint: Robust Prevention of Cross-site Scripting Attacks for Existing Browsers