~/talk

Safeguarding Large-Scale Projects: Navigating TypeScript Security Pitfalls

Talkat Heapcon 2024 · 2024-11-07..11-08· [typescript, security]
links:none on file
slides:none on file

Large TypeScript codebases repeatedly show concrete, fixable failures: unsanitized HTML via dangerouslySetInnerHTML leads to XSS and the recommended mitigation is DOMPurify kept up to date; building links from user input allows javascript: schemes so validate schemes to only http/https; postMessage handlers must compare event.origin for equality not substring/regex; SSR preload JSON must escape </script>; merging user objects enables prototype pollution; catastrophic regex backtracking causes ReDoS; remove hard‑coded secrets and use secret managers.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:09JavaScript and TypeScript basics
  3. 10:14Common TypeScript security pitfalls
  4. 23:40PostMessage API security flaws
  5. 31:11Hardcoded secrets and takeaways
~/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.