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 1,401 to 1,450 of 2,345
  1. The FontMatrix array was read from the PDF dictionary with no numeric type validation and concatenated into a generated function body.

    Seen in 1 report
  2. The form plugin stored a header value without sanitising it, and the third-party service rendered it without encoding.

    Seen in 1 report
  3. The form's submit handler sanitised input by writing it into a temporary element's innerHTML, which parses markup and can trigger event handlers.

    Seen in 1 report
  4. The format hook responsible for linkifying Git commit messages did not escape HTML entities in its output.

    Seen in 1 report
  5. The formatter treated the on-chain text-record key as trusted display text with only a truthiness check and no allowlist, length cap or character filtering.

    Seen in 1 report
  6. The forum did not encode user-supplied topic titles before rendering.

    Seen in 1 report
  7. The fragment context element's stack item did not copy the element's attributes, so checks relying on the encoding attribute on MathML annotation-xml failed.

    Seen in 1 report
  8. The fragment parser tracks the ancestor that reset the namespace in a single pointer instead of a stack, so nested resets clear the state for outer elements.

    Seen in 1 report
  9. The fragment parser was given the live document's custom element registry, so callbacks fired before sanitisation.

    Seen in 1 report
  10. The fragment was used as a form action without checking it began with http.

    Seen in 1 report
  11. The fragment-only URL check only runs for attributes without a namespace, so namespaced attributes skip it.

    Seen in 1 report
  12. The frame-src allowlist used a wildcard for a whole free hosting domain instead of one project subdomain.

    Seen in 1 report
  13. The framework's default MIME type was overridden to text/html, so JSON was interpreted as HTML.

    Seen in 1 report
  14. The frontend passed the API's search_query value into React's dangerouslySetInnerHTML, skipping default escaping.

    Seen in 1 report
  15. The frontend persisted the JWT in sessionStorage instead of an HTTP-only cookie.

    Seen in 1 report
  16. The FTP upload path stored the original filename without the sanitisation used by manual rename.

    Seen in 1 report
  17. The FTP username field was not sanitised before being shown in the admin panel.

    Seen in 1 report
  18. The full URL assigned to the root scope without sanitising for later render contexts.

    Seen in 1 report
  19. The full URL was reflected into a canonical link tag without encoding, and the WAF could be bypassed.

    Seen in 1 report
  20. The gadget-loading endpoint accepted an arbitrary remote URL instead of restricting it to trusted local sources.

    Seen in 1 report
  21. The game failed to sanitise or escape formatting markup in player-supplied names before displaying them to other players.

    Seen in 1 report
  22. The game_id parameter was reflected without validation or encoding.

    Seen in 1 report
  23. The GameplayVersion field was not sanitised or escaped before being rendered on the public guide page.

    Seen in 1 report
  24. The gem server rendered the homepage value directly into an anchor href without restricting the URL scheme.

    Seen in 1 report
  25. The generator did not validate input before encoding it, and the browser executed the javascript: URI.

    Seen in 1 report
  26. The gist tag validated the URL only by checking whether it contained the expected host name as a substring.

    Seen in 1 report
  27. The GitHub organisation checked in the URL string without normalising the path.

    Seen in 1 report
  28. The goal title input was not sanitised or escaped before rendering.

    Seen in 1 report
  29. The group name was inserted into the twitter:description meta tag without output encoding or sanitisation.

    Seen in 1 report
  30. The group name was rendered unsafely on an old page.

    Seen in 1 report
  31. The group name was sanitised in most places but reflected without encoding in the make-member-admin option.

    Seen in 1 report
  32. The group name was stored raw and later inserted into the page without output encoding or sanitisation.

    Seen in 1 report
  33. The handler accepts messages from any origin and allows calling any method, and the help dialog inserts user data into HTML without sanitisation.

    Seen in 1 report
  34. The handler checked origin but never validated the blob's content type before creating an object URL.

    Seen in 1 report
  35. The handler does not check the message origin and inserts CSS into a style element using innerHTML.

    Seen in 1 report
  36. The handler reflected request data into an HTML response without sanitisation or output encoding.

    Seen in 1 report
  37. The handler trusted a query parameter to supply a secondary URL and did not restrict its scheme.

    Seen in 1 report
  38. The handler trusted postMessage data without validating the sender's origin and inserted it into a script element as executable code.

    Seen in 1 report
  39. The header field passed user input into a server-side template without sanitisation, and the template context allowed construction and execution of JavaScript.

    Seen in 1 report
  40. The headline field was not filtered, and the Content Security Policy allowed inline scripts without a nonce.

    Seen in 1 report
  41. The helper removed literal control characters before decoding HTML entities, so control characters introduced by entity decoding were not stripped before protocol validation.

    Seen in 1 report
  42. The helper trusted any non-string value as an already-validated URI object and called toString on it without checking its type.

    Seen in 1 report
  43. The helper was injected at document end after web content loaded, letting a page script define an overriding object.

    Seen in 1 report
  44. The hidden parameter was reflected into an HTML attribute without encoding or validating it, allowing the attribute context to be broken.

    Seen in 1 report
  45. The hidden parameter's value was written into the HTML response without output encoding, allowing markup to break out of its context.

    Seen in 1 report
  46. The history sidebar restored a data URI navigation without carrying over the CSP that applied to the original page.

    Seen in 1 report
  47. The Home button's drop handler did not check the URL scheme.

    Seen in 1 report
  48. The home page URL value was stored and later rendered into the edit page without proper output encoding or validation.

    Seen in 1 report
  49. The host combined allow-same-origin with allow-scripts on the WordPress iframe and applied its Document Isolation Policy only to responses that already carried a COEP header.

    Seen in 1 report
  50. The hostname comparison did not normalise the trailing dot before comparing.

    Seen in 1 report