~/talk

Do not let your React be injected

Talkat ReactNext 2024 · on Monday, 2024-06-24· [security, react]
slides:none on file

Explains that client-side XSS is real: third‑party CDN widgets can inject scripts that phish or deface pages, and React app vectors include dangerouslySetInnerHTML, eval and component props that accept HTML. Recommends enforcing CSP plus Trusted Types to sanitize inserted HTML, using nonces for SSR (Next.js automates this) and switching to build‑time CSS like zero-runtime CSS (Linaria) so styles land in files instead of requiring unsafe inline styles.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is XSS
  3. 3:33XSS attack examples
  4. 8:36XSS in React and fixes
  5. 10:43CSP protection
  6. 14:21CSP vs CSS-in-JS
  7. 18:45CSR and SSR solutions
  8. 23:01Summary and recommendations
~/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.