~/talk

The Past, Present, and Future of Cross-Site/Cross-Origin Request Forgery

Talkat NDC Security 2024 · 2024-01-09..01-10· [security, web-platform]
slides:none on file

Cross-site forgery is largely neutralized by SameSite cookies for typical cookie-auth apps, but APIs remain vulnerable because forms and fetch can deliver JSON-like payloads when servers accept wrong content types. Demos show form-encoded or fetch attacks creating reviews and messages; real incidents involve dangling CNAMEs and subdomain takeover. Defenses that actually work: synchronizer tokens for legacy apps, require exact Content-Type and use CORS preflight or a custom header enforcer (X-CSRF) + test endpoints to reject text/plain with JSON payloads.

AI-written summary · about

  1. 0:00Introduction to Cross-Site Request Forgery
  2. 1:10What is CSRF
  3. 5:23Live demo: CSRF attack
  4. 8:32Introduction
  5. 10:17Traditional CSRF defenses
  6. 13:48SameSite cookies
  7. 18:25Chrome's SameSite default impact
  8. 21:14CSRF in API apps
  9. 24:42Live demo: API CSRF
  10. 29:21CORF explained
  11. 33:19SameSite vs CORF
  12. 35:23Content-type vulnerabilities in APIs
  13. 42:01API defenses: CORS & headers
  14. 48:19Choosing CSRF defenses
  15. 50:48Key takeaways
~/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.