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,001 to 1,050 of 2,345
  1. The application did not validate the content type of uploaded files, allowing HTML with script to be stored and served.

    Seen in 1 report
  2. The application did not validate the origin of incoming postMessage events and passed message data directly into innerHTML.

    Seen in 1 report
  3. The application echoed the raw URL contents into an error page without encoding or filtering them.

    Seen in 1 report
  4. The application escaped characters that break out of the string but did not neutralise template expression syntax.

    Seen in 1 report
  5. The application failed to encode or validate user input before reflecting it into HTML or using it as a redirect target.

    Seen in 1 report
  6. The application failed to encode user-controlled first and last names when reflecting them on the template information page.

    Seen in 1 report
  7. The application failed to encode user-supplied input when rendering the publication name in the notifications widget.

    Seen in 1 report
  8. The application failed to HTML-encode the page title before inserting it into the page.

    Seen in 1 report
  9. The application failed to neutralise user-supplied input when generating web pages, letting crafted content influence what the browser displays in the address bar.

    Seen in 1 report
  10. The application failed to properly encode or escape user input before inserting it into a JavaScript string context.

    Seen in 1 report
  11. The application failed to properly encode or validate user-supplied input (the variant option name) before rendering it in the Buy Button page's variant title element.

    Seen in 1 report
  12. The application failed to sanitise or encode user-supplied filenames before inserting them into HTML, allowing a double quote to break out of an attribute context.

    Seen in 1 report
  13. The application failed to sanitise or encode user-supplied input before including it in the email body.

    Seen in 1 report
  14. The application failed to sanitise or encode user-supplied network names before rendering them in the browser.

    Seen in 1 report
  15. The application failed to sanitise user input and used raw SQL string concatenation in the login query.

    Seen in 1 report
  16. The application failed to sanitise user-supplied input in the email body template, allowing HTML injection.

    Seen in 1 report
  17. The application failed to validate the URL scheme and allowed javascript: URIs in a link rendered without sanitisation.

    Seen in 1 report
  18. The application failed to validate the URL scheme in the document link, allowing a javascript: URI to be stored and rendered as a clickable link.

    Seen in 1 report
  19. The application fails to properly sanitise or validate the contents of uploaded ZIP files, allowing script code to be stored and later executed in the browser.

    Seen in 1 report
  20. The application fetched content from a user-supplied URL and rendered it without sanitisation.

    Seen in 1 report
  21. The application loaded a known-vulnerable AngularJS version whose expression sandbox could be bypassed.

    Seen in 1 report
  22. The application mirrors request headers into response headers and Next.js only sets a default Content-Type when one is absent.

    Seen in 1 report
  23. The application name was rendered without sanitisation on the OAuth authorization page.

    Seen in 1 report
  24. The application neither validated that the id parameter was a number nor encoded it before writing it into the HTML response.

    Seen in 1 report
  25. The application passed a user-controlled file path directly to a file-reading function without restricting it to a safe directory, and later served user-uploaded files without proper content-type or sandboxing.

    Seen in 1 report
  26. The application performed input sanitisation only on the client side for the forum topic subject, allowing a crafted request to store a script.

    Seen in 1 report
  27. The application placed user-controlled URL input into the Location header without stripping carriage-return and line-feed characters, permitting header injection.

    Seen in 1 report
  28. The application read baseUrl from the URL and used it directly to set the src of a dynamically created script tag without validation, allowlist or CSP.

    Seen in 1 report
  29. The application reflected part of the URL path into the page without properly encoding it, allowing an event handler attribute to be injected.

    Seen in 1 report
  30. The application reflected request parameters into the HTML response without output encoding, allowing the injected markup to break out of the surrounding form.

    Seen in 1 report
  31. The application reflected search input into HTML and the page title without output encoding.

    Seen in 1 report
  32. The application reflected the raw URL path into the HTML error response without encoding or validation.

    Seen in 1 report
  33. The application reflected the URL path into the 404 error page without encoding or validation, allowing text injection.

    Seen in 1 report
  34. The application reflected the uuid parameter without context-aware encoding and also sent a text/html Content-Type, causing the browser to render the response as HTML.

    Seen in 1 report
  35. The application reflected user input into an HTML attribute without proper encoding, and triple URL encoding bypassed the sanitisation.

    Seen in 1 report
  36. The application reflected user input into the HTML body without output encoding, and the WAF only blocked script tags.

    Seen in 1 report
  37. The application reflected user input without sanitisation in a search function, and its CORS policy trusted any subdomain of the app to access sensitive data endpoints.

    Seen in 1 report
  38. The application reflected user-controlled input (Host header, cookie, POST parameter) without validation or encoding, and the caching layer stored the response containing that input.

    Seen in 1 report
  39. The application reflects the URL path into the error page without proper validation or encoding, only blocking the slash character.

    Seen in 1 report
  40. The application reflects the utm_source parameter into the HTML response without proper output encoding or sanitisation.

    Seen in 1 report
  41. The application relied entirely on client-side JavaScript validation and rendered user input as raw HTML.

    Seen in 1 report
  42. The application relied on a deny-list of executable extensions and MIME types instead of forcing download or sandboxing.

    Seen in 1 report
  43. The application relied on a regex blacklist instead of output encoding.

    Seen in 1 report
  44. The application relied on blacklist filtering that checked for literal dangerous strings without accounting for encoding or browser parsing behaviour.

    Seen in 1 report
  45. The application relied on client-side HTML escaping and JavaScript logic for security.

    Seen in 1 report
  46. The application relied on client-side validation for the competitor domain field and did not sanitise or encode the stored value on output, while the firewall used a blacklist.

    Seen in 1 report
  47. The application relied on escaping forward slashes inside script tags instead of encoding input, and later fields did not escape HTML special characters.

    Seen in 1 report
  48. The application rendered the location name in the Orders Timeline without HTML-encoding or sanitising it.

    Seen in 1 report
  49. The application rendered untrusted input as raw HTML without escaping.

    Seen in 1 report
  50. The application rendered user-supplied file contents and scraped web content without output encoding.

    Seen in 1 report