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.
-
Two input-filtering mechanisms interpret the same login input differently.
-
Dynamic client registration was unauthenticated with no redirect URI validation and unsanitised client data.
Seen in 1 report
-
Unescaped source names were passed to a wrapping function and inserted with dangerouslySetInnerHTML.
Seen in 1 report
-
Unescaped text was passed into a DOM replacement function that treats its argument as HTML.
Seen in 1 report
-
Unfiltered input was passed to the editor's insertHtml and the default filter was bypassed with a crafted attribute.
Seen in 1 report
-
Unfiltered request parameters were passed straight to a link helper, letting protocol and host be injected.
-
An unknown attribute name from a JSON POST was reflected into an HTML error response.
Seen in 1 report
-
Unnormalised slug concatenation into a fetch path, a redirect filter that only checked for http or https prefixes instead of parsing the URL, and rendering API content with innerHTML combined into one-click XSS.
Seen in 1 report
-
Unrestricted uploads were served with an HTML content type.
Seen in 1 report
-
Unsanitised input was reflected into the DOM and the caching layer stored the response.
Seen in 1 report
-
Unsanitised URL input in a WebView's JavaScript evaluation, insufficient scheme validation, and a zip extraction routine that skipped path traversal checks due to a false flag.
Seen in 1 report
-
Untrusted content was inserted into the DOM as raw HTML without sanitising.
Seen in 1 report
-
Untrusted data from a data file was rendered into a local HTML page without sanitising.
Seen in 1 report
-
Untrusted image src values were inserted into HTML output without encoding.
Seen in 1 report
-
Untrusted input from a redirect URL parameter and a URL path segment was placed into an executable context without scheme validation or output encoding.
-
Untrusted input reached dangerous sinks (jQuery AJAX without a data type, an iframe src, an anchor href) without validation.
Seen in 1 report
-
Untrusted issue summaries were placed into an HTML attribute and rendered as HTML through a React tooltip without escaping.
Seen in 1 report
-
Untrusted item descriptions and thread messages were assigned to innerHTML before proper sanitisation.
-
The upload API did not validate file extensions and MIME types, so HTML files were served with an executable content type.
Seen in 1 report
-
Upload handling trusted the client-supplied MIME type and served the file from a subdomain without a strict sandbox.
Seen in 1 report
-
The upload initiation endpoint was unauthenticated and Content-Type was not bound into the presigned signature, with the CDN serving content inline without nosniff.
-
Upload validation checked only the final extension and the served content type followed the filename.
Seen in 1 report
-
Upload validation only confirmed the file was a well-formed PDF and did not strip active content, and the file was served inline without an attachment disposition or restrictive CSP.
-
Upload validation relies on a short blocklist and only scans the first 256 bytes.
-
Upload validation trusted the declared content type and searched for the PDF signature anywhere in the body, ignoring the extension.
Seen in 1 report
-
Upload validation trusted the filename extension and leading signature rather than the whole file.
Seen in 1 report
-
Uploaded documents are not validated for type or content before being served to other users.
Seen in 1 report
-
The uploaded filename was concatenated into an HTML template without sanitisation and the PDF renderer executed scripts and allowed local file access.
Seen in 1 report
-
Uploaded files were served inline without sanitising contents, with sequential identifiers and no ownership check.
Seen in 1 report
-
Uploaded files were accepted without content validation and served from a public cloud storage endpoint in a way the browser executes embedded script.
Seen in 1 report
-
Uploaded files were served without a Content-Type header, letting browsers sniff them as HTML.
Seen in 1 report
-
Uploaded files were served without a safe Content-Type or Content-Disposition header, and session cookies lacked the HttpOnly flag.
Seen in 1 report
-
Uploaded HTML files were served without a safe Content-Disposition header or sanitisation, so the browser rendered them as active content.
Seen in 1 report
-
Uploaded images could be served with a script-compatible content type or without proper CSP restrictions.
Seen in 1 report
-
Uploaded PDFs were rendered in a context that let embedded JavaScript run in the browser origin instead of a sandboxed viewer.
Seen in 1 report
-
Uploaded SVG files are not sanitised and are served from the same origin without a Content-Security-Policy.
Seen in 1 report
-
Uploaded SVG files are served without a policy that stops embedded scripts.
Seen in 1 report
-
Medium
-
-
Uploaded SVG files were served with an SVG content type and no CSP or attachment disposition.
Seen in 1 report
-
URL content is reflected without encoding and inserted into an HTML attribute without escaping.
Seen in 1 report
-
URL detection logic did not decode CSS escape sequences before checking for image URLs.
Seen in 1 report
-
URL fragment parameters were merged into objects without sanitising keys and later used as attribute values.
Seen in 1 report
-
URL generation inserted GET parameters into the page without HTML encoding.
-
A URL parameter was inserted into the page using innerHTML instead of text.
Seen in 1 report
-
URL parameter values were echoed into the HTML response without encoding or filtering.
-
URL parameter values were passed directly into eval without sanitisation, and session tokens were not rotated on login.
Seen in 1 report
-
URL parameter values were reflected into HTML without output encoding and the WAF blocklist was incomplete.
Seen in 1 report
-
URL parameters and location.href were written into the page without proper sanitisation.
Seen in 1 report
-
URL parameters were passed directly into link href attributes without scheme validation.
Seen in 1 report
-
URL parameters were passed into page output and database queries without validation or parameterisation.
Seen in 1 report
-
URL path input was not sanitised before use in a response header.