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.
-
Internet Explorer's content sniffing overrode the declared text content type and the nosniff header, so uploaded text files rendered as HTML.
Seen in 1 report
-
Medium
-
-
Invalid webcall ID reflected into an error response without sanitising.
-
Invitation message inserted into the outgoing email body without encoding.
Seen in 1 report
-
Invoice name was not sanitised before PDF rendering, and the instance used IMDSv1 with an overly permissive IAM role.
Seen in 1 report
-
Isolated-world XMLHttpRequest routed through the page's Service Worker, unlike Blink.
Seen in 1 report
-
jQuery Mobile fetches URLs from the location hash and inserts the response via innerHTML.
-
jQuery's htmlPrefilter and wrapping logic modified already-sanitised HTML, enabling mutation XSS.
Seen in 1 report
-
JSON built by concatenating user-supplied metadata fields without escaping, so injected characters change the JSON structure.
Seen in 1 report
-
JSON responses were returned without the application/json MIME type, so reflected content was parsed as HTML.
-
JSON-LD values were inserted into Reader View HTML without escaping, and an internal error page reflected a query parameter without sanitising it.
Seen in 1 report
-
JSONP loader trusted a cookie value to set the script source without validating the server.
Seen in 1 report
-
$5,000
-
-
Keeping WebSettings.setSupportMultipleWindows() at its default false, combined with an unpatched WebView, allowed the bypass.
Seen in 1 report
-
Label getter returns the stored value directly while the body value goes through a sanitiser.
Seen in 1 report
-
Label text was stored without sanitising or encoding so markup rendered in other users' browsers.
-
Legacy page echoes a parameter into a script block without encoding.
Seen in 1 report
-
Less code ran with JavaScript execution enabled and plugins were not restricted.
Seen in 1 report
-
libxslt's global initialisation unconditionally registered extra extension elements, including xalan:write, which performed dynamic XPath compilation before the security check.
Seen in 1 report
-
Link embedding feature did not restrict the URL scheme, allowing javascript: URIs.
Seen in 1 report
-
Link filter only matched absolute URLs with a scheme and missed protocol-relative URLs.
Seen in 1 report
-
Link headers not sanitised or restricted, allowing arbitrary CSS.
Seen in 1 report
-
Link input validated only for presence, not for an http or https scheme.
Seen in 1 report
-
Linked pages were not prevented from accessing window.opener.
Seen in 1 report
-
Linkification accepted any URL scheme instead of only HTTP and HTTPS.
Seen in 1 report
-
Links were built from the relative URL path without escaping, allowing a break out of tags and an event handler injection.
Seen in 1 report
-
Live event form input was stored without sanitisation and rendered as HTML on an asset domain.
Seen in 1 report
-
Location field not output-encoded while the WAF only covers other fields.
Seen in 1 report
-
location.pathname was used to build an AJAX URL without validation, allowing a protocol-relative URL.
Seen in 1 report
-
Log data rendered unsanitised, state-changing actions accepted over GET, and the file parameter not validated.
Seen in 1 report
-
Login form input compiled as an Angular template.
Seen in 1 report
-
Login page parameter reflected without validation or encoding.
-
Lookup tools rendered WHOIS and DNS record values without output encoding or sanitisation.
Seen in 1 report
-
Macro substitution ran after input encoding and was not limited to a single pass, so request values were re-injected unescaped.
Seen in 1 report
-
Markdown from package READMEs was rendered without sanitising the resulting HTML and without a CSP.
-
Markdown output was not escaped before insertion via dangerouslySetInnerHTML and single quotes were not converted to entities.
Seen in 1 report
-
Markdown renderers allowed arbitrary HTML, a bundled test page evaluated the URL query string, and the desktop runtime exposed Node.js APIs to the page.
Seen in 1 report
-
Markdown visitor trusts an element name as proof of internal origin and emits its content raw.
-
MathJax backslash and curly brace handling lets HTML tags past markdown sanitisation.
Seen in 1 report
-
Member list parameters were not sanitised and no CSRF token was checked.
Seen in 1 report
-
Mention and reference linkification ran as post-processing on rendered HTML rather than during parsing.
-
Merging arbitrary client JSON keys into persisted models without an allow-list.
Seen in 1 report
-
Message content inserted into the page without HTML escaping, and admin cookies lacked HttpOnly, Secure and SameSite flags.
Seen in 1 report
-
Message content was not sanitised, allowing a bold tag with an event handler to be stored and rendered.
Seen in 1 report
-
Message data was used directly in location.href without validating the sender origin or sanitising the value.
Seen in 1 report
-
Message grouping by author without checking the first message is visible, plus user-controlled CSS classes.
Seen in 1 report
-
Message handlers did not verify the sender's origin and outgoing messages used a wildcard targetOrigin.
Seen in 1 report
-
Message listener did not verify the sender's origin and concatenated text into an href without escaping quotes.
Seen in 1 report
-
Message type render functions inserted user-controlled fields into HTML without escaping.
Seen in 1 report
-
Messages stored and rendered back without encoding.
Seen in 1 report
-
Messages were inserted into the page as HTML rather than as plain text.
Seen in 1 report
-
Metadata is concatenated into an HTML attribute without the escaping helper, and the API endpoint lacks CSRF protection.
Seen in 1 report