Exploiting Library Vulnerability via Migration Based Automating Test Generation
Open Access
- 12 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-12
Abstract
In software development, developers extensively utilize third-party libraries to avoid implementing existing functionalities. When a new third-party library vulnerability is disclosed, project maintainers need to determine whether their projects are affected by the vulnerability, which requires developers to invest substantial effort in assessment. However, existing tools face a series of issues: static analysis tools produce false alarms, dynamic analysis tools require existing tests and test generation tools have low success rates when facing complex vulnerabilities. Vulnerability exploits, as code snippets provided for reproducing vulnerabilities after disclosure, contain a wealth of vulnerability-related information. This study proposes a new method based on vulnerability exploits, called Vesta (Vulnerability Exploit-based Software Testing Auto-Generator), which provides vulnerability exploit tests as the basis for developers to decide whether to update dependencies. Vesta extends the search-based test generation methods by adding a migration step, ensuring the similarity between the generated test and the vulnerability exploit, which increases the likelihood of detecting potential library vulnerabilities in a project. We perform experiments on 30 vulnerabilities disclosed in the past five years, involving 60 vulnerability-project pairs, and compare the experimental results with the baseline method, Transfer. The success rate of Vesta is 71.7% which is a 53.4% improvement over Transfer in the effectiveness of verifying exploitable vulnerabilities.Keywords
All Related Versions
Funding Information
- Fundamental Research Funds for the Central Universities (No. 226-2022-00064)
- National Natural Science Foundation of China (No. 62141222)
- National Research Foundation (NRF-NRFI08-2022-0002)
This publication has 39 references indexed in Scilit:
- AngErza: Automated Exploit Generation2021
- Toward Automated Exploit Generation for Known Vulnerabilities in Open-Source Libraries2021
- Detection, assessment and mitigation of vulnerabilities in open source dependenciesEmpirical Software Engineering, 2020
- A Large-Scale Empirical Study on Industrial Fake Apps2019
- Identifying, Prioritizing and Evaluating Vulnerabilities in Third Party Code2018
- Can automated pull requests encourage software developers to upgrade out-of-date dependencies?2017
- Do developers update their library dependencies?Empirical Software Engineering, 2017
- An Industrial Evaluation of Unit Test Generation: Finding Real Faults in a Financial Application2017
- How the Apache community upgrades dependencies: an evolutionary studyEmpirical Software Engineering, 2014
- Adoption of Software Testing in Open Source Projects--A Preliminary Study on 50,000 Projects2013