Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 1.39 KB

README.md

File metadata and controls

9 lines (6 loc) · 1.39 KB

node-cure-outreach

In section 7 of our paper we described our efforts at outreach to the Node.js community.

Here are links to those efforts.

  1. We wrote a guide for nodejs.org. Our guide describes how to avoid Event Handler Poisoning attacks in Node.js. Our pull request benefited from helpful feedback from community members.
  2. We partitioned the implementation of fs.readFile in the core fs module. Before our change, fs.readFile would stat the file and then submit a single read spanning the entire file. If the file were large, this would block the Worker Pool. Our pull request partitions the read into chunks, with the same overall memory cost but improved sharing of the Worker Pool. The pull request was accepted after a months-long discussion on the performance-security tradeoff involved.
  3. We documented several "Vulnerable APIs", potential DoS vectors among the core APIs. These include fs.readFile (before our patch), crypto.randomBytes and crypto.randomFill, and child_process.spawn.