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,601 to 1,650 of 2,345
  1. The name was placed inside a script tag within single quotes without encoding.

    Seen in 1 report
  2. The name was placed unescaped into a message sent with Telegram's legacy Markdown parse mode.

    Seen in 1 report
  3. The newsletter scripts did not sanitise the username derived from the email address.

    Seen in 1 report
  4. The nickname endpoint lacked input validation and output encoding, and the frontend rendered the nickname as raw HTML.

    Seen in 1 report
  5. The nickname was inserted into outgoing email HTML without escaping.

    Seen in 1 report
  6. The nickname was stored without sanitisation and output into search results without HTML encoding.

    Seen in 1 report
  7. The nickname or display name was inserted into an HTML attribute without proper encoding, allowing an attacker to break out of the attribute and inject event handlers.

    Seen in 1 report
  8. The node name was reflected without output encoding and rendered as HTML after an event type toggle.

    Seen in 1 report
  9. The non-RTE textarea branch skipped output escaping and decoded entities before echoing into a textarea element.

    Seen in 1 report
  10. The nonce was derived from a timestamp with little entropy, making it predictable and brute-forceable.

    Seen in 1 report
  11. The not-found page echoed user-controlled input from the request into the error message without sanitising or encoding it.

    Seen in 1 report
  12. The note map rendered note titles as HTML without encoding.

    Seen in 1 report
  13. The notebook viewer rendered attacker-supplied Markdown as HTML and JavaScript in an Electron webview without a meaningful CSP.

    Seen in 1 report
  14. The notification pipeline treated the label as trusted presentation copy, storing and interpolating it verbatim into templates including a Markdown-parsed Telegram message.

    Seen in 1 report
  15. The notification template interpolated an unescaped, attacker-controllable name into a Telegram message sent with Markdown parsing enabled.

    Seen in 1 report
  16. The notification template rendered user-supplied message content without sanitising form and input tags.

    Seen in 1 report
  17. The notification templates interpolated the user-controlled name into Telegram Markdown text and URLs without escaping, unlike the HTTP route which rejected such characters.

    Seen in 1 report
  18. The OAuth authorisation endpoint failed to encode or sanitise user-controlled parameters before reflecting them in the error page.

    Seen in 1 report
  19. The OAuth callback only compared the state parameter when it was supplied, so omitting it bypassed CSRF protection, and file names were rendered through AngularJS template evaluation.

    Seen in 1 report
  20. The OAuth error fallback page rendered the error, error_description and error_hint query parameters into HTML without encoding them.

    Seen in 1 report
  21. The OAuth login endpoint reflected a user-supplied parameter into the HTML response without proper output encoding.

    Seen in 1 report
  22. The OAuth-provided display name was inserted into the profile page without HTML encoding.

    Seen in 1 report
  23. The OAuth2 error page inserted the redirect_uri parameter directly into an anchor tag's href without validating or sanitising it.

    Seen in 1 report
  24. The oEmbed whitelist trusted third-party embed content and rendered it in a privileged context exposing Steam protocol handlers and the SteamClient API without isolation.

    Seen in 1 report
  25. The onmessage listener did not validate the origin of incoming postMessage events before using the message data.

    Seen in 1 report
  26. The openInNewTab function did not check for unsafe URL schemes, allowing javascript: URLs to execute in the devtools:// origin.

    Seen in 1 report
  27. The origin allowlist regex had an unescaped dot, so it matched unintended domains.

    Seen in 1 report
  28. The origin check compared a substring of the iframe URL instead of the exact origin.

    Seen in 1 report
  29. The origin check relied on user-supplied data and the received blob was passed to createObjectURL without validating its content type.

    Seen in 1 report
  30. The origin check used a filter that always returns an array, so the null comparison never failed and any origin was accepted.

    Seen in 1 report
  31. The origin check used a regular expression with an unescaped dot, so it matched unintended domains, and message data was inserted into the DOM unsanitised.

    Seen in 1 report
  32. The origin check used a string prefix match instead of an exact comparison.

    Seen in 1 report
  33. The origin check used a substring match and the message data was passed directly to eval.

    Seen in 1 report
  34. The origin check used a substring match instead of an exact or suffix match, and message data was inserted via innerHTML.

    Seen in 1 report
  35. The origin check used a substring match without ensuring the origin ended with a slash, so a lookalike domain could satisfy it.

    Seen in 1 report
  36. The origin gate used the writable Array.prototype.includes method, which page JavaScript can override, and the script was re-injected into the same realm after document.open().

    Seen in 1 report
  37. The origin of messages was not validated and message data was passed to eval.

    Seen in 1 report
  38. The origin of postMessage events was not validated before being used to load scripts.

    Seen in 1 report
  39. The origin of the first postMessage was checked but all subsequent messages were trusted.

    Seen in 1 report
  40. The origin server address was exposed behind a WAF.

    Seen in 1 report
  41. The pack parameter was passed to a file function without validation and the smiley image value was output without HTML escaping.

    Seen in 1 report
  42. The package inserted the title, inline spec and string options into its HTML page without escaping, so a closing script tag could break out.

    Seen in 1 report
  43. The package upload endpoint did not validate the optional digest parameter, allowing path traversal sequences and invalid characters.

    Seen in 1 report
  44. The packing slip template inserts the email address into HTML without escaping.

    Seen in 1 report
  45. The page copied a URL parameter into a link attribute and built HTML from it with jQuery without escaping.

    Seen in 1 report
  46. The page did not verify the origin of incoming messages, sent sensitive data to any parent window, and allowed any origin to trigger cookie-setting.

    Seen in 1 report
  47. The page parameter was not encoded or sanitised before reflection.

    Seen in 1 report
  48. The page passed the URL fragment to an iframe's location.replace without validating or sanitising it.

    Seen in 1 report
  49. The page passed untrusted URL query data directly into a location redirect without validating the destination scheme.

    Seen in 1 report
  50. The page read the query string and passed it directly to a navigation function without validation.

    Seen in 1 report