Lune

USENIX Security2018Top-tier venue

A Sense of Time for JavaScript and Node.js: First-Class Timeouts as a Cure for Event Handler Poisoning

James C. Davis, Eric R. Williamson, Dongyoon Lee

Abstract

The software development community is adopting the Event-Driven Architecture (EDA) to provide scalable web services, most prominently through Node.js. Though the EDA scales well, it comes with an inherent risk: the Event Handler Poisoning (EHP) Denial of Service attack. When an EDA-based server multiplexes many clients onto few threads, a blocked thread (EHP) renders the server unresponsive. EHP attacks are a serious threat, with hundreds of vulnerabilities already reported in the wild. We make three contributions against EHP attacks. First, we describe EHP attacks, and show that they are a common form of vulnerability in the largest EDA community, the Node.js ecosystem. Second, we design a defense against EHP attacks, first-class timeouts, which incorporates timeouts at the EDA framework level. Our Node.cure prototype defends Node.js applications against all known EHP attacks with overheads between 0% and 24% on real applications. Third, we promote EHP awareness in the Node.js community. We analyzed Node.js for vulnerable APIs and documented or corrected them, and our guide on avoiding EHP attacks is available on nodejs.org.

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.

26 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Detecting Node.js prototype pollution vulnerabilities via object lookup analysis cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Detecting Node.js prototype pollution vulnerabilities via object lookup analysis 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
  • Abusing Hidden Properties to Attack the Node.js Ecosystem cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Abusing Hidden Properties to Attack the Node.js Ecosystem cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Abusing Hidden Properties to Attack the Node.js Ecosystem cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Revealer: Detecting and Exploiting Regular Expression Denial-of-Service Vulnerabilities cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Extracting taint specifications for JavaScript libraries cites SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JS
  • Extracting taint specifications for JavaScript libraries cites BreakApp: Automated, Flexible Application Compartmentalization
  • Extracting taint specifications for JavaScript libraries cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Extracting taint specifications for JavaScript libraries 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 BreakApp: Automated, Flexible Application Compartmentalization
  • 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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. 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
  2. Detecting Node.js prototype pollution vulnerabilities via object lookup analysisSong Li, Mingqing Kang, Jianwei Hou, Yinzhi CaoFSE 2021 · 49 citations
  3. Abusing Hidden Properties to Attack the Node.js EcosystemFeng Xiao, Jianwei Huang, Yichang Xiong, Guangliang Yang et al.USENIX Security 2021 · 35 citations
  4. Extracting taint specifications for JavaScript librariesCristian-Alexandru Staicu, Martin Toldam Torp, Max Schäfer, Anders Møller et al.ICSE 2020 · 34 citations
  5. Revealer: Detecting and Exploiting Regular Expression Denial-of-Service VulnerabilitiesYinxi Liu, Mingxue Zhang, Wei MengS&P 2021 · 28 citations

Builds on3

  1. Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web ServersCristian-Alexandru Staicu, Michael PradelUSENIX Security 2018 · 125 citations
  2. SYNODE: Understanding and Automatically Preventing Injection Attacks on NODE.JSCristian-Alexandru Staicu, Michael Pradel, Benjamin LivshitsNDSS 2018 · 91 citations
  3. BreakApp: Automated, Flexible Application CompartmentalizationNikos Vasilakis, Ben Karel, Nick Roessler, Nathan Dautenhahn et al.NDSS 2018 · 66 citations

Related papers

  1. Loophole: Timing Attacks on Shared Event Loops in ChromePepe Vila, Boris KöpfUSENIX Security 2017 · 66 citations
  2. HODOR: Shrinking Attack Surface on Node.js via System Call LimitationWenya Wang, Xingwei Lin, Jingyi Wang, Wang Gao et al.CCS 2023 · 3 citations
  3. Race Detection for Event-Driven Node.js ApplicationsXiaoning Chang, Wensheng Dou, Jun Wei, Tao Huang et al.ASE 2021 · 6 citations
  4. NodeShield: Runtime Enforcement of Security-Enhanced SBOMs for Node.jsEric Cornelissen, Musard BalliuCCS 2025
  5. Silent Spring: Prototype Pollution Leads to Remote Code Execution in Node.jsMikhail Shcherbakov, Musard Balliu, Cristian-Alexandru StaicuUSENIX Security 2023
Dusk over the sea between two cliffs drawn in fine vertical lines