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,051 to 2,100 of 2,345
  1. The uploader checked only the file extension, not the content or the type finally served.

    Seen in 1 report
  2. The uploader trusted the client-supplied chunk identifier as a path and served chunks without a safe content type or extension.

    Seen in 1 report
  3. The URI scheme allow-list in the sanitiser was incomplete and new-tab links omitted rel=noopener.

    Seen in 1 report
  4. The URL field accepts absolute URLs without validating the scheme.

    Seen in 1 report
  5. The URL fragment was used as input to a jQuery HTML insertion sink without sanitising it.

    Seen in 1 report
  6. The URL from the intent was concatenated into an HTML string without encoding, so quote characters broke out of the img src attribute.

    Seen in 1 report
  7. The URL hash was split and passed to eval without sanitisation.

    Seen in 1 report
  8. The URL parameter was echoed into the page without output encoding, and the password-change endpoint lacked a CSRF token or origin check.

    Seen in 1 report
  9. The url parameter was not sanitised when it carried a file scheme, so markup was rendered despite the existing sanitiser.

    Seen in 1 report
  10. The URL parser did not strip control characters before extracting the protocol, so its check saw a different scheme than the browser did.

    Seen in 1 report
  11. The URL parsing code only encoded the last @ character, so the actual domain was treated as the username portion of the URL.

    Seen in 1 report
  12. The URL path was reflected into an HTML comment without encoding, allowing the comment to be closed.

    Seen in 1 report
  13. The URL restriction was only enforced for http and https schemes, leaving other supported schemes like FTP and Gopher unchecked.

    Seen in 1 report
  14. The URL scheme in a link field was not validated, so a script scheme was stored and rendered as a clickable link.

    Seen in 1 report
  15. The URL scheme of the parameter was not validated before reflection into an href.

    Seen in 1 report
  16. The URL was echoed into a hidden input's value attribute without encoding, allowing attribute breakout.

    Seen in 1 report
  17. The user input value was echoed directly to the view without filtering.

    Seen in 1 report
  18. The user name field was not properly sanitised before rendering in the navigation bar.

    Seen in 1 report
  19. The user name was not sanitised before being placed in an image alt attribute.

    Seen in 1 report
  20. The user-controlled next parameter was rendered directly into HTML and JavaScript template contexts without escaping or URL scheme validation.

    Seen in 1 report
  21. The user-supplied content type header was reflected into an error response without sanitisation.

    Seen in 1 report
  22. The username from the profile update request was stored without sanitisation and rendered without encoding.

    Seen in 1 report
  23. The username input was reflected into the page without HTML encoding, allowing attribute breakout.

    Seen in 1 report
  24. The username parameter was echoed into the page without encoding.

    Seen in 1 report
  25. The username parameter was inserted into the HTML form without output encoding and the form had no anti-CSRF token.

    Seen in 1 report
  26. The username parameter was written into the HTML response without output encoding.

    Seen in 1 report
  27. The username path segment was inserted into HTML attributes and text without encoding or validation.

    Seen in 1 report
  28. The username value was inserted into the approval email HTML without encoding.

    Seen in 1 report
  29. The Username value was rendered in an AngularJS context without sanitisation, so template expressions were evaluated as code.

    Seen in 1 report
  30. The username value was written into the page's HTML without encoding.

    Seen in 1 report
  31. The username was inserted with jQuery's .html() instead of .text().

    Seen in 1 report
  32. The username was not sanitised before being inserted into a meta tag content attribute, allowing attribute injection via single quotes, and a CSRF misconfiguration allowed username changes.

    Seen in 1 report
  33. The username was stored without sanitising HTML and later rendered unescaped in the password reset email.

    Seen in 1 report
  34. The userPage parameter is reflected without output encoding.

    Seen in 1 report
  35. The utm_source query parameter was written into an HTML attribute without encoding or quoting.

    Seen in 1 report
  36. The v3 API accepted arbitrary text in a URL field without requiring a scheme prefix.

    Seen in 1 report
  37. The validation endpoint returned plaintext credentials and its tokens could be leaked through script inclusion.

    Seen in 1 report
  38. The validator allowed id attributes and the runtime used clobberable globals to build script URLs.

    Seen in 1 report
  39. The validator used a case-sensitive blacklist for the script scheme and did not enforce that the URL strictly begins with http or https.

    Seen in 1 report
  40. The video BBCode parser called a URL decoder on the URL after the regex filter, letting encoded BBCode break out of HTML attributes.

    Seen in 1 report
  41. The video name parameter was echoed directly into an HTML comment without sanitisation.

    Seen in 1 report
  42. The video title is stored without sanitisation and inserted into HTML without escaping.

    Seen in 1 report
  43. The video title was inserted into search results and suggestion lists without output encoding.

    Seen in 1 report
  44. The viewer did not isolate the execution context for multipart/x-mixed-replace responses, so a later HTML part ran with the viewer origin.

    Seen in 1 report
  45. The vlan_id parameter was inserted into HTML without sanitisation.

    Seen in 1 report
  46. The VNC client trusted server data and OpenStack packaging kept an old vulnerable copy.

    Seen in 1 report
  47. The WAF and back-end filters failed to normalise input, letting control characters, percent signs and Unicode best-fit matching produce angle brackets.

    Seen in 1 report
  48. The WAF blocklist omitted certain functions and event handlers and the return URL was inserted into a javascript: URI without sanitisation.

    Seen in 1 report
  49. The WAF only validated the first occurrence of a repeated parameter.

    Seen in 1 report
  50. The WAF relied on a blocklist of tags and handlers rather than encoding input.

    Seen in 1 report