Mining Node.js Vulnerabilities via Object Dependence Graph and Query
Song Li, Mingqing Kang, Jianwei Hou, Yinzhi Cao
摘要
Node.js is a popular non-browser JavaScript platform that provides useful but sometimes also vulnerable packages. On one hand, prior works have proposed many program analysisbased approaches to detect Node.js vulnerabilities, such as command injection and prototype pollution, but they are specific to individual vulnerability and do not generalize to a wide range of vulnerabilities on Node.js. On the other hand, prior works on C/C++ and PHP have proposed graph querybased approaches, such as Code Property Graph (CPG), to efficiently mine vulnerabilities, but they are not directly applicable to JavaScript due to the language's extensive use of dynamic features. In the paper, we propose flow-and context-sensitive static analysis with hybrid branch-sensitivity and points-to information to generate a novel graph structure, called Object Dependence Graph (ODG), using abstract interpretation. ODG represents JavaScript objects as nodes and their relations with Abstract Syntax Tree (AST) as edges, and accepts graph queries-especially on object lookups and definitions-for detecting Node.js vulnerabilities. We implemented an open-source prototype system, called ODGEN, to generate ODG for Node.js programs via abstract interpretation and detect vulnerabilities. Our evaluation of recent Node.js vulnerabilities shows that ODG together with AST and Control Flow Graph (CFG) is capable of modeling 13 out of 16 vulnerability types. We applied ODGEN to detect six types of vulnerabilities using graph queries: ODGEN correctly reported 180 zero-day vulnerabilities, among which we have received 70 Common Vulnerabilities and Exposures (CVE) identifiers so far. * The author contributes to the paper when she is visiting JHU.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 46 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Undefined-oriented Programming: Detecting and Chaining Prototype Pollution Gadgets in Node.js Template Engines for Malicious Consequences 引用了 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 引用了 SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript 引用了 Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS 引用了 Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Cerberus: Query-driven Scalable Vulnerability Detection in OAuth Service Provider Implementations 引用了 SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Cerberus: Query-driven Scalable Vulnerability Detection in OAuth Service Provider Implementations 引用了 HideNoSeek: Camouflaging Malicious JavaScript in Benign ASTs
- HiddenCPG: Large-Scale Vulnerable Clone Detection Using Subgraph Isomorphism of Code Property Graphs 引用了 HideNoSeek: Camouflaging Malicious JavaScript in Benign ASTs
- Small World with High Risks: A Study of Security Threats in the npm Ecosystem 引用了 SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Small World with High Risks: A Study of Security Threats in the npm Ecosystem 引用了 Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- HideNoSeek: Camouflaging Malicious JavaScript in Benign ASTs 引用了 SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs 引用了 SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs 引用了 SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs 引用了 Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency Graphs 引用了 HideNoSeek: Camouflaging Malicious JavaScript in Benign ASTs
引用它的顶会 Paper46
- HiddenCPG: Large-Scale Vulnerable Clone Detection Using Subgraph Isomorphism of Code Property GraphsSeongil Wi, Sijae Woo, Joyce Jiyoung Whang, Sooel SonWWW 2022 · 27 次引用
- SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScriptMasudul Hasan Masud Bhuiyan, Adithya Srinivas Parthasarathy, Nikos Vasilakis, Michael Pradel 等ICSE 2023 · 20 次引用
- 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 次引用
- Efficient Static Vulnerability Analysis for JavaScript with Multiversion Dependency GraphsMafalda Ferreira, Miguel Monteiro, Tiago Brito, Miguel E. Coimbra 等PLDI 2024 · 13 次引用
- Cerberus: Query-driven Scalable Vulnerability Detection in OAuth Service Provider ImplementationsTamjid Al Rahat, Yu Feng, Yuan TianCCS 2022 · 12 次引用
它引用的 Paper16
- 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 次引用
- Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web ServersCristian-Alexandru Staicu, Michael PradelUSENIX Security 2018 · 125 次引用
- AdGraph: A Graph-Based Approach to Ad and Tracker BlockingUmar Iqbal, Peter Snyder, Shitong Zhu, Benjamin Livshits 等S&P 2020 · 112 次引用
- SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JSCristian-Alexandru Staicu, Michael Pradel, Benjamin LivshitsNDSS 2018 · 91 次引用
- HideNoSeek: Camouflaging Malicious JavaScript in Benign ASTsAurore Fass, Michael Backes, Ben StockCCS 2019 · 78 次引用
相关 Paper
- Automated Exploit Generation for Node.js PackagesFilipe Marques, Mafalda Ferreira, André Nascimento, Miguel E. Coimbra 等PLDI 2025 · 5 次引用
- Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js Taint-style VulnerabilityMingqing Kang, Yichao Xu, Song Li, Rigel Gjomemo 等S&P 2023
- Bullseye: Detecting Prototype Pollution in NPM Packages with Proof of Concept ExploitsTariq Houis, Shaoqi Jiang, Mohammad Mannan, Amr YoussefNDSS 2026 · 2 次引用
- Abusing Hidden Properties to Attack the Node.js EcosystemFeng Xiao, Jianwei Huang, Yichang Xiong, Guangliang Yang 等USENIX Security 2021 · 35 次引用
- Modular call graph construction for security scanning of Node.js applicationsBenjamin Barslev Nielsen, Martin Toldam Torp, Anders MøllerISSTA 2021 · 47 次引用
