extra credit Search 85,062 technologies ⌘K Download for Mac

OWASP XSS Prevention Cheat Sheets

Category
OWASP
Docs outline
10 sections

Official docs outline

cheatsheetseries.owasp.org
  1. Cross Site Scripting Prevention

    Context-aware output encoding for HTML, attribute, JavaScript, CSS and URL contexts.

  2. DOM based XSS Prevention

    Safe DOM sinks, textContent and untrusted data in client-side code.

  3. DOM Clobbering Prevention

    Preventing DOM clobbering via named elements.

  4. XSS Filter Evasion

    Payload obfuscation techniques that bypass naive filters.

  5. Content Security Policy

    CSP nonces, hashes, strict-dynamic and report-only rollout.

  6. HTML5 Security

    postMessage, WebSockets, CORS, sandboxed iframes and web storage.

  7. Clickjacking Defense

    frame-ancestors, X-Frame-Options and SameSite cookies.

  8. XS Leaks

    Cross-site leak side channels and mitigations.

  9. HTTP Headers

    Security response headers such as CSP, HSTS, nosniff and Referrer-Policy.

  10. Third Party JavaScript Management

    Subresource Integrity and third-party script risk.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 33
↑↓ move ↵ open