Skip to content

In-depth lesson · XSS

Root causes

Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 151 to 200 of 2,345
  1. A cookie parameter was reflected into the HTML response without encoding or validation.

    Seen in 1 report
  2. A cookie value used in a CSP nonce was not sanitised and a POST parameter was reflected without encoding.

    Seen in 1 report
  3. A cookie value was inserted into a JavaScript context without JavaScript-aware encoding.

    Seen in 1 report
  4. A cookie value was interpolated into HTML without escaping while the anonymous cache key omitted that cookie.

    Seen in 1 report
  5. A cookie value was reflected into an HTML response without encoding.

    Seen in 1 report
  6. A cookie value was reflected into an inline JavaScript context without encoding, and the same parameter was accepted from the query string.

    Seen in 1 report
  7. A cookie value was treated as trusted configuration and concatenated into a script source URL without validation.

    Seen in 1 report
  8. A cookie-setting endpoint lacked origin checks and a cookie value was reflected into a noscript tag without encoding.

    Seen in 1 report
  9. A CSRF token cookie was shared across all subdomains and lacked the HttpOnly flag, so script on any subdomain could read it.

    Seen in 1 report
  10. A CSV file name was written into a JavaScript context without escaping.

    Seen in 1 report
  11. A custom header value was reflected into an HTML error page without encoding.

    Seen in 1 report
  12. A custom link renderer did not escape or validate the href value, so the sanitise option did not protect link targets.

    Seen in 1 report
  13. A custom post type's capabilities let low-privileged users set meta values that were echoed into HTML without sanitisation.

    Seen in 1 report
  14. A custom sanitiser callback lets tag-like strings through because library and browser parsing differ.

    Seen in 1 report
  15. A custom sanitiser regex did not account for newlines, so tags containing newlines bypassed it.

    Seen in 1 report
  16. A custom template helper echoes URL parameters into the page without HTML encoding.

    Seen in 1 report
  17. A data-disable-with attribute was not sanitised, letting injected HTML run when a link is clicked.

    Seen in 1 report
  18. A data: URI iframe inherited the parent's origin instead of a unique null origin.

    Seen in 1 report
  19. A denylist string filter was used instead of parser-based sanitisation, and user HTML was rendered through the trusted-HTML bypass.

    Seen in 1 report
  20. A dialog rendered titles as HTML without the sanitisation used elsewhere.

    Seen in 1 report
  21. A directory name was output without escaping.

    Seen in 1 report
  22. A document url field accepted a javascript: scheme and was rendered as a clickable link without scheme validation.

    Seen in 1 report
  23. A DOMPurify hook allowed all data-trix- attributes and the serializer applied attributes from data-trix-serialized-attributes without re-sanitising them.

    Seen in 1 report
  24. A fail-open logic error treated an empty digest list as success when the header contained only unsupported hash algorithms.

    Seen in 1 report
  25. A field meant to hold a number accepted arbitrary text and was placed into an HTML attribute without escaping.

    Seen in 1 report
  26. A file parameter was reflected without sanitisation and a second parameter could set the response content type to text/html.

    Seen in 1 report
  27. A filter ran after sanitisation and used naive string replacement, letting new attributes be introduced into an iframe.

    Seen in 1 report
  28. A fix whitelisted the SVG extension without sanitising the file content.

    Seen in 1 report
  29. A fixed text/html content type was set for all document responses instead of deriving it from the file type or forcing a download.

    Seen in 1 report
  30. A flaw in handling writes to window proxy properties let a page alter its own origin's port.

    Seen in 1 report
  31. A flaw in how the PDF viewer interacted with the same-origin policy allowed script injection into the local file context.

    Seen in 1 report
  32. A flawed regex in the inline-HTML step stripped legacy attributes from the body tag and could break already-sanitised HTML into an active event handler.

    Seen in 1 report
  33. A folder parameter was written into an HTML attribute without encoding or validation.

    Seen in 1 report
  34. A form field was inserted into a confirmation email without sanitisation, so raw HTML flowed into the message.

    Seen in 1 report
  35. A form reflected user input without sanitisation and the page lacked an X-Frame-Options header.

    Seen in 1 report
  36. A generic popup layout had HTML parsing enabled so user-supplied messages were rendered as raw HTML.

    Seen in 1 report
  37. A GET parameter was handed to a rendering method without output encoding.

    Seen in 1 report
  38. A GET parameter was reflected into the HTML response without escaping.

    Seen in 1 report
  39. A globally hardcoded synthetic registration ID combined with scope validation implemented only as debug assertions.

    Seen in 1 report
  40. A GraphQL mutation lacked ownership checks on the object being edited.

    Seen in 1 report
  41. A greedy regex removed more than intended and allowed attribute injection.

    Seen in 1 report
  42. A hand-written router treated a colon-containing query value as an absolute URL and inserted the AJAX response with .html() with no origin allow-list.

    Seen in 1 report
  43. A hardcoded token disabled malicious website blocking and the browser UI did not escape user input.

    Seen in 1 report
  44. A hidden editor relied only on a client-side feature flag for access control and rendered comments as raw HTML.

    Seen in 1 report
  45. A hidden form field was echoed into the response without output encoding.

    Seen in 1 report
  46. A hidden parameter was reflected into the HTML source without sanitising or encoding.

    Seen in 1 report
  47. A host check compared a registrable domain against a full host name so it never matched, and the provider copied URL options into embed HTML.

    Seen in 1 report
  48. A JSON response reflected a parameter without encoding and the browser rendered it as HTML.

    Seen in 1 report
  49. A leftover development script reference to a local webpack dev server was shipped to production.

    Seen in 1 report
  50. A library processed DOM elements after load without ignoring content inside contenteditable elements.

    Seen in 1 report