~/talk

Single Page Applications: Is your design secure?

Talkat OWASP AppSec USA 2018 · 2018-10-11..10-12· [security, frontend-architecture]
links:none on file
links:none on file
slides:none on file

Demonstrations show a simple script extracting tokens from Chrome storage and an XSS payload reading those tokens from storage to exfiltrate them, proving XSS in a tokenized SPA is game over. Scans flag Access-Control-Allow-Origin: but requests carry Authorization headers not cookies so wildcard CORS is often acceptable; Burp flags require manual validation. Practical guidance: use token-based authentication, store sensitive tokens in sessionStorage not localStorage*, deploy CSP as defense‑in‑depth while auditing any template or DOM APIs that bypass framework protections.

AI-written summary · about

  1. 0:00Introduction
  2. 0:35Why SPX
  3. 2:16Stateful vs Stateless
  4. 4:10JSON
  5. 6:13Cache Control
  6. 7:05Local Storage
  7. 10:27Resource Sharing
  8. 12:02Demo
  9. 16:15Crosssite scripting demo
  10. 18:14CSP
  11. 19:40Key takeaways
  12. 25:11HTTP only flag
  13. 28:07How to steal data
~/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.