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.
-
The server did not sanitise crafted web requests before reflecting or storing them in pages.
Seen in 48 reports
-
Servers failed to sanitise or encode user-supplied input in a crafted web request before reflecting or storing it.
Seen in 23 reports
-
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
-
User input was reflected into HTML responses without output encoding.
Seen in 19 reports
-
Crafted web requests were not sanitised before being reflected or stored in pages.
Seen in 18 reports
-
User-supplied input was inserted into generated web pages without encoding or validation.
Seen in 16 reports
-
The application failed to sanitise or encode user-supplied input before rendering it in a page.
Seen in 12 reports
-
User input was reflected into HTML attributes or page bodies without output encoding.
Seen in 12 reports
-
SharePoint did not properly sanitise a specially crafted web request before reflecting or storing it in a page.
Seen in 9 reports
-
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
-
Upload features validated only by extension, content type or magic bytes and served files from the same origin.
Seen in 9 reports
-
Filenames were concatenated into listing HTML without output encoding.
Seen in 8 reports
-
User input was reflected or stored and rendered without context-aware output encoding across many reports.
Seen in 8 reports
-
User-supplied input was inserted into generated web pages without proper encoding or sanitisation.
Seen in 8 reports
-
Directory listings concatenated raw file names into HTML anchors without escaping.
Seen in 6 reports
-
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
-
User input was reflected into HTML attributes, headings or script blocks without context-aware encoding.
Seen in 6 reports
-
User input was inserted into generated web pages without proper encoding or sanitisation.
Seen in 6 reports
-
Sanitisers and browsers parse the same markup differently, so output re-parses into executable markup.
Seen in 5 reports
-
Search input was reflected into the page without output encoding.
Seen in 5 reports
-
The serialiser appends decoded identifiers or strings raw instead of applying the CSSOM identifier-escaping algorithm.
Seen in 5 reports
-
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
-
The requested URL path is reflected into the error page without encoding or validation.
Seen in 5 reports
-
The sanitiser's allowlist logic mishandled combinations of style with math, svg or noscript elements, letting dangerous markup pass.
Seen in 5 reports
-
Uploaded files were served from the main application origin without forcing download or sandboxing.
Seen in 5 reports
-
User input was inserted into JavaScript string literals without escaping quotes.
Seen in 5 reports
-
User-supplied input in a URL was not properly encoded or validated before reflection.
Seen in 5 reports
-
Network-supplied strings were interpolated into HTML templates and passed through a permissive sanitiser instead of being escaped.
Seen in 4 reports
-
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
-
postMessage listeners lacked origin validation and passed message content to sensitive sinks.
Seen in 4 reports
-
Query parameters were inserted into double-quoted JavaScript strings without escaping quotes or angle brackets.
Seen in 4 reports
-
User input from the URL is reflected into the page without encoding or validation.
Seen in 4 reports
-
User input was reflected into HTML, attributes or JavaScript without context-appropriate output encoding.
Seen in 4 reports
-
User input was reflected into an HTML attribute value without encoding the quote character or angle brackets.
Seen in 4 reports
-
User-supplied input was not properly encoded or sanitised before being placed into generated web pages.
Seen in 4 reports
-
Accepting SVG uploads and serving them without sanitising active content.
Seen in 3 reports
-
Attacker-controlled name was interpolated into a Markdown-formatted message without escaping metacharacters.
Seen in 3 reports
-
Client-side code wrote untrusted values into innerHTML or jQuery.append instead of text content.
Seen in 3 reports
-
Endpoints did not validate or encode user-supplied data before reflecting it.
Seen in 3 reports
-
Inserting user-controlled URL parameters into the DOM without encoding.
Seen in 3 reports
-
Listeners that check the sender origin with a substring match or skip the origin check entirely.
Seen in 3 reports
-
The site relied on a pattern-based WAF instead of proper escaping.
Seen in 3 reports
-
Self-XSS came from unsanitised profile input, and user input was reflected into the server's Cookie header without sanitisation.
Seen in 3 reports
-
Sensitive endpoints such as login, logout and account changes lacked CSRF protection.
Seen in 3 reports
-
The font matrix from a PDF was inserted into a dynamically generated JavaScript function without validation.
Seen in 3 reports
-
The image endpoint accepted user-controlled input that decided the image source without adequate validation.
Seen in 3 reports
-
The markup renderers allowed javascript: URLs in links without validating the target.
Seen in 3 reports
-
The server left the TRACE method enabled, echoing request headers including cookies.
Seen in 3 reports
-
Upload validation trusted the file extension or client-supplied content type instead of the actual content.
Seen in 3 reports
-
Uploads checked only that the file is an image, without blocking active content.
Seen in 3 reports