~/talk

CSP Analysis - Attacking XSS Mitigation

Talkat BSides London 2014 · on Tuesday, 2014-04-29· [web-platform, security]
links:none on file
slides:none on file

Content Security Policy enforces whitelists, blocks inline JS/CSS and eval/new Function, and sends violation reports to a report-uri; tests show CSP stops plain XSS in most cases but can be bypassed only when another flaw exists. Practical bypasses demonstrated: meta refresh with base64 payload (HTML meta executes encoded JS), utf-7 JSON injection that fools older Firefox versions, image-uploaded text served as .jpg executed by Firefox, and CRLF header injection to append a permissive CSP header on vulnerable servers; each exploit requires a separate server/client weakness.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04What is CSP
  3. 2:49CSP limitations and blocks
  4. 5:36Is CSP worth implementing
  5. 6:17Bypassing CSP with encoding
  6. 8:06Injecting into JS files
  7. 9:10JSON injection attacks
  8. 12:41Uploading malicious images
  9. 13:45CRLF injection bypass
  10. 16:14CSP effectiveness and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.