~/talk

Building Secure ReactJS Applications: Mastering Advanced Security Techniques

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [security, react]
slides:none on file

Covers concrete fixes: stop putting access control in the client, never embed secrets, and treat URLs as the biggest real-world risk (Google sees ~1/3 of attacks from untrusted URLs); cites incidents like British Airways (≈380,000 cards), Fortnite (≈200M users) and eBay URL exploits. Recommends explicit URL validation (allow only https), sanitize HTML with DOMPurify before using dangerouslySetInnerHTML, use CSS.escape for injected styles, run eslint/npm audit/retire.js, and prefer server checks, lazy loading and strict redirect allow‑lists.

AI-written summary · about

  1. 0:00React security challenges
  2. 3:17Security domains in React
  3. 7:30Anti-patterns in React code
  4. 10:25XSS attacks and risks
  5. 19:16Defending against XSS
  6. 23:34Validation sanitization encoding
  7. 25:00Securing dangerous URLs
  8. 29:21Safe HTML rendering
  9. 33:16JSON performance patterns
  10. 35:47Preventing CSS injection
  11. 38:58Safe DOM with refs
  12. 41:28Access control in React
  13. 43:58Auditing React libraries
  14. 46:52Preventing open redirects
  15. 49:39Insecure server-side rendering pitfalls
  16. 52:07Secure client-side logging
  17. 53:11CSP best practices
  18. 55:22Automated security checks
~/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.