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,251 to 2,300 of 2,345
  1. User strings were passed to a JavaScript bridge call without escaping, letting an attacker break out of the string context.

    Seen in 1 report
  2. User-controllable input was concatenated into JavaScript strings and shell commands without encoding, because variables were assumed safe.

    Seen in 1 report
  3. A user-controlled artist name was inserted into HTML contexts without output encoding.

    Seen in 1 report
  4. User-controlled cookie values were embedded in HTML without escaping, and the cookie parser split on spaces instead of semicolons.

    Seen in 1 report
  5. User-controlled cookie values were reflected without sanitisation.

    Seen in 1 report
  6. User-controlled CSS was injected into pages without sanitisation, allowing selector-based data exfiltration.

    Seen in 1 report
  7. User-controlled CSS was injected into the page without sanitisation and the page lacked X-Frame-Options.

    Seen in 1 report
  8. User-controlled data from a data-url attribute was concatenated directly into HTML and inserted via innerHTML.

    Seen in 1 report
  9. User-controlled data from the URL and cookies was inserted with innerHTML without sanitisation, and a cookie value was reflected on every page.

    Seen in 1 report
  10. User-controlled data was concatenated into an HTML string and inserted with innerHTML.

    Seen in 1 report
  11. User-controlled data was output before the CSP header, and when output exceeded the buffer size the header was dropped.

    Seen in 1 report
  12. User-controlled error messages were inserted into the DOM as raw HTML behind an incomplete tag blacklist, and the client-side encryption key was exposed in public JavaScript.

    Seen in 1 report
  13. User-controlled fragment keys were assigned into nested objects without blocking prototype-related property names.

    Seen in 1 report
  14. A user-controlled full name was not escaped when rendered in search results.

    Seen in 1 report
  15. User-controlled GET parameters were passed to Smarty templates without escaping.

    Seen in 1 report
  16. User-controlled HTML from PDF filenames and editor input was stored and rendered without sanitisation or encoding.

    Seen in 1 report
  17. User-controlled input from query strings, form fields and headers was written into HTML output without encoding or validation.

    Seen in 1 report
  18. User-controlled input from the URL fragment was assigned to innerHTML without sanitisation.

    Seen in 1 report
  19. User-controlled input from the URL was reflected into the signin or init page without encoding or validation.

    Seen in 1 report
  20. User-controlled input in URLs was not sanitised before use in a script-executing context.

    Seen in 1 report
  21. User-controlled input was merged into an object without filtering special keys, allowing prototype pollution.

    Seen in 1 report
  22. User-controlled input was reflected into an XML response without sanitisation, allowing HTML tags via XHTML.

    Seen in 1 report
  23. User-controlled input was reflected into HTML without encoding, and session cookies were separately exposed in a way that allowed capture.

    Seen in 1 report
  24. User-controlled item fields were rendered without context-aware output encoding, and the WAF's pattern matching could be bypassed with crafted attributes.

    Seen in 1 report
  25. User-controlled item titles were rendered as HTML in error and notification messages, and tokens sat in local storage.

    Seen in 1 report
  26. User-controlled name fields were concatenated into a JavaScript string literal without escaping quotes.

    Seen in 1 report
  27. A user-controlled parameter was inserted into a style attribute without escaping the url() context.

    Seen in 1 report
  28. User-controlled parameters were inserted directly into a JavaScript string without escaping, and the filter only removed single quotes.

    Seen in 1 report
  29. User-controlled parameters were inserted into the DOM via innerHTML without sanitisation.

    Seen in 1 report
  30. User-controlled parameters were reflected into HTML or JavaScript without encoding or validation.

    Seen in 1 report
  31. User-controlled tag values were rendered as HTML while the renderer had Node/Electron integration enabled.

    Seen in 1 report
  32. A user-controlled URL parameter was assigned to a navigation sink without checking for a safe relative path.

    Seen in 1 report
  33. A user-controlled URL parameter was passed directly as an orderBy predicate.

    Seen in 1 report
  34. User-controlled URL parts were concatenated into a toolbar command string without validation.

    Seen in 1 report
  35. User-controlled values were inserted with innerHTML, and the config endpoint accepted cross-origin requests without a token.

    Seen in 1 report
  36. User-controlled values were concatenated into HTML strings in JavaScript without escaping.

    Seen in 1 report
  37. User-supplied content in the bug report was stored and rendered in Jira without proper sanitisation.

    Seen in 1 report
  38. User-supplied content saved by the plugins was not neutralised before being shown in the WordPress dashboard.

    Seen in 1 report
  39. User-supplied content was insufficiently validated and encoded, so an external URL from a purchase description was embedded in a platform email without distinguishing it from trusted links.

    Seen in 1 report
  40. User-supplied content was not neutralised during web page generation, so script content was stored and later rendered as executable markup.

    Seen in 1 report
  41. User-supplied directive values were merged into CSS and inserted into the DOM with innerHTML.

    Seen in 1 report
  42. User-supplied email content was rendered in the ticket view without HTML encoding.

    Seen in 1 report
  43. A user-supplied filename was stored unsanitised and rendered in an admin interface.

    Seen in 1 report
  44. User-supplied font URLs were inserted directly into a CSS import rule without sanitisation.

    Seen in 1 report
  45. User-supplied GIF titles were embedded into a meta tag without sanitising, allowing a meta refresh directive.

    Seen in 1 report
  46. User-supplied HTML in the full name was not escaped before being rendered in navigation.

    Seen in 1 report
  47. User-supplied HTML was stored and rendered without sanitisation.

    Seen in 1 report
  48. User-supplied input was inserted directly into HTML without any filtering or encoding.

    Seen in 1 report
  49. User-supplied input was inserted into generated web pages without proper encoding or validation.

    Seen in 1 report
  50. User-supplied input was not neutralised before being placed into generated web pages.

    Seen in 1 report