~/talk

Node.js Security: Breaking The Loop

Talkat jsDay 2018 · on Thursday, 2018-05-10· [security, nodejs]
slides:none on file

Shows concrete attacks and fixes: npm packages with destructive install scripts and typosquatting, a malicious module exfiltrating environment variables, and a documented compromise of 14 packages representing ~20% of npm downloads. Demonstrates NoSQL injection via body-parser sending {$gt: ...} to MongoDB, catastrophic backtracking in regex blocking Node’s event loop, bypass of popular markdown parser marked, and practical fixes using content security policy, helmet, and the vulnerability scanner Snyk with CI integration.

AI-written summary · about

  1. 0:00Start
  2. 0:45Node.js Security: Breaking The Loop
  3. 3:23The Magical 2010
  4. 4:00Node.js is JavaScript JavaScript is Everywhere
  5. 5:52validator.js helps validate and sanitize strings
  6. 16:28Securing Express
  7. 20:56noSQL Injections
  8. 25:46Validate Input Validata Length and Type
  9. 26:15Regular Expressions
  10. 32:44Regex DoS is a Real Problem
  11. 33:28DO NOT WRITE YOUR OWN REGEX
  12. 34:36Best Practice 4 safe-regex node.js module checks regex complexity backtracking vulnerably
  13. 35:23Secure Dependencies Management
  14. 36:20Who takes care of the risk for those packages?
  15. 39:55Are my dependencies vulnerable?
  16. 45:07check cve do for known Issues
  17. 45:31Security Ops Integrated Security into your build pipeline
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.