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 2,151 to 2,200 of 2,345
  1. Two input-filtering mechanisms interpret the same login input differently.

    Seen in 1 report
  2. Dynamic client registration was unauthenticated with no redirect URI validation and unsanitised client data.

    Seen in 1 report
  3. Unescaped source names were passed to a wrapping function and inserted with dangerouslySetInnerHTML.

    Seen in 1 report
  4. Unescaped text was passed into a DOM replacement function that treats its argument as HTML.

    Seen in 1 report
  5. Unfiltered input was passed to the editor's insertHtml and the default filter was bypassed with a crafted attribute.

    Seen in 1 report
  6. Unfiltered request parameters were passed straight to a link helper, letting protocol and host be injected.

    Seen in 1 report
  7. An unknown attribute name from a JSON POST was reflected into an HTML error response.

    Seen in 1 report
  8. Unnormalised slug concatenation into a fetch path, a redirect filter that only checked for http or https prefixes instead of parsing the URL, and rendering API content with innerHTML combined into one-click XSS.

    Seen in 1 report
  9. Unrestricted uploads were served with an HTML content type.

    Seen in 1 report
  10. Unsanitised input was reflected into the DOM and the caching layer stored the response.

    Seen in 1 report
  11. Unsanitised URL input in a WebView's JavaScript evaluation, insufficient scheme validation, and a zip extraction routine that skipped path traversal checks due to a false flag.

    Seen in 1 report
  12. Untrusted content was inserted into the DOM as raw HTML without sanitising.

    Seen in 1 report
  13. Untrusted data from a data file was rendered into a local HTML page without sanitising.

    Seen in 1 report
  14. Untrusted image src values were inserted into HTML output without encoding.

    Seen in 1 report
  15. Untrusted input from a redirect URL parameter and a URL path segment was placed into an executable context without scheme validation or output encoding.

    Seen in 1 report
  16. Untrusted input reached dangerous sinks (jQuery AJAX without a data type, an iframe src, an anchor href) without validation.

    Seen in 1 report
  17. Untrusted issue summaries were placed into an HTML attribute and rendered as HTML through a React tooltip without escaping.

    Seen in 1 report
  18. Untrusted item descriptions and thread messages were assigned to innerHTML before proper sanitisation.

    Seen in 1 report
  19. The upload API did not validate file extensions and MIME types, so HTML files were served with an executable content type.

    Seen in 1 report
  20. Upload handling trusted the client-supplied MIME type and served the file from a subdomain without a strict sandbox.

    Seen in 1 report
  21. The upload initiation endpoint was unauthenticated and Content-Type was not bound into the presigned signature, with the CDN serving content inline without nosniff.

    Seen in 1 report
  22. Upload validation checked only the final extension and the served content type followed the filename.

    Seen in 1 report
  23. Upload validation only confirmed the file was a well-formed PDF and did not strip active content, and the file was served inline without an attachment disposition or restrictive CSP.

    Seen in 1 report
  24. Upload validation relies on a short blocklist and only scans the first 256 bytes.

    Seen in 1 report
  25. Upload validation trusted the declared content type and searched for the PDF signature anywhere in the body, ignoring the extension.

    Seen in 1 report
  26. Upload validation trusted the filename extension and leading signature rather than the whole file.

    Seen in 1 report
  27. Uploaded documents are not validated for type or content before being served to other users.

    Seen in 1 report
  28. The uploaded filename was concatenated into an HTML template without sanitisation and the PDF renderer executed scripts and allowed local file access.

    Seen in 1 report
  29. Uploaded files were served inline without sanitising contents, with sequential identifiers and no ownership check.

    Seen in 1 report
  30. Uploaded files were accepted without content validation and served from a public cloud storage endpoint in a way the browser executes embedded script.

    Seen in 1 report
  31. Uploaded files were served without a Content-Type header, letting browsers sniff them as HTML.

    Seen in 1 report
  32. Uploaded files were served without a safe Content-Type or Content-Disposition header, and session cookies lacked the HttpOnly flag.

    Seen in 1 report
  33. Uploaded HTML files were served without a safe Content-Disposition header or sanitisation, so the browser rendered them as active content.

    Seen in 1 report
  34. Uploaded images could be served with a script-compatible content type or without proper CSP restrictions.

    Seen in 1 report
  35. Uploaded PDFs were rendered in a context that let embedded JavaScript run in the browser origin instead of a sandboxed viewer.

    Seen in 1 report
  36. Uploaded SVG files are not sanitised and are served from the same origin without a Content-Security-Policy.

    Seen in 1 report
  37. Uploaded SVG files are served without a policy that stops embedded scripts.

    Seen in 1 report
  38. Uploaded SVG files were served with an SVG content type and no CSP or attachment disposition.

    Seen in 1 report
  39. URL content is reflected without encoding and inserted into an HTML attribute without escaping.

    Seen in 1 report
  40. URL detection logic did not decode CSS escape sequences before checking for image URLs.

    Seen in 1 report
  41. URL fragment parameters were merged into objects without sanitising keys and later used as attribute values.

    Seen in 1 report
  42. URL generation inserted GET parameters into the page without HTML encoding.

    Seen in 1 report
  43. A URL parameter was inserted into the page using innerHTML instead of text.

    Seen in 1 report
  44. URL parameter values were echoed into the HTML response without encoding or filtering.

    Seen in 1 report
  45. URL parameter values were passed directly into eval without sanitisation, and session tokens were not rotated on login.

    Seen in 1 report
  46. URL parameter values were reflected into HTML without output encoding and the WAF blocklist was incomplete.

    Seen in 1 report
  47. URL parameters and location.href were written into the page without proper sanitisation.

    Seen in 1 report
  48. URL parameters were passed directly into link href attributes without scheme validation.

    Seen in 1 report
  49. URL parameters were passed into page output and database queries without validation or parameterisation.

    Seen in 1 report
  50. URL path input was not sanitised before use in a response header.

    Seen in 1 report