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 to 50 of 2,345
  1. The server did not sanitise crafted web requests before reflecting or storing them in pages.

    Seen in 48 reports
  2. Servers failed to sanitise or encode user-supplied input in a crafted web request before reflecting or storing it.

    Seen in 23 reports
  3. Name fields were stored and rendered without sanitisation or HTML encoding in pages, admin panels and emails, including verification, meeting notifications, signup, newsletter, return and invitation emails, contacts, follow buttons, dashboards and account pages.

    Seen in 20 reports
  4. User input was reflected into HTML responses without output encoding.

    Seen in 19 reports
  5. Crafted web requests were not sanitised before being reflected or stored in pages.

    Seen in 18 reports
  6. User-supplied input was inserted into generated web pages without encoding or validation.

    Seen in 16 reports
  7. The application failed to sanitise or encode user-supplied input before rendering it in a page.

    Seen in 12 reports
  8. User input was reflected into HTML attributes or page bodies without output encoding.

    Seen in 12 reports
  9. SharePoint did not properly sanitise a specially crafted web request before reflecting or storing it in a page.

    Seen in 9 reports
  10. The applications lacked fixes for known ASP.NET Core template issues in the authenticator setup page and recovery code generation page.

    Seen in 9 reports
  11. Upload features validated only by extension, content type or magic bytes and served files from the same origin.

    Seen in 9 reports
  12. Filenames were concatenated into listing HTML without output encoding.

    Seen in 8 reports
  13. User input was reflected or stored and rendered without context-aware output encoding across many reports.

    Seen in 8 reports
  14. User-supplied input was inserted into generated web pages without proper encoding or sanitisation.

    Seen in 8 reports
  15. Directory listings concatenated raw file names into HTML anchors without escaping.

    Seen in 6 reports
  16. Profile fields were stored without sanitisation and rendered without output encoding in admin panels, support panels and to other users, and uploads allowed executable files.

    Seen in 6 reports
  17. User input was reflected into HTML attributes, headings or script blocks without context-aware encoding.

    Seen in 6 reports
  18. User input was inserted into generated web pages without proper encoding or sanitisation.

    Seen in 6 reports
  19. Sanitisers and browsers parse the same markup differently, so output re-parses into executable markup.

    Seen in 5 reports
  20. Search input was reflected into the page without output encoding.

    Seen in 5 reports
  21. The serialiser appends decoded identifiers or strings raw instead of applying the CSSOM identifier-escaping algorithm.

    Seen in 5 reports
  22. Stored values such as product names, product types and branding fields were output into admin views as raw HTML without encoding.

    Seen in 5 reports
  23. The requested URL path is reflected into the error page without encoding or validation.

    Seen in 5 reports
  24. The sanitiser's allowlist logic mishandled combinations of style with math, svg or noscript elements, letting dangerous markup pass.

    Seen in 5 reports
  25. Uploaded files were served from the main application origin without forcing download or sandboxing.

    Seen in 5 reports
  26. User input was inserted into JavaScript string literals without escaping quotes.

    Seen in 5 reports
  27. User-supplied input in a URL was not properly encoded or validated before reflection.

    Seen in 5 reports
  28. Network-supplied strings were interpolated into HTML templates and passed through a permissive sanitiser instead of being escaped.

    Seen in 4 reports
  29. Part of the URL path was reflected into the HTML response without encoding or sanitisation, including on verification pages and a SAP portal.

    Seen in 4 reports
  30. postMessage listeners lacked origin validation and passed message content to sensitive sinks.

    Seen in 4 reports
  31. Query parameters were inserted into double-quoted JavaScript strings without escaping quotes or angle brackets.

    Seen in 4 reports
  32. User input from the URL is reflected into the page without encoding or validation.

    Seen in 4 reports
  33. User input was reflected into HTML, attributes or JavaScript without context-appropriate output encoding.

    Seen in 4 reports
  34. User input was reflected into an HTML attribute value without encoding the quote character or angle brackets.

    Seen in 4 reports
  35. User-supplied input was not properly encoded or sanitised before being placed into generated web pages.

    Seen in 4 reports
  36. Accepting SVG uploads and serving them without sanitising active content.

    Seen in 3 reports
  37. Attacker-controlled name was interpolated into a Markdown-formatted message without escaping metacharacters.

    Seen in 3 reports
  38. Client-side code wrote untrusted values into innerHTML or jQuery.append instead of text content.

    Seen in 3 reports
  39. Endpoints did not validate or encode user-supplied data before reflecting it.

    Seen in 3 reports
  40. Inserting user-controlled URL parameters into the DOM without encoding.

    Seen in 3 reports
  41. Listeners that check the sender origin with a substring match or skip the origin check entirely.

    Seen in 3 reports
  42. The site relied on a pattern-based WAF instead of proper escaping.

    Seen in 3 reports
  43. Self-XSS came from unsanitised profile input, and user input was reflected into the server's Cookie header without sanitisation.

    Seen in 3 reports
  44. Sensitive endpoints such as login, logout and account changes lacked CSRF protection.

    Seen in 3 reports
  45. The font matrix from a PDF was inserted into a dynamically generated JavaScript function without validation.

    Seen in 3 reports
  46. The image endpoint accepted user-controlled input that decided the image source without adequate validation.

    Seen in 3 reports
  47. The markup renderers allowed javascript: URLs in links without validating the target.

    Seen in 3 reports
  48. The server left the TRACE method enabled, echoing request headers including cookies.

    Seen in 3 reports
  49. Upload validation trusted the file extension or client-supplied content type instead of the actual content.

    Seen in 3 reports
  50. Uploads checked only that the file is an image, without blocking active content.

    Seen in 3 reports