Systematic Generation of XSS and SQLi Vulnerabilities in PHP as Test Cases for Static Code Analysis
Author
Abstract

Synthetic static code analysis test suites are important to test the basic functionality of tools. We present a framework that uses different source code patterns to generate Cross Site Scripting and SQL injection test cases. A decision tree is used to determine if the test cases are vulnerable. The test cases are split into two test suites. The first test suite contains 258,432 test cases that have influence on the decision trees. The second test suite contains 20 vulnerable test cases with different data flow patterns. The test cases are scanned with two commercial static code analysis tools to show that they can be used to benchmark and identify problems of static code analysis tools. Expert interviews confirm that the decision tree is a solid way to determine the vulnerable test cases and that the test suites are relevant.

Year of Publication
2022
Conference Name
2022 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW)
Google Scholar | BibTeX