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,101 to 1,150 of 2,345
  1. The BBCode helper HTML-encoded input but then applied regex replacements that inserted unencoded quotes, allowing attribute breakout.

    Seen in 1 report
  2. The BBCode URL parser failed to sanitise or encode user input, allowing attribute injection.

    Seen in 1 report
  3. The bgcolor parameter was concatenated into a style block without validation or escaping.

    Seen in 1 report
  4. The binary-format allowlist omitted the MathML type, so the file was served inline as active content.

    Seen in 1 report
  5. The blob API served SVG files with a content type that made the browser execute embedded script.

    Seen in 1 report
  6. The blob viewer allowed the use tag and checked its href with a startsWith allow-list instead of resolving the path.

    Seen in 1 report
  7. The blocklist of forbidden attribute substrings used when deciding whether an element is nonceable is incomplete.

    Seen in 1 report
  8. The blur event dispatched during ChildrenChanged ran synchronously without checking the atomic move flag.

    Seen in 1 report
  9. The bookmark URL was validated only in the client-side UI, so the server accepted a javascript: URI sent directly.

    Seen in 1 report
  10. The bookmarks page concatenated user input into jQuery HTML methods and was exposed through web_accessible_resources.

    Seen in 1 report
  11. The branch name was inserted into the merge request page without HTML encoding.

    Seen in 1 report
  12. The branding ID parameter was not validated, allowing path traversal in a script URL and abuse of a callback parameter.

    Seen in 1 report
  13. The browser allowed a top-level navigation to a javascript URL from a sandboxed frame without re-checking the script permission.

    Seen in 1 report
  14. The browser applies the base-uri restriction to the element but still uses the injected base for relative image URLs.

    Seen in 1 report
  15. The browser did not block javascript: URLs entered in the address bar or received via a redirect.

    Seen in 1 report
  16. The browser did not block javascript: URLs used as the target of an HTTP 302 redirect.

    Seen in 1 report
  17. The browser did not enforce attachment disposition for multipart/x-mixed-replace responses.

    Seen in 1 report
  18. The browser did not fully isolate the JavaScript context of a javascript URL when target blank was used.

    Seen in 1 report
  19. The browser did not isolate the origin of a data: URI reached via a 302 redirect.

    Seen in 1 report
  20. The browser did not reset the address bar when opening a non-http URI in a new tab.

    Seen in 1 report
  21. The browser failed to isolate a javascript: URL opened via a new window from the top-level origin.

    Seen in 1 report
  22. The browser kept the origin of the initiating document when reloading an isolated data: URL.

    Seen in 1 report
  23. The browser process merged renderer-supplied DevTools session state without validating which keys or values were allowed.

    Seen in 1 report
  24. The browser reused a stored search term as a navigable address without validating its scheme.

    Seen in 1 report
  25. The browser treated its own resource scripts as trusted for policy purposes, so a page could load a bundled loader and have it run attacker-supplied code.

    Seen in 1 report
  26. The browser's 'strict-dynamic' handling wrongly allowed inline event handler attributes on certain elements instead of blocking them.

    Seen in 1 report
  27. The browser's policy implementation did not apply the script-src none restriction to SVG accessKey event handlers.

    Seen in 1 report
  28. The bucket allowed unauthenticated PUT requests and served uploaded files and admin JavaScript from writable public storage.

    Seen in 1 report
  29. The bulk editing page reflected URL parameters into HTML without encoding.

    Seen in 1 report
  30. The business name was not sanitised or encoded before being stored and rendered in invitation emails.

    Seen in 1 report
  31. The cache did not include the X-Forwarded-Host and X-Rewrite-Url headers in its cache key, and the OAuth callback handler used a cookie value to determine the redirect destination without proper validation.

    Seen in 1 report
  32. The cache stored the response after sanitisation only on the first request, so a repeated request returned raw input.

    Seen in 1 report
  33. The caching layer and application parsing duplicate cookies differently, and the application reflecting cookie values into a script context without sanitisation.

    Seen in 1 report
  34. The calendar invitation's meeting link was rendered without proper output encoding.

    Seen in 1 report
  35. The cancel_url parameter was written into the DOM without sanitisation.

    Seen in 1 report
  36. The card name input was stored and rendered without HTML encoding.

    Seen in 1 report
  37. The card renderer reflected user input into an inline JSON block without safely escaping the closing script tag, and the CSP allowed a JSONP endpoint on a whitelisted domain.

    Seen in 1 report
  38. The careers site reflected input without encoding, and an analytics endpoint reflected a callback parameter into JavaScript without validation.

    Seen in 1 report
  39. The cart property value was stored and inserted into the page without output encoding.

    Seen in 1 report
  40. The category_id parameter was included in the HTML response without sanitisation or encoding.

    Seen in 1 report
  41. The CDN did not enforce a safe content type and angle brackets in uploaded files were not encoded.

    Seen in 1 report
  42. The CDN did not enforce a safe content type or Content-Disposition header, and the image pipeline preserved attacker data in PNG IDAT chunks.

    Seen in 1 report
  43. The CDN update process did not fetch the newly released fixed library version.

    Seen in 1 report
  44. The cfg parameter was inserted into a script context without escaping the backslash character.

    Seen in 1 report
  45. The CGI script echoed query parameters into the HTML response without encoding or validating them.

    Seen in 1 report
  46. The CGI script passed the email parameter into HTML output and into a shell command without sanitising or escaping.

    Seen in 1 report
  47. The change handler wrote user-controlled values into the DOM with unsafe insertion rather than text-safe methods.

    Seen in 1 report
  48. The channel API stored raw HTML and select boxes were built without encoding.

    Seen in 1 report
  49. The charset parameter was reflected without encoding and the WAF blocklist missed a tag and event pair.

    Seen in 1 report
  50. The chat feature did not sanitise HTML before including it in email notifications.

    Seen in 1 report