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,051 to 1,100 of 2,345
  1. The application set a cookie without the HttpOnly attribute in its Set-Cookie header.

    Seen in 1 report
  2. The application set an incorrect Content-Type header for the response, possibly due to a misconfiguration or a bug in how the content type is determined.

    Seen in 1 report
  3. The application stored the User-Agent header and later rendered it in an HTML option tag without output encoding.

    Seen in 1 report
  4. The application stored user input without sanitisation and allowed unrestricted file uploads to a web-accessible directory.

    Seen in 1 report
  5. The application stored user-supplied story content and rendered it without proper output encoding or sanitisation.

    Seen in 1 report
  6. The application stored user-supplied XML content and later rendered it on the print page without properly encoding or sanitising it.

    Seen in 1 report
  7. The application stored usernames without output encoding, exposed a phpinfo page reflecting request headers, and passed an unvalidated URL into include() with remote inclusion enabled.

    Seen in 1 report
  8. The application treated possession of an invitation code as sufficient authorisation without binding it to the requester, and stored and rendered answers without output escaping.

    Seen in 1 report
  9. The application treated the filename as trusted metadata and rendered it without output encoding while all validation focused on file contents.

    Seen in 1 report
  10. The application trusted a third-party rich text editor's built-in sanitisation and inserted user content directly without additional encoding.

    Seen in 1 report
  11. The application trusted client-side validation and did not sanitise input on the server before storing and exporting it.

    Seen in 1 report
  12. The application trusted the callbackUrl parameter without validating it pointed to a safe internal location and allowed javascript: URLs.

    Seen in 1 report
  13. The application trusted the file extension and client-supplied MIME type instead of validating the actual file content, and served SVGs as image/svg+xml on the same origin.

    Seen in 1 report
  14. The application trusted the landing page cookie and inserted it into an anchor href without validating the scheme.

    Seen in 1 report
  15. The application trusted the X-Forwarded-For header and inserted it into the page without sanitisation while only validating the User-Agent.

    Seen in 1 report
  16. The application URL-decoded the token and inserted it into an HTML attribute without context-aware encoding, and the session cookie lacked HttpOnly.

    Seen in 1 report
  17. The application used AngularJS to render user-controlled input (the name field and a default property value) without sanitising it, leading to client-side template injection.

    Seen in 1 report
  18. The application used dangerouslySetInnerHTML to render JSON-LD and concatenated the search term into that JSON without encoding.

    Seen in 1 report
  19. The application used default credentials on the login page and failed to validate uploaded file types, allowing HTML files to be stored and served with a content type that browsers render.

    Seen in 1 report
  20. The application used eval on data from an API response without validating or sanitising it.

    Seen in 1 report
  21. The application used non-root-relative paths for resources and the web server resolved path-info after the file extension.

    Seen in 1 report
  22. The application used the last url parameter for signature verification while the browser used the first, and the frontend rendered the unsanitised URL.

    Seen in 1 report
  23. The application uses AngularJS to render user-controlled profile name fields without proper sanitisation, allowing expression injection.

    Seen in 1 report
  24. The application validated file types by checking only the file extension and did not properly handle null bytes or inspect file content.

    Seen in 1 report
  25. The array parameter was reflected into the response body without encoding, and the multipart/mixed content type caused Internet Explorer to sniff it as HTML.

    Seen in 1 report
  26. The assertion consumer service location was not checked against the declared binding syntax and was inserted into a form action unsanitised.

    Seen in 1 report
  27. The attachment file name was output without HTML escaping in the media list table and attachment page templates.

    Seen in 1 report
  28. The attachment filename was not escaped when included in the JSON response and was later inserted into the DOM without sanitisation.

    Seen in 1 report
  29. The attribute filtering uses case-sensitive matching, so uppercase scripting attributes created via DOM APIs are serialised into the archive.

    Seen in 1 report
  30. The audio and video onebox parsers mishandled single quotes in user-supplied URLs.

    Seen in 1 report
  31. The auditor's pattern matching missed an unclosed base tag and quote characters below the injection point.

    Seen in 1 report
  32. The auth query parameter was inserted directly into a JavaScript context without validation or encoding.

    Seen in 1 report
  33. The author name was read from the DOM and re-inserted via an HTML-building function without encoding.

    Seen in 1 report
  34. The author_url derived from the commit email was marked HTML-safe and inserted into an anchor without sanitisation.

    Seen in 1 report
  35. The auto-link regular expression matched any word characters before a colon instead of restricting to safe schemes.

    Seen in 1 report
  36. The auto-URL regex assumed parentheses were removed by encoding, and the theme import stored the templateset property without sanitisation before using it in a SQL query.

    Seen in 1 report
  37. The autocomplete endpoint returned stored organisation names without output encoding.

    Seen in 1 report
  38. The autofill script built JavaScript by concatenating user-controlled card fields without escaping.

    Seen in 1 report
  39. The automatic syntax-highlighting-off path for files over 256kB rendered the file content without HTML escaping, unlike the manual highlight-off path.

    Seen in 1 report
  40. The autosuggest rendered input without sanitisation and the application lacked anti-framing headers for authenticated users.

    Seen in 1 report
  41. The backend accepted markup in a plain-text field and the support-mail template inserted it into an HTML context without encoding.

    Seen in 1 report
  42. The backend checks only that the URL contains the CDN domain, not that it belongs to the organisation's tenant path.

    Seen in 1 report
  43. The backend did not enforce the same input validation and password policy as the frontend.

    Seen in 1 report
  44. The backend filtered some characters but the frontend inserted the same data into a different context without matching escaping.

    Seen in 1 report
  45. The backend serialised user data into a JSON script element without escaping the sequence that terminates the script element.

    Seen in 1 report
  46. The backend trusted the file extension and Content-Type header instead of validating the actual file content with magic bytes.

    Seen in 1 report
  47. The badge name, description and key display name were stored and rendered without output encoding or input sanitisation.

    Seen in 1 report
  48. The badge renderer decoded HTML entities after substituting untrusted profile values and passed the result to a UI component without output escaping.

    Seen in 1 report
  49. The banner block description was rendered without output encoding or sanitisation.

    Seen in 1 report
  50. The banner identifier was written into HTML form fields without HTML encoding.

    Seen in 1 report