Automatic web security unit testing
Mahmoud Mohammadi, Bill Chu, Heather Richter Lipford et al. · International Workshop on Automation of Software Test (AST) · 2016
Integrating security testing into the workflow of software developers not only can save resources for separate security testing but also reduce the cost of fixing security vulnerabilities by detecting them early in the development cycle. We present an automatic testing approach to detect a common type of Cross Site Scripting (XSS) vulnerability caused by improper encoding of untrusted data. We automatically extract encoding functions used in a web application to sanitize untrusted inputs and then evaluate their effectiveness by automatically generating XSS attack strings. Our evaluations show that this technique can detect 0-day XSS vulnerabilities that cannot be found by static analysis tools. We will also show that our approach can efficiently cover a common type of XSS vulnerability. This approach can be generalized to test for input validation against other types injections such as command line injection.
Cited by 23 works. doi:10.1145/2896921.2896929
Authors
References
- Extensible Markup Language (XML)
- Static detection of cross-site scripting vulnerabilities
- Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
- A Systematic Analysis of XSS Sanitization in Web Application Frameworks
- Secure coding — principles and practices
- Automatic classification of cross-site scripting in web pages using document-based and URL-based features
- ASIDE
- XSS Vulnerability Detection Using Model Inference Assisted Evolutionary Fuzzing
- Context-sensitive auto-sanitization in web templating languages using type qualifiers
- xJS: practical XSS prevention for web application development