USENIX Security2021Top-tier venue
Abusing Hidden Properties to Attack the Node.js Ecosystem
Feng Xiao, Jianwei Huang, Yichang Xiong, Guangliang Yang, Hong Hu, Guofei Gu, Wenke Lee
Abstract
Nowadays, Node.js has been widely used in the development of server-side and desktop programs (e.g., Skype), with its cross-platform and high-performance execution environment of JavaScript. In past years, it has been reported other dynamic programming languages (e.g., PHP and Ruby) are unsafe on sharing objects. However, this security risk is not well studied and understood in JavaScript and Node.js programs. In this paper, we fill the gap by conducting the first systematic study on the communication process between client-and server-side code in Node.js programs. We extensively identify several new vulnerabilities in popular Node.js programs. To demonstrate their security implications, we design and develop a novel feasible attack, named hidden property abusing (HPA). Our further analysis shows HPA attacks are subtly different from existing findings regarding exploitation and attack effects. Through HPA attacks, a remote web attacker may obtain dangerous abilities, such as stealing confidential data, bypassing security checks, and launching DoS (Denial of Service) attacks. To help Node.js developers vet their programs against HPA, we design a novel vulnerability detection and verification tool, named LYNX, that utilizes hybrid program analysis to automatically reveal HPA vulnerabilities and even synthesize exploits. We apply LYNX on a set of widely-used Node.js programs and identify 15 previously unknown vulnerabilities. We have reported all of our findings to the Node.js community. 10 of them have been assigned with CVE, and 8 of them are rated as "Critical" or "High" severity. This indicates HPA attacks can cause serious security threats.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
22 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Undefined-oriented Programming: Detecting and Chaining Prototype Pollution Gadgets in Node.js Template Engines for Malicious Consequences cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript
- Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Unveiling the Invisible: Detection and Evaluation of Prototype Pollution Gadgets with Dynamic Taint Analysis cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Unveiling the Invisible: Detection and Evaluation of Prototype Pollution Gadgets with Dynamic Taint Analysis cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Small World with High Risks: A Study of Security Threats in the npm Ecosystem cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Small World with High Risks: A Study of Security Threats in the npm Ecosystem cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
Cited by top-tier papers22
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScriptMasudul Hasan Masud Bhuiyan, Adithya Srinivas Parthasarathy, Nikos Vasilakis, Michael Pradel et al.ICSE 2023 · 20 citations
- Undefined-oriented Programming: Detecting and Chaining Prototype Pollution Gadgets in Node.js Template Engines for Malicious ConsequencesZhengyu Liu, Kecheng An, Yinzhi CaoS&P 2024 · 17 citations
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency GraphsMafalda Ferreira, Miguel Monteiro, Tiago Brito, Miguel E. Coimbra et al.PLDI 2024 · 13 citations
- Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security ImplicationsJeremy Rack, Cristian-Alexandru StaicuCCS 2023 · 11 citations
- Unveiling the Invisible: Detection and Evaluation of Prototype Pollution Gadgets with Dynamic Taint AnalysisMikhail Shcherbakov, Paul Moosbrugger, Musard BalliuWWW 2024 · 8 citations
Builds on9
- Data-Oriented Programming: On the Expressiveness of Non-control Data AttacksHong Hu, Shweta Shinde, Sendroiu Adrian, Zheng Leong Chua et al.S&P 2016 · 420 citations
- Small World with High Risks: A Study of Security Threats in the npm EcosystemMarkus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, Michael PradelUSENIX Security 2019 · 281 citations
- Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web ServersCristian-Alexandru Staicu, Michael PradelUSENIX Security 2018 · 125 citations
- SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JSCristian-Alexandru Staicu, Michael Pradel, Benjamin LivshitsNDSS 2018 · 91 citations
- Don't Trust The Locals: Investigating the Prevalence of Persistent Client-Side Cross-Site Scripting in the WildMarius Steffens, Christian Rossow, Martin Johns, Ben StockNDSS 2019 · 84 citations
Related papers
- Mining Node.js Vulnerabilities via Object Dependence Graph and QuerySong Li, Mingqing Kang, Jianwei Hou, Yinzhi CaoUSENIX Security 2022
- (In)Security of File Uploads in Node.jsHarun Oz, Abbas Acar, Ahmet Aris, Güliz Seray Tuncay et al.WWW 2024 · 6 citations
- Automated Exploit Generation for Node.js PackagesFilipe Marques, Mafalda Ferreira, André Nascimento, Miguel E. Coimbra et al.PLDI 2025 · 5 citations
- Extracting taint specifications for JavaScript librariesCristian-Alexandru Staicu, Martin Toldam Torp, Max Schäfer, Anders Møller et al.ICSE 2020 · 34 citations
- Silent Spring: Prototype Pollution Leads to Remote Code Execution in Node.jsMikhail Shcherbakov, Musard Balliu, Cristian-Alexandru StaicuUSENIX Security 2023
