~/talk

Let me show you how React applications get hacked in the real-world

Talkat Nordic.js 2022 · 2022-10-06..10-07· [security, javascript]
slides:none on file

Concrete exploits and demos show how React apps become XSS-prone: direct user data in attributes like href bypasses React’s default HTML encoding, control characters evade simple blocklists, and a real npm component (react-json-pretty had an XSS bug) exposes props-as-HTML. Live workflow uses a mock database, npm install / npm audit and Snyk tools including Snyk Advisor and a VS Code scanner, highlights that an npm install can pull ~79 packages from 39 maintainers, and recommends multiple scanners and automated upgrades.

AI-written summary · about

  1. 0:00React security risks
  2. 1:03Why React apps get hacked
  3. 3:30JavaScript npm supply chain risks
  4. 5:35XSS in React despite defaults
  5. 8:05Live demo: XSS vulnerabilities
  6. 12:04Href pitfalls and user input
  7. 14:15Flawed mitigation and testing gaps
  8. 17:12Takeaways from React flaws
  9. 18:38Vulnerable npm packages and JSON parsing
  10. 23:12Scanning dependencies with npm audit
  11. 25:19Exploiting a vulnerable React JSON package
  12. 27:04DangerouslySetInnerHTML XSS
  13. 29:55Avoiding XSS in React best practices
  14. 30:36React security learning resources
  15. 31:19Final takeaways and Q&A
~/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.