Automated Test Generation from Vulnerability Signatures
Authors:
- Abdulbaki AydinAAAbdulbaki Aydin
- Muath AlkhalafMAMuath Alkhalaf
- Tevfik BultanTBTevfik Bultan
- 1 March 2014
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 21594848,p. 193-202
Abstract
Web applications need to validate and sanitize user inputs in order to avoid attacks such as Cross Site Scripting (XSS) and SQL Injection. Writing string manipulation code for input validation and sanitization is an error-prone process leading to many vulnerabilities in real-world web applications. Automata-based static string analysis techniques can be used to automatically compute vulnerability signatures (represented as automata) that characterize all the inputs that can exploit a vulnerability. However, there are several factors that limit the applicability of static string analysis techniques in general: 1) undesirability of static string analysis requires the use of approximations leading to false positives, 2) static string analysis tools do not handle all string operations, 3) dynamic nature of the scripting languages makes static analysis difficult. In this paper, we show that vulnerability signatures computed for deliberately insecure web applications (developed for demonstrating different types of vulnerabilities) can be used to generate test cases for other applications. Given a vulnerability signature represented as an automaton, we present algorithms for test case generation based on state, transition, and path coverage. These automatically generated test cases can be used to test applications that are not analyzable statically, and to discover attack strings that demonstrate how the vulnerabilities can be exploited.Keywords
This publication has 17 references indexed in Scilit:
- Finding your way in the testing jungle: a learning approach to web security testing2013
- A Symbolic Execution Framework for JavaScript2010
- HAMPI2009
- Dynamic test input generation for web applications2008
- Static detection of cross-site scripting vulnerabilities2008
- Sound and precise analysis of web applications for injection vulnerabilities2007
- A Practical String Analyzer by the Widening ApproachLecture Notes in Computer Science, 2006
- Widening Arithmetic AutomataLecture Notes in Computer Science, 2004
- Projected state machine coverage for software testingACM SIGSOFT Software Engineering Notes, 2002
- Depth-First Search and Linear Graph AlgorithmsSIAM Journal on Computing, 1972