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 301 to 350 of 2,345
  1. A user-controlled callback parameter invoked a parent function and the server response was passed to eval without validation.

    Seen in 1 report
  2. A user-controlled document field was placed into a link href without restricting the URL scheme.

    Seen in 1 report
  3. A user-controlled filename was inserted into the DOM via innerHTML instead of textContent or escaping.

    Seen in 1 report
  4. A user-controlled name echoed into a JSON response without the nosniff header, letting IE11 content-sniff it as HTML.

    Seen in 1 report
  5. A user-controlled redirectPath was passed to the router without checking it was a safe path.

    Seen in 1 report
  6. A user-controlled return URL was inserted directly into a JavaScript string inside a script tag without escaping.

    Seen in 1 report
  7. A user-controlled URL parameter was reflected directly into the CSP header, and the form-action directive was omitted even though it does not fall back to default-src.

    Seen in 1 report
  8. A user-controlled URL was stored and rendered as a javascript: link without sanitising, and the CSRF token check was ineffective.

    Seen in 1 report
  9. A user-provided sound URL was appended to the DOM with jQuery append without sanitisation.

    Seen in 1 report
  10. A user-supplied configUrl was passed to Swagger UI without restricting where configuration could be loaded from.

    Seen in 1 report
  11. A user-supplied greeting is rendered as markdown without sanitising javascript: URLs, and the endpoint lacks CSRF protection.

    Seen in 1 report
  12. A user-supplied name was concatenated into an HTML string and marked safe without escaping.

    Seen in 1 report
  13. A user-supplied relativeRootPath was trusted when building a script URL.

    Seen in 1 report
  14. A user-supplied URL was inserted into an iframe src without validating that it was a safe web address.

    Seen in 1 report
  15. A user-supplied URL was used directly in a redirect without checking it was a safe http(s) URL, so javascript schemes were accepted.

    Seen in 1 report
  16. A user-supplied value from the request URL was inserted into a notification without validation or encoding.

    Seen in 1 report
  17. A value read from localStorage was inserted into the page HTML without encoding.

    Seen in 1 report
  18. A value was HTML-encoded and then inserted as HTML, so the encoding did not prevent markup creation.

    Seen in 1 report
  19. A Vue component rendered the Kubernetes namespace value using unescaped interpolation.

    Seen in 1 report
  20. A Vue directive rendering raw HTML was used on filenames without sanitisation.

    Seen in 1 report
  21. A vulnerable tag management library merged user-controlled input into objects without validation, allowing prototype pollution.

    Seen in 1 report
  22. A WAF blocklist missed unusual event handlers and syntax.

    Seen in 1 report
  23. A whitelist of HTML elements was allowed in name fields without sanitising or escaping before rendering.

    Seen in 1 report
  24. Abandoned subdomains still configured on Akamai's edge without proper access controls allow content from other Akamai-hosted sites to be loaded.

    Seen in 1 report
  25. Accepting and storing raw HTML from user input without sanitising it, then rendering it unsafely in staff-facing pages.

    Seen in 1 report
  26. Accepting SVG files and serving them without sanitising or restricting active content.

    Seen in 1 report
  27. Access control relied on a client-side redirect and search parameters were inserted into HTML and SQL unsanitised.

    Seen in 1 report
  28. AI-generated output was rendered as HTML without sanitising it.

    Seen in 1 report
  29. Alert rule names were stored without sanitising and rendered unsafely.

    Seen in 1 report
  30. An allow-list check used a substring match on the hostname instead of verifying the domain suffix.

    Seen in 1 report
  31. An allowlist permitted the formaction attribute on button elements without validating its value.

    Seen in 1 report
  32. An alt attribute was rendered as HTML in a popup.

    Seen in 1 report
  33. An AJAX endpoint lacked authorisation checks and output encoding.

    Seen in 1 report
  34. An API endpoint reflected input into an HTML response and set the Content-Type to HTML instead of JSON.

    Seen in 1 report
  35. An attacker-controlled channel name was passed to element creation in a code path only reached when a browser feature test was true.

    Seen in 1 report
  36. An attacker-controlled URL parameter was placed directly into an iframe source without validating the scheme.

    Seen in 1 report
  37. An authentication cookie was scoped to the parent domain so any subdomain could read it.

    Seen in 1 report
  38. An authentication token in localStorage combined with a DOM XSS and no Content Security Policy blocking external script loads.

    Seen in 1 report
  39. An early-return error path did not clear the parsed fragment when Sanitizer creation threw, unlike the earlier error path.

    Seen in 1 report
  40. An element's link value was copied straight into an anchor href without validating the URL scheme, and clipboard data was trusted.

    Seen in 1 report
  41. An elements URL parameter was passed to the page without validation so CSS and JavaScript loaded from any host.

    Seen in 1 report
  42. An email address containing markup was rendered unsafely in the admin dashboard.

    Seen in 1 report
  43. An empty policy container was stored for a failed navigation and reused for a later successful navigation instead of being recomputed.

    Seen in 1 report
  44. An endpoint did not set the JSON content-type, so the browser interpreted the response as HTML.

    Seen in 1 report
  45. An error dialog displayed a user-supplied ID without sanitisation.

    Seen in 1 report
  46. An error handler passed API error messages to a toast library without escaping, and room creation merged unvalidated extra data.

    Seen in 1 report
  47. An error in how the wallet browser handled web requests while injecting its provider.

    Seen in 1 report
  48. An exported activity passes attacker-controlled HTML and base URL to a JavaScript-enabled WebView without validating the caller.

    Seen in 1 report
  49. An exported activity trusted an intent extra containing a parcelable array of intents and launched them without validating targets or URL schemes.

    Seen in 1 report
  50. An exported WebView activity loaded a URL from an intent extra without validating scheme or host.

    Seen in 1 report