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,201 to 1,250 of 2,345
  1. The continue parameter and search terms were not validated or sanitised before being reflected or stored.

    Seen in 1 report
  2. The continue parameter was not validated to be a safe URL, allowing javascript scheme injection.

    Seen in 1 report
  3. The continue_to value went into a redirect sink without checking the URL scheme.

    Seen in 1 report
  4. The conversation name was not encoded before being displayed to invited users.

    Seen in 1 report
  5. The converter emitted code-span and code-fence delimiters without checking that they actually delimited the content.

    Seen in 1 report
  6. The converter relied on the code span delimiter to neutralise unescaped content and did not account for a downstream parser rewriting spans in table cells.

    Seen in 1 report
  7. The cookie parser supported legacy quoted syntax, so an attacker cookie could swallow an HttpOnly cookie.

    Seen in 1 report
  8. The cookie value was written into an inline script context without output encoding, allowing a script-tag breakout.

    Seen in 1 report
  9. The counter that blocks dynamic markup insertion is incremented only in the element creation path, not in the custom element reaction path.

    Seen in 1 report
  10. The coupon code parameter was written into the checkout page without encoding or validation.

    Seen in 1 report
  11. The coupon search field was not sanitised and the XML parser did not disable external entities.

    Seen in 1 report
  12. The cpID parameter was reflected into the HTML response without output encoding.

    Seen in 1 report
  13. The crawler uses an old browser engine without an XSS filter and executes unsanitised JavaScript from URLs.

    Seen in 1 report
  14. The create_post function stored raw content without sanitisation and the Home Feed rendered it without escaping.

    Seen in 1 report
  15. The cron string parameter was reflected without sanitisation, and secrets were stored insecurely on the host.

    Seen in 1 report
  16. The CSP allowed script sources from Google domains and certain JSONP endpoints could return attacker-controlled JavaScript.

    Seen in 1 report
  17. The CSP allowlist included a public host that serves attacker-chosen scripts.

    Seen in 1 report
  18. The CSP evaluation code skips the strict-dynamic check for XSLT loads, letting them fall through to host-based source matching.

    Seen in 1 report
  19. The CSP frame-src directive trusted an entire wildcard domain that any user can register a subdomain on, so the allowlist could be satisfied by attacker-controlled content.

    Seen in 1 report
  20. The CSP helper did not escape or validate values placed into the header, so input could inject new directives.

    Seen in 1 report
  21. The CSP image source directive used a wildcard, allowing exfiltration to any domain when combined with HTML injection.

    Seen in 1 report
  22. The CSP lacked a directive restricting image sources.

    Seen in 1 report
  23. The CSP omitted the base-uri directive, so an injected base element could change how relative URLs resolved.

    Seen in 1 report
  24. The CSP omitted the form-action directive, and default-src does not cover form actions.

    Seen in 1 report
  25. The CSP script-src included a third-party domain that allowed user uploads of SWF files.

    Seen in 1 report
  26. The CSP trusted a third-party script bundling AngularJS, and Angular expressions could read the nonce and reuse it.

    Seen in 1 report
  27. The CSP used a static nonce that did not change per request, allowing reuse for injected scripts.

    Seen in 1 report
  28. The CSP was configured with 'unsafe-inline' in the script-src directive.

    Seen in 1 report
  29. The CSRF token was not tied to the user's session, allowing login CSRF.

    Seen in 1 report
  30. The CSS sanitiser failed to escape a quote in the namespace URL when serialising the @namespace rule.

    Seen in 1 report
  31. The CSS value for background colour was not validated, allowing an external URL.

    Seen in 1 report
  32. The currency format string was stored and inserted into the page without HTML encoding.

    Seen in 1 report
  33. The currency formatting value was rendered into sales channel admin pages without output encoding.

    Seen in 1 report
  34. The current folder value was inserted into the page without HTML encoding.

    Seen in 1 report
  35. The custom emoji image source URL was not escaped when rendering.

    Seen in 1 report
  36. The custom invite message was inserted into the outgoing email body without HTML encoding or sanitisation.

    Seen in 1 report
  37. The custom open-url scheme allowed javascript: URLs and the address bar displayed only the part after the scheme separator.

    Seen in 1 report
  38. The custom template engine evaluated user input as template expressions and its custom delimiters evaded WAF signatures.

    Seen in 1 report
  39. The custom theme script inserted URL parameters into the DOM using innerHTML without sanitisation.

    Seen in 1 report
  40. The custom URL scheme handler did not validate or isolate the URL it was asked to open.

    Seen in 1 report
  41. The custom WriteToAsync method ignored the encoder parameter and wrote raw strings, violating the template engine's HTML-encoding contract.

    Seen in 1 report
  42. The custom_field_7[] parameter was not sanitised or encoded before being reflected into the HTML response.

    Seen in 1 report
  43. The CustomCSSText() methods for counter values appended the raw decoded identifier instead of using the safe serialisation that escapes structural characters.

    Seen in 1 report
  44. The dashboard parameter reflected input into HTML without sanitisation, and the email-change API trusted same-origin requests without an anti-CSRF token check.

    Seen in 1 report
  45. The dashboard referenced a cloud storage bucket that was never registered.

    Seen in 1 report
  46. The dashboard rendered submitted form data without output encoding, and the login response returned credentials in cleartext.

    Seen in 1 report
  47. The data widget did not sanitise the connection URL.

    Seen in 1 report
  48. A Datadog site setting was interpolated into an HTML help string without sanitisation.

    Seen in 1 report
  49. The date parameter was echoed into an HTML error response without context-appropriate output encoding.

    Seen in 1 report
  50. The Datepicker's altField option was passed to a jQuery HTML-insertion sink without sanitisation.

    Seen in 1 report