~/talk

Writing Secure JavaScript Code

Talkat View Source 2017 · on Friday, 2017-10-27· [security, javascript]
slides:none on file

Demo app uses popular npm modules and shows concrete exploits: marked XSS via HTML entity decoding, ms regular‑expression ReDoS that freezes the Node event loop, and NoSQL injection by sending an object as a JSON password, plus a Dust.js path that leads to server‑side command execution. Exploits run with curl/httpie against the demo and a Snyk‑style dependency scan reveals about one in seven libraries carry vulnerabilities. Fixes are upgrades, patches or CI/blocking on vulnerability pull requests; automated alerts speed remediation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:48What makes JavaScript great
  3. 10:51MS Vulnerability
  4. 13:39Regular Expressions
  5. 14:11The Event Loop
  6. 15:23Catastrophic Backtracking
  7. 17:11Redose
  8. 18:41Attack Manipulation
  9. 20:24JSON as Input
  10. 22:51Type Manipulation
  11. 23:51DustJS
  12. 24:46About Page
  13. 25:18Playing with About Page
  14. 27:18Wrapping Up
  15. 27:45Takeaways
  16. 28:12Libraries have bugs
  17. 28:56Microsoft Sonar and Lighthouse
  18. 29:52Upgrade
~/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.