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 651 to 700 of 2,345
  1. Internet Explorer's content sniffing overrode the declared text content type and the nosniff header, so uploaded text files rendered as HTML.

    Seen in 1 report
  2. Invalid webcall ID reflected into an error response without sanitising.

    Seen in 1 report
  3. Invitation message inserted into the outgoing email body without encoding.

    Seen in 1 report
  4. Invoice name was not sanitised before PDF rendering, and the instance used IMDSv1 with an overly permissive IAM role.

    Seen in 1 report
  5. Isolated-world XMLHttpRequest routed through the page's Service Worker, unlike Blink.

    Seen in 1 report
  6. jQuery Mobile fetches URLs from the location hash and inserts the response via innerHTML.

    Seen in 1 report
  7. jQuery's htmlPrefilter and wrapping logic modified already-sanitised HTML, enabling mutation XSS.

    Seen in 1 report
  8. JSON built by concatenating user-supplied metadata fields without escaping, so injected characters change the JSON structure.

    Seen in 1 report
  9. JSON responses were returned without the application/json MIME type, so reflected content was parsed as HTML.

    Seen in 1 report
  10. JSON-LD values were inserted into Reader View HTML without escaping, and an internal error page reflected a query parameter without sanitising it.

    Seen in 1 report
  11. JSONP loader trusted a cookie value to set the script source without validating the server.

    Seen in 1 report
  12. Keeping WebSettings.setSupportMultipleWindows() at its default false, combined with an unpatched WebView, allowed the bypass.

    Seen in 1 report
  13. Label getter returns the stored value directly while the body value goes through a sanitiser.

    Seen in 1 report
  14. Label text was stored without sanitising or encoding so markup rendered in other users' browsers.

    Seen in 1 report
  15. Legacy page echoes a parameter into a script block without encoding.

    Seen in 1 report
  16. Less code ran with JavaScript execution enabled and plugins were not restricted.

    Seen in 1 report
  17. libxslt's global initialisation unconditionally registered extra extension elements, including xalan:write, which performed dynamic XPath compilation before the security check.

    Seen in 1 report
  18. Link embedding feature did not restrict the URL scheme, allowing javascript: URIs.

    Seen in 1 report
  19. Link filter only matched absolute URLs with a scheme and missed protocol-relative URLs.

    Seen in 1 report
  20. Link headers not sanitised or restricted, allowing arbitrary CSS.

    Seen in 1 report
  21. Link input validated only for presence, not for an http or https scheme.

    Seen in 1 report
  22. Linked pages were not prevented from accessing window.opener.

    Seen in 1 report
  23. Linkification accepted any URL scheme instead of only HTTP and HTTPS.

    Seen in 1 report
  24. Links were built from the relative URL path without escaping, allowing a break out of tags and an event handler injection.

    Seen in 1 report
  25. Live event form input was stored without sanitisation and rendered as HTML on an asset domain.

    Seen in 1 report
  26. Location field not output-encoded while the WAF only covers other fields.

    Seen in 1 report
  27. location.pathname was used to build an AJAX URL without validation, allowing a protocol-relative URL.

    Seen in 1 report
  28. Log data rendered unsanitised, state-changing actions accepted over GET, and the file parameter not validated.

    Seen in 1 report
  29. Login form input compiled as an Angular template.

    Seen in 1 report
  30. Login page parameter reflected without validation or encoding.

    Seen in 1 report
  31. Lookup tools rendered WHOIS and DNS record values without output encoding or sanitisation.

    Seen in 1 report
  32. Macro substitution ran after input encoding and was not limited to a single pass, so request values were re-injected unescaped.

    Seen in 1 report
  33. Markdown from package READMEs was rendered without sanitising the resulting HTML and without a CSP.

    Seen in 1 report
  34. Markdown output was not escaped before insertion via dangerouslySetInnerHTML and single quotes were not converted to entities.

    Seen in 1 report
  35. Markdown renderers allowed arbitrary HTML, a bundled test page evaluated the URL query string, and the desktop runtime exposed Node.js APIs to the page.

    Seen in 1 report
  36. Markdown visitor trusts an element name as proof of internal origin and emits its content raw.

    Seen in 1 report
  37. MathJax backslash and curly brace handling lets HTML tags past markdown sanitisation.

    Seen in 1 report
  38. Member list parameters were not sanitised and no CSRF token was checked.

    Seen in 1 report
  39. Mention and reference linkification ran as post-processing on rendered HTML rather than during parsing.

    Seen in 1 report
  40. Merging arbitrary client JSON keys into persisted models without an allow-list.

    Seen in 1 report
  41. Message content inserted into the page without HTML escaping, and admin cookies lacked HttpOnly, Secure and SameSite flags.

    Seen in 1 report
  42. Message content was not sanitised, allowing a bold tag with an event handler to be stored and rendered.

    Seen in 1 report
  43. Message data was used directly in location.href without validating the sender origin or sanitising the value.

    Seen in 1 report
  44. Message grouping by author without checking the first message is visible, plus user-controlled CSS classes.

    Seen in 1 report
  45. Message handlers did not verify the sender's origin and outgoing messages used a wildcard targetOrigin.

    Seen in 1 report
  46. Message listener did not verify the sender's origin and concatenated text into an href without escaping quotes.

    Seen in 1 report
  47. Message type render functions inserted user-controlled fields into HTML without escaping.

    Seen in 1 report
  48. Messages stored and rendered back without encoding.

    Seen in 1 report
  49. Messages were inserted into the page as HTML rather than as plain text.

    Seen in 1 report
  50. Metadata is concatenated into an HTML attribute without the escaping helper, and the API endpoint lacks CSRF protection.

    Seen in 1 report