~/talk

Architecting Fortresses: A Deep Dive into Advanced Security Measures for ReactJS Apps

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [react, security]
slides:none on file

React's JSX escaping is not a silver bullet: JavaScript URLs in hrefs and active attributes still execute, dangerouslySetInnerHTML with raw input and embedding JSON via JSON.stringify lead to XSS, and styled-components can allow CSS injection. Concrete defenses: validate/sanitize/escape every incoming variable, sanitize HTML with DomPurify, escape CSS with css.escape, block non-http(s) protocols, lazy-load admin code to avoid leaking endpoints, run linters and dependency scans (retire.js / npm audit), and log critical security events.

AI-written summary · about

  1. 0:00Start
  2. 5:01Cross Site Scripting
  3. 17:44Rendering HTML
  4. 22:40Dangerous Styles
  5. 33:54Insecure Client-Side Logging
  6. 38:28Insecure Server-Side Rendering
~/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.