Study of JavaScript Static Analysis Tools for Vulnerability Detection in Node.js Packages
Tiago Brito, Mafalda Ferreira, Miguel Monteiro et al. · IEEE Transactions on Reliability · 2023
With the emergence of the Node.js ecosystem, JavaScript has become a widely used programming language for implementing server-side web applications. In this article, we present the first empirical study of static code analysis tools for detecting vulnerabilities in Node.js code. To conduct a comprehensive tool evaluation, we created the largest known curated dataset of Node.js code vulnerabilities. We characterized and annotated a set of 957 vulnerabilities by analyzing information contained innpmadvisory reports. We tested nine different tools and found that many important vulnerabilities appearing in the OWASP top-10 are not detected by any tool. The three best performing tools combined only detect up to 57.6% of all vulnerabilities in the dataset, but at a very low precision of 0.11%. Our curated dataset offers a new benchmark to help characterize existing Node.js code vulnerabilities and foster the development of better vulnerability detection tools for Node.js code.
Cited by 29 works. doi:10.1109/tr.2023.3286301 Open-access PDF
Authors
References
- Modeling and Discovering Vulnerabilities with Code Property Graphs
- Automatic creation of SQL Injection and cross-site scripting attacks
- Type Analysis for JavaScript
- Multi-module vulnerability analysis of web-based applications
- Leveraging User Interactions for In-Depth Testing of Web Applications
- 25 million flows later
- Thou Shalt Not Depend on Me: Analysing the Use of Outdated JavaScript Libraries on the Web
- Why do developers use trivial packages? an empirical case study on npm
- SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Efficient and Flexible Discovery of PHP Application Vulnerabilities