~/talk

Friend or Foe? TypeScript Security Fallacies

Talkat Voxxed Days Bucharest 2025 · on Thursday, 2025-03-27· [typescript, security]
slides:none on file

TypeScript gives compile‑time safety but not runtime guarantees: an Express + TypeScript demo app shows how HTTP parameter pollution lets arrays masquerade as strings, how a real template‑engine bug found by fuzzing netted a $10,000 bounty, and how prototype pollution and mass‑assignment can bypass schemas so Zod bypass is practical unless code explicitly rejects magic keys; the demos run end‑to‑end, the vulnerable patterns reproduce, and a Sneak extension flags some of the unsafe cases.

AI-written summary · about

  1. 0:00TypeScript security concerns
  2. 1:03Types and security pitfalls
  3. 3:51False trust in TypeScript
  4. 7:05HTTP parameter pollution
  5. 9:34False security in apps
  6. 11:43Bypass type juggling
  7. 13:50String typing fails
  8. 15:36Secure typing with interfaces
  9. 17:00XSS and sanitization bypass
  10. 19:45TypeScript not a security tool
  11. 21:08TypeScript narrowing limits
  12. 22:34ZOD for schema enforcement
  13. 23:16Bypass prototype pollution
  14. 26:07Prototype pollution attacks
  15. 31:23Bypass mass assignment
  16. 34:58Library vulnerabilities and fixes
  17. 37:45Case study: doT.js engine
  18. 39:31Key takeaways
  19. 40:56Demo and resources
~/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.