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 451 to 500 of 2,345
  1. Comment text was echoed into HTML without escaping special characters.

    Seen in 1 report
  2. Comment text was truncated at the database column limit without sanitisation, producing malformed HTML.

    Seen in 1 report
  3. Comment-rendering code built HTML by string concatenation and escaped some links but not the blog URL used in jump and document links.

    Seen in 1 report
  4. Comments were stored and rendered into the profile page without HTML encoding.

    Seen in 1 report
  5. Concatenating untrusted input into innerHTML without sanitisation and lacking a Content Security Policy.

    Seen in 1 report
  6. Concatenating user input directly into an XPath expression without escaping.

    Seen in 1 report
  7. Contact form input was stored and rendered without sanitisation in a custom support view.

    Seen in 1 report
  8. Contact form input was stored unsanitised and shown in the admin panel without encoding.

    Seen in 1 report
  9. Content-type validation only checked headers when present.

    Seen in 1 report
  10. Conversation IDs were derived from public usernames and the server trusted client-supplied identity without ownership checks.

    Seen in 1 report
  11. Converting input to uppercase was used as a naive filter although JavaScript is case-sensitive.

    Seen in 1 report
  12. Cookie values inserted into the page without output encoding.

    Seen in 1 report
  13. Cookie values were written into the Set-Cookie header without stripping carriage return and line feed characters.

    Seen in 1 report
  14. Coupon parameters were reflected without proper encoding.

    Seen in 1 report
  15. Creative fields were inserted into VAST XML without escaping, so they were parsed as markup rather than data.

    Seen in 1 report
  16. CSP applied to proxied content lacked a form-action directive.

    Seen in 1 report
  17. CSP configured with unsafe-inline and unsafe-eval instead of nonces or hashes.

    Seen in 1 report
  18. CSP header not consistently applied to all endpoints.

    Seen in 1 report
  19. CSRF protection accepted any header value as long as it matched the cookie, and a token endpoint exposed valid tokens.

    Seen in 1 report
  20. CSRF token cookie created without the HttpOnly attribute.

    Seen in 1 report
  21. CSRF tokens matched only between cookie and header without binding to the session.

    Seen in 1 report
  22. CSS scoping logic did not handle an unmatched closing curly brace, so later selectors were not scoped.

    Seen in 1 report
  23. Data obtained through SQL injection was inserted into the page without output encoding.

    Seen in 1 report
  24. Data URI accepted in an image URL field and rendered where embedded SVG can execute.

    Seen in 1 report
  25. Dataset metadata was used without context-aware encoding and remote source URLs were not validated.

    Seen in 1 report
  26. Decoded Base64 data was placed into a link href without checking the URL scheme.

    Seen in 1 report
  27. Decoded QR string passed to the browser without URL scheme validation.

    Seen in 1 report
  28. Decoded returnTo value assigned directly to a navigation sink without scheme validation.

    Seen in 1 report
  29. Decoded scanner output was inserted into the page as HTML rather than plain text.

    Seen in 1 report
  30. Decoded URL parameter assigned to iframe src without validating the URI scheme after decoding.

    Seen in 1 report
  31. Default templates populated variables such as logo location, stylesheet, status code and support contact directly from URL parameters.

    Seen in 1 report
  32. Default WebView settings in Xamarin.Forms on older Android WebView versions allowed JavaScript execution from untrusted content.

    Seen in 1 report
  33. Description fields from a fetched YAML file were inserted into the page as HTML without sanitising.

    Seen in 1 report
  34. Direct user input was sanitised but the AI assistant's output was rendered as HTML without sanitisation.

    Seen in 1 report
  35. Directory listing was enabled on public storage and access controls were missing.

    Seen in 1 report
  36. Directory names were not sanitised or encoded before display in find file results.

    Seen in 1 report
  37. Display information in the publisher trust dialog was not neutralised before being placed into the page.

    Seen in 1 report
  38. Display Name input is reflected into the page without HTML encoding.

    Seen in 1 report
  39. Display names were not sanitised before rendering, and the native client ran injected script in a Node.js context.

    Seen in 1 report
  40. Display names were not sanitised or encoded before rendering in search results.

    Seen in 1 report
  41. Displaying user-controlled PDF metadata or filename in chat without HTML encoding.

    Seen in 1 report
  42. document.referrer passed into a document.write call that builds a script tag without validation.

    Seen in 1 report
  43. document.write() was used to insert untrusted input into the page without sanitisation.

    Seen in 1 report
  44. Domain and Range entries were only checked to be arrays, not numbers, before being inserted into generated JavaScript.

    Seen in 1 report
  45. Double quotes escaped but the closing script tag sequence not escaped.

    Seen in 1 report
  46. Double quotes in the URL path were not escaped when reflected into HTML attribute values.

    Seen in 1 report
  47. Double quotes were not encoded when user-supplied URLs were inserted into anchor tags, allowing attribute injection.

    Seen in 1 report
  48. Double-encoded input was decoded before being placed in the page.

    Seen in 1 report
  49. Download handling for links inside frames did not keep the frame origin separate from the top origin.

    Seen in 1 report
  50. Download handling of a javascript: URL in a child frame did not re-check the frame origin and ran the script in the parent context.

    Seen in 1 report