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,251 to 1,300 of 2,345
  1. The decline-note field was rendered as HTML without sanitisation, unlike the other invite fields that were filtered.

    Seen in 1 report
  2. The decrypted cookie value was rendered without sanitisation, and front-end and back-end servers disagreed on request boundaries.

    Seen in 1 report
  3. The decrypted message was inserted into the page as HTML inside a textarea without escaping or sanitising it, allowing tag breakout.

    Seen in 1 report
  4. The deep link handler did not validate the URL, and the WebView leaked the access token in the Authorization header.

    Seen in 1 report
  5. The default branch name was not escaped when rendered in the duplicate dashboard modal.

    Seen in 1 report
  6. The default sanitiser used a regular expression that only removed script elements.

    Seen in 1 report
  7. The default webcal protocol handler sends the full webcal URL to a third-party site that reflects it into a page without sanitisation.

    Seen in 1 report
  8. The defaulted copy constructor for keyframes rules shallow-copied keyframe pointers, and Reattach did not reattach child CSSOM wrappers, so mutations reached the shared stylesheet.

    Seen in 1 report
  9. The description field allows raw HTML, and the partner site renders it without escaping.

    Seen in 1 report
  10. The description field was stored and rendered without output encoding.

    Seen in 1 report
  11. The description parameter of a bot app manifest was not validated or sanitised.

    Seen in 1 report
  12. The design filename was not escaped before being inserted into an HTML attribute, and the markdown link generator used string interpolation.

    Seen in 1 report
  13. The desktop client exposed Electron's shell.openExternal to untrusted webview content without restricting URLs or schemes.

    Seen in 1 report
  14. The destination parameter was not validated before use in a redirect, and the password was stored in a cookie without HttpOnly.

    Seen in 1 report
  15. The destination parameter was passed to a redirect or navigation sink without checking for a safe http(s) URL.

    Seen in 1 report
  16. The destination parameter was validated with a loose pattern that only required a whitelisted hostname to appear after any scheme, and the value was written into a script context where duplicate parameters were joined.

    Seen in 1 report
  17. The devtools evaluation API was missing from the list of APIs restricted on a protected domain.

    Seen in 1 report
  18. The diagnostics feature failed to sanitise or encode filenames before rendering them in a web page.

    Seen in 1 report
  19. The directory listing code concatenated the request path into HTML without escaping it, and the path could be manipulated through traversal sequences.

    Seen in 1 report
  20. The directory listing template inserted file and folder names into HTML without encoding or validating them.

    Seen in 1 report
  21. The directory path was inserted into the index page without HTML encoding, unlike file names.

    Seen in 1 report
  22. The disabled-attribute handler created a local event queue scope that flushed events synchronously, and the atomic move did not wrap its operation in an outer event queue scope.

    Seen in 1 report
  23. The disabled-or-readonly handler released mouse capture without an event queue scope, so the change event ran synchronously in the middle of an atomic DOM move.

    Seen in 1 report
  24. The discussion title was stored and rendered into the email view without output encoding.

    Seen in 1 report
  25. The display-attachment endpoint set only Content-Type and streamed HTML bodies directly, unlike the general viewer which wraps HTML safely and sets a script-blocking CSP.

    Seen in 1 report
  26. The document title was inserted into a JavaScript string without output encoding.

    Seen in 1 report
  27. The domain of a script URL was validated with weak regular expressions or string parsing instead of a strict comparison.

    Seen in 1 report
  28. The domain validation regex was not anchored to the start of the string, and the response was inserted via innerHTML without sanitisation.

    Seen in 1 report
  29. The drag-and-drop handler did not sanitise dropped content.

    Seen in 1 report
  30. The dst parameter was reflected into a JavaScript context without sanitisation, and the auth cookie lacked the Secure flag.

    Seen in 1 report
  31. The edit endpoint used a predictable numeric identifier without checking the admin's organisation.

    Seen in 1 report
  32. The editor did not sanitise content before rendering, and the copy action triggered rendering of stored markup.

    Seen in 1 report
  33. The editor field stored and rendered HTML tags such as iframes without filtering or sanitising.

    Seen in 1 report
  34. The element picker accepted messages from any website without authentication, and an option field was not sanitised, allowing newline injection.

    Seen in 1 report
  35. The element-path renderer inserted a decoded data attribute as HTML rather than text, and a development commit removed the setting that had disabled this path.

    Seen in 1 report
  36. The email address parameter on one path was not sanitised or encoded, while similar forms elsewhere blocked the payload.

    Seen in 1 report
  37. The email address was inserted into the HTML email template without sanitisation or validation.

    Seen in 1 report
  38. The email body is not sanitised, allowing HTML tags to render.

    Seen in 1 report
  39. The email change form did not verify the request came from the user, such as by requiring the current password.

    Seen in 1 report
  40. The email content filter did not block a link tag with an import relation.

    Seen in 1 report
  41. The email field value was echoed into the response without encoding.

    Seen in 1 report
  42. The email field was not sanitised or encoded before being reflected in the response.

    Seen in 1 report
  43. The email field was reflected unsanitised, the auth cookie was shared across subdomains, and the API allowed cross-origin requests from any subdomain.

    Seen in 1 report
  44. The email input was rendered without the output encoding applied to other fields.

    Seen in 1 report
  45. The email preview text was embedded into a script block without encoding angle brackets, so the script tag could be closed and new script injected.

    Seen in 1 report
  46. The email query parameter was reflected into the HTML page without proper output encoding or validation.

    Seen in 1 report
  47. The email service inserted the display name into outgoing mail HTML without encoding.

    Seen in 1 report
  48. The email subject was inserted into the reply view without output encoding.

    Seen in 1 report
  49. The email template rendered the video title without HTML-encoding it.

    Seen in 1 report
  50. The email-to-friend endpoint lacked an authorisation check on the BlogID parameter.

    Seen in 1 report