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.
-
Comment text was echoed into HTML without escaping special characters.
Seen in 1 report
-
Comment text was truncated at the database column limit without sanitisation, producing malformed HTML.
Seen in 1 report
-
Comment-rendering code built HTML by string concatenation and escaped some links but not the blog URL used in jump and document links.
-
Comments were stored and rendered into the profile page without HTML encoding.
Seen in 1 report
-
Concatenating untrusted input into innerHTML without sanitisation and lacking a Content Security Policy.
-
Concatenating user input directly into an XPath expression without escaping.
Seen in 1 report
-
Contact form input was stored and rendered without sanitisation in a custom support view.
Seen in 1 report
-
Contact form input was stored unsanitised and shown in the admin panel without encoding.
Seen in 1 report
-
Content-type validation only checked headers when present.
Seen in 1 report
-
Conversation IDs were derived from public usernames and the server trusted client-supplied identity without ownership checks.
Seen in 1 report
-
Converting input to uppercase was used as a naive filter although JavaScript is case-sensitive.
Seen in 1 report
-
Cookie values inserted into the page without output encoding.
Seen in 1 report
-
Cookie values were written into the Set-Cookie header without stripping carriage return and line feed characters.
Seen in 1 report
-
Coupon parameters were reflected without proper encoding.
-
Creative fields were inserted into VAST XML without escaping, so they were parsed as markup rather than data.
Seen in 1 report
-
CSP applied to proxied content lacked a form-action directive.
-
CSP configured with unsafe-inline and unsafe-eval instead of nonces or hashes.
Seen in 1 report
-
CSP header not consistently applied to all endpoints.
Seen in 1 report
-
CSRF protection accepted any header value as long as it matched the cookie, and a token endpoint exposed valid tokens.
Seen in 1 report
-
CSRF token cookie created without the HttpOnly attribute.
Seen in 1 report
-
CSRF tokens matched only between cookie and header without binding to the session.
Seen in 1 report
-
CSS scoping logic did not handle an unmatched closing curly brace, so later selectors were not scoped.
-
Data obtained through SQL injection was inserted into the page without output encoding.
Seen in 1 report
-
Data URI accepted in an image URL field and rendered where embedded SVG can execute.
Seen in 1 report
-
Dataset metadata was used without context-aware encoding and remote source URLs were not validated.
Seen in 1 report
-
Decoded Base64 data was placed into a link href without checking the URL scheme.
Seen in 1 report
-
Decoded QR string passed to the browser without URL scheme validation.
Seen in 1 report
-
Decoded returnTo value assigned directly to a navigation sink without scheme validation.
Seen in 1 report
-
Decoded scanner output was inserted into the page as HTML rather than plain text.
Seen in 1 report
-
Decoded URL parameter assigned to iframe src without validating the URI scheme after decoding.
Seen in 1 report
-
Default templates populated variables such as logo location, stylesheet, status code and support contact directly from URL parameters.
Seen in 1 report
-
Default WebView settings in Xamarin.Forms on older Android WebView versions allowed JavaScript execution from untrusted content.
Seen in 1 report
-
Description fields from a fetched YAML file were inserted into the page as HTML without sanitising.
Seen in 1 report
-
Direct user input was sanitised but the AI assistant's output was rendered as HTML without sanitisation.
Seen in 1 report
-
Directory listing was enabled on public storage and access controls were missing.
Seen in 1 report
-
Directory names were not sanitised or encoded before display in find file results.
Seen in 1 report
-
Medium
-
-
Display information in the publisher trust dialog was not neutralised before being placed into the page.
Seen in 1 report
-
Display Name input is reflected into the page without HTML encoding.
-
Display names were not sanitised before rendering, and the native client ran injected script in a Node.js context.
Seen in 1 report
-
Display names were not sanitised or encoded before rendering in search results.
Seen in 1 report
-
Displaying user-controlled PDF metadata or filename in chat without HTML encoding.
Seen in 1 report
-
document.referrer passed into a document.write call that builds a script tag without validation.
Seen in 1 report
-
document.write() was used to insert untrusted input into the page without sanitisation.
Seen in 1 report
-
Domain and Range entries were only checked to be arrays, not numbers, before being inserted into generated JavaScript.
-
Double quotes escaped but the closing script tag sequence not escaped.
Seen in 1 report
-
Double quotes in the URL path were not escaped when reflected into HTML attribute values.
Seen in 1 report
-
Double quotes were not encoded when user-supplied URLs were inserted into anchor tags, allowing attribute injection.
Seen in 1 report
-
Double-encoded input was decoded before being placed in the page.
Seen in 1 report
-
Download handling for links inside frames did not keep the frame origin separate from the top origin.
Seen in 1 report
-
Medium
-
-
Download handling of a javascript: URL in a child frame did not re-check the frame origin and ran the script in the parent context.
Seen in 1 report