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 251 to 300 of 2,345
  1. A response lacked a Content-Type header so the browser rendered a product title as HTML.

    Seen in 1 report
  2. A returnTo parameter accepted a javascript: value.

    Seen in 1 report
  3. A reversible encoding was treated as protection and the decoded value was written into HTML unencoded.

    Seen in 1 report
  4. A revision parameter was inserted into a file path without sanitisation, and folder names were later shown without HTML escaping.

    Seen in 1 report
  5. A rewind during inline processing stepped back into previously output elements that were assumed to be plain text.

    Seen in 1 report
  6. A rewrite rule proxied attacker-controllable content onto the application origin, tokens sat in localStorage, and the CSP allowed inline and same-origin scripts.

    Seen in 1 report
  7. A safe-html directive rendered the test case title without proper sanitisation.

    Seen in 1 report
  8. A sanitisation filter failed to handle a lesser-used styling attribute and inserted content into a JavaScript template string without escaping.

    Seen in 1 report
  9. A sanitise method allowed certain tags and marked output safe, so user HTML in the full name rendered instead of being escaped.

    Seen in 1 report
  10. A script accepted an arbitrary URL and rendered fetched content without restricting hosts, file types or sanitising output.

    Seen in 1 report
  11. A search parameter was embedded into a CSS block without escaping.

    Seen in 1 report
  12. A self-XSS in a settings page combined with a password-less email change enabled account takeover.

    Seen in 1 report
  13. A server-side fetcher did not restrict internal destinations.

    Seen in 1 report
  14. A sharing endpoint parameter changed from an integer to a string and was not sanitised before rendering.

    Seen in 1 report
  15. A shim read document.currentScript.src without accounting for DOM clobbering.

    Seen in 1 report
  16. A single world-bound promise resolver was cached on a context object shared across V8 worlds, and the bindings lacked a cross-context security check on the returned promise.

    Seen in 1 report
  17. A singleton caches one promise resolver across V8 contexts without checking the caller's script state.

    Seen in 1 report
  18. A special instructions parameter was not sanitised before rendering in the admin dashboard.

    Seen in 1 report
  19. A SQL error message reflected unsanitised input.

    Seen in 1 report
  20. A state management flaw in WebKit allowed scripts to escape their origin.

    Seen in 1 report
  21. A static CSRF token was hardcoded in client-side JavaScript instead of generated per session.

    Seen in 1 report
  22. A stored group name was rendered in the profile's group membership list without HTML encoding.

    Seen in 1 report
  23. A syntax highlighting filter builds HTML from unsanitised attributes and an emoji element inserts its name attribute unescaped.

    Seen in 1 report
  24. A tag-stripping function only removed HTML tags and did not neutralise JavaScript in attribute values.

    Seen in 1 report
  25. A tag-stripping helper assigned untrusted input to innerHTML, so the browser parsed it as markup instead of plain text.

    Seen in 1 report
  26. A test runner accepted an external module path via URL parameters.

    Seen in 1 report
  27. A text-field sanitiser that escapes quotes with backslashes was used instead of attribute-aware escaping.

    Seen in 1 report
  28. A theme component did not sanitise user-supplied markdown, allowing an iframe with script to be stored.

    Seen in 1 report
  29. A third-party dependency in the PDF viewer failed to HTML-encode special characters in PDF content.

    Seen in 1 report
  30. A third-party widget referenced a script in a bucket that was no longer registered, so anyone could claim it.

    Seen in 1 report
  31. A title was HTML-encoded into a data attribute but read back decoded and concatenated into an HTML string parsed without re-escaping.

    Seen in 1 report
  32. A torrent filename was written into the local download page without sanitisation.

    Seen in 1 report
  33. A URI action is attached to an embedded image so clicking it triggers a link.

    Seen in 1 report
  34. A URL from an uploaded manifest was rendered as a link without restricting the scheme to http or https.

    Seen in 1 report
  35. A url parameter was passed unchecked into location.href.

    Seen in 1 report
  36. A URL parameter was concatenated into a script URL without validation, allowing an attacker-controlled path to load as JavaScript.

    Seen in 1 report
  37. A URL parameter was inserted into a CSS import without validation, letting the page load a stylesheet from any host.

    Seen in 1 report
  38. A URL parameter was inserted into a JavaScript string literal without escaping and relied on browser apostrophe encoding.

    Seen in 1 report
  39. A URL parameter was inserted into a JavaScript string without escaping or validation.

    Seen in 1 report
  40. A URL parameter was passed directly to jQuery's getScript without validation.

    Seen in 1 report
  41. A URL parameter was passed straight into an API path without validation, and the API response was rendered as HTML without sanitising.

    Seen in 1 report
  42. A URL parameter was passed to window.open without validating the scheme.

    Seen in 1 report
  43. A URL parameter was reflected into an HTML error page without encoding.

    Seen in 1 report
  44. A URL parameter was reflected into the HTML response without encoding.

    Seen in 1 report
  45. A URL parameter was reflected without output encoding and the WAF only blocked script-based payloads.

    Seen in 1 report
  46. A URL parameter was used to dynamically load scripts without validation, and the session cookie lacked HttpOnly.

    Seen in 1 report
  47. A URL parameter was used to load a JavaScript file without validation.

    Seen in 1 report
  48. A URL parsing mismatch between the component setting the CSP header and the backend serving the image, where only the backend normalises the path.

    Seen in 1 report
  49. A URL query parameter was passed into an HTML parsing routine and assigned to innerHTML.

    Seen in 1 report
  50. A URL segment in the analytics callback path was not filtered.

    Seen in 1 report