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,151 to 1,200 of 2,345
  1. The chat interface failed to treat code-block content as inert text and inserted SVG and image markup into the page's HTML.

    Seen in 1 report
  2. The chat interface rendered user-supplied and AI-generated content without sanitising it.

    Seen in 1 report
  3. The chat prompt input was reflected without output encoding and the response was cached in a way that served injected content to other users.

    Seen in 1 report
  4. The chat rendering engine converted Markdown to HTML without properly sanitising the resulting markup.

    Seen in 1 report
  5. The chat system rendered raw HTML without sanitising it.

    Seen in 1 report
  6. The chat tags parameter was inserted without correct output encoding.

    Seen in 1 report
  7. The chatbot did not sanitise user input before rendering it as HTML, and uploads lacked server-side restrictions.

    Seen in 1 report
  8. The checkout form's input filter only blocked most HTML tags but allowed the html tag, and the thank-you page inserted the first name into the title element without proper output encoding.

    Seen in 1 report
  9. The circle display name was inserted into the search UI without HTML encoding.

    Seen in 1 report
  10. The city value from the location cookie was passed through the location suggestion endpoint and rendered into the page without output encoding or validation.

    Seen in 1 report
  11. The City value was saved without sanitisation and rendered into the forum profile page without HTML encoding.

    Seen in 1 report
  12. The class diagram renderer did not sanitise user-supplied class names, allowing HTML injection.

    Seen in 1 report
  13. The clean function assigned untrusted HTML to a detached div's innerHTML, which triggered event handlers before any sanitisation.

    Seen in 1 report
  14. The cleanup that removes style when select is allowed was applied only to the per-call tag list, not the class-level allowed_tags list.

    Seen in 1 report
  15. The client concatenated user-controlled folder names into an HTML string without escaping.

    Seen in 1 report
  16. The client script concatenated the raw JSON response into an eval call.

    Seen in 1 report
  17. The client's URL parser turned protocol-like text into clickable links without sanitisation, and the OS protocol handler allowed local file execution.

    Seen in 1 report
  18. The client-side MIME type restriction could be bypassed because files were encrypted before reaching the server.

    Seen in 1 report
  19. The client-side redirect function assigned a user-controlled parameter directly to window.location without validating the scheme, and the server-side filter only checked the first occurrence of a duplicated parameter.

    Seen in 1 report
  20. The client-supplied content type was trusted, the CSP allowed same-origin scripts and an error page reflected input.

    Seen in 1 report
  21. The client-supplied X-Forwarded-For header was inserted into email HTML without encoding.

    Seen in 1 report
  22. The clipboard sanitiser serialised CSS strings without escaping angle brackets.

    Seen in 1 report
  23. The CNAME delegation to a third-party survey platform that allows customer-supplied JavaScript, without ensuring that only authorised accounts can use the domain.

    Seen in 1 report
  24. The code assigns element text content to innerHTML without sanitisation.

    Seen in 1 report
  25. The code checked only that the URL was structurally valid, not that its scheme was HTTP or HTTPS, and the keyword check allowed hostless javascript: URLs.

    Seen in 1 report
  26. The code trusted the destination URI from the search backend without checking its scheme.

    Seen in 1 report
  27. The code used a JSON serialiser instead of an HTML escaper for the reflected bug and omitted the HTML escaper for the From header.

    Seen in 1 report
  28. The code used a strict string equality check on the entire concatenated X-Content-Type-Options value instead of parsing it as a comma-separated list.

    Seen in 1 report
  29. The code used request.query_parameters instead of safe_params when building a link, letting dangerous parameters reach the link helper.

    Seen in 1 report
  30. The code view editor accepted raw HTML without sanitisation and no Content Security Policy restricted embedded frames.

    Seen in 1 report
  31. The collection name was inserted into an HTML title tag without encoding.

    Seen in 1 report
  32. The colour name was concatenated into an HTML string passed to jQuery's element constructor instead of being set as text.

    Seen in 1 report
  33. The colour value was inserted into a CSS style block without sufficient escaping.

    Seen in 1 report
  34. The combination of a browser bug that allowed malformed Host headers and lax Host header parsing by Heroku and Fastly that treated the slash-containing value as a subdomain of an attacker-controlled domain.

    Seen in 1 report
  35. The comment field stored the submitted script and rendered it without encoding, and the session cookie was readable by page scripts.

    Seen in 1 report
  36. The comment field's escaping routine could be reversed by supplying already-escaped characters.

    Seen in 1 report
  37. The comment renderer accepted image markup and passed attributes through without restricting event handlers.

    Seen in 1 report
  38. The comment update API did not sanitise the body_html field, unlike the web form and documented fields.

    Seen in 1 report
  39. The comment value was written into a textarea response without HTML encoding and the POST endpoint lacked a CSRF token.

    Seen in 1 report
  40. The companion form stored user input and rendered it back without output encoding or sanitisation.

    Seen in 1 report
  41. The company name was stored and inserted into the message room page without output encoding or sanitisation.

    Seen in 1 report
  42. The configuration validation schema was incomplete and partial, so unlisted properties were merged into live config unvalidated.

    Seen in 1 report
  43. The configUrl parameter loaded external JSON without validating its origin.

    Seen in 1 report
  44. The configUrl parameter was not restricted to trusted origins, so a remote configuration could inject script.

    Seen in 1 report
  45. The console script built an anchor element by concatenating untrusted text into an HTML string and assigning it with .html().

    Seen in 1 report
  46. The contact API accepted unauthenticated submissions with no server-side reCAPTCHA check, no CSRF token and no rate limit.

    Seen in 1 report
  47. The contact form passed message content into the outgoing email without sanitising or escaping it, and a link parameter allowed an open redirect.

    Seen in 1 report
  48. The container name input was not sanitised before being stored and rendered.

    Seen in 1 report
  49. The content placeholder was substituted before the JSON-LD placeholder, so page content containing the placeholder got JSON-LD data spliced into it.

    Seen in 1 report
  50. The Content Security Policy was only attached to HTML responses, leaving renderable types such as SVG unprotected.

    Seen in 1 report