Visible to the public Systematic Generation of XSS and SQLi Vulnerabilities in PHP as Test Cases for Static Code Analysis

TitleSystematic Generation of XSS and SQLi Vulnerabilities in PHP as Test Cases for Static Code Analysis
Publication TypeConference Paper
Year of Publication2022
AuthorsSchuckert, Felix, Langweg, Hanno, Katt, Basel
Conference Name2022 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW)
KeywordsBenchmark testing, codes, composability, Conferences, Cross Site Scripting, Human Behavior, PHP, pubcrawl, Resiliency, Software Testing, Solids, SQL Injection, static code analysis, Systematics, test suite
AbstractSynthetic 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.
DOI10.1109/ICSTW55395.2022.00053
Citation Keyschuckert_systematic_2022