Visible to the public Revealing Injection Vulnerabilities by Leveraging Existing Tests

TitleRevealing Injection Vulnerabilities by Leveraging Existing Tests
Publication TypeConference Paper
Year of Publication2020
AuthorsHough, Katherine, Welearegai, Gebrehiwet, Hammer, Christian, Bell, Jonathan
Conference Name2020 IEEE/ACM 42nd International Conference on Software Engineering (ICSE)
Date Publishedoct
KeywordsBenchmark testing, composability, injection attacks, Metrics, Open Source Software, Pathology, Production, pubcrawl, software engineering, static analysis, taint analysis, taint tracking, Test pattern generators, vulnerability testing
AbstractCode injection attacks, like the one used in the high-profile 2017 Equifax breach, have become increasingly common, now ranking \#1 on OWASP's list of critical web application vulnerabilities. Static analyses for detecting these vulnerabilities can overwhelm developers with false positive reports. Meanwhile, most dynamic analyses rely on detecting vulnerabilities as they occur in the field, which can introduce a high performance overhead in production code. This paper describes a new approach for detecting injection vulnerabilities in applications by harnessing the combined power of human developers' test suites and automated dynamic analysis. Our new approach, Rivulet, monitors the execution of developer-written functional tests in order to detect information flows that may be vulnerable to attack. Then, Rivulet uses a white-box test generation technique to repurpose those functional tests to check if any vulnerable flow could be exploited. When applied to the version of Apache Struts exploited in the 2017 Equifax attack, Rivulet quickly identifies the vulnerability, leveraging only the tests that existed in Struts at that time. We compared Rivulet to the state-of-the-art static vulnerability detector Julia on benchmarks, finding that Rivulet outperformed Julia in both false positives and false negatives. We also used Rivulet to detect new vulnerabilities.
Citation Keyhough_revealing_2020