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.
-
A response lacked a Content-Type header so the browser rendered a product title as HTML.
-
A returnTo parameter accepted a javascript: value.
Seen in 1 report
-
A reversible encoding was treated as protection and the decoded value was written into HTML unencoded.
Seen in 1 report
-
A revision parameter was inserted into a file path without sanitisation, and folder names were later shown without HTML escaping.
Seen in 1 report
-
A rewind during inline processing stepped back into previously output elements that were assumed to be plain text.
Seen in 1 report
-
A rewrite rule proxied attacker-controllable content onto the application origin, tokens sat in localStorage, and the CSP allowed inline and same-origin scripts.
Seen in 1 report
-
A safe-html directive rendered the test case title without proper sanitisation.
Seen in 1 report
-
A sanitisation filter failed to handle a lesser-used styling attribute and inserted content into a JavaScript template string without escaping.
Seen in 1 report
-
A sanitise method allowed certain tags and marked output safe, so user HTML in the full name rendered instead of being escaped.
Seen in 1 report
-
A script accepted an arbitrary URL and rendered fetched content without restricting hosts, file types or sanitising output.
Seen in 1 report
-
A search parameter was embedded into a CSS block without escaping.
Seen in 1 report
-
A self-XSS in a settings page combined with a password-less email change enabled account takeover.
Seen in 1 report
-
A server-side fetcher did not restrict internal destinations.
Seen in 1 report
-
A sharing endpoint parameter changed from an integer to a string and was not sanitised before rendering.
Seen in 1 report
-
A shim read document.currentScript.src without accounting for DOM clobbering.
Seen in 1 report
-
A single world-bound promise resolver was cached on a context object shared across V8 worlds, and the bindings lacked a cross-context security check on the returned promise.
Seen in 1 report
-
A singleton caches one promise resolver across V8 contexts without checking the caller's script state.
Seen in 1 report
-
A special instructions parameter was not sanitised before rendering in the admin dashboard.
Seen in 1 report
-
A SQL error message reflected unsanitised input.
Seen in 1 report
-
A state management flaw in WebKit allowed scripts to escape their origin.
-
A static CSRF token was hardcoded in client-side JavaScript instead of generated per session.
Seen in 1 report
-
A stored group name was rendered in the profile's group membership list without HTML encoding.
-
A syntax highlighting filter builds HTML from unsanitised attributes and an emoji element inserts its name attribute unescaped.
Seen in 1 report
-
A tag-stripping function only removed HTML tags and did not neutralise JavaScript in attribute values.
Seen in 1 report
-
A tag-stripping helper assigned untrusted input to innerHTML, so the browser parsed it as markup instead of plain text.
Seen in 1 report
-
A test runner accepted an external module path via URL parameters.
-
A text-field sanitiser that escapes quotes with backslashes was used instead of attribute-aware escaping.
Seen in 1 report
-
A theme component did not sanitise user-supplied markdown, allowing an iframe with script to be stored.
Seen in 1 report
-
A third-party dependency in the PDF viewer failed to HTML-encode special characters in PDF content.
Seen in 1 report
-
$4,875 High
-
-
A third-party widget referenced a script in a bucket that was no longer registered, so anyone could claim it.
Seen in 1 report
-
A title was HTML-encoded into a data attribute but read back decoded and concatenated into an HTML string parsed without re-escaping.
Seen in 1 report
-
A torrent filename was written into the local download page without sanitisation.
Seen in 1 report
-
A URI action is attached to an embedded image so clicking it triggers a link.
Seen in 1 report
-
A URL from an uploaded manifest was rendered as a link without restricting the scheme to http or https.
Seen in 1 report
-
A url parameter was passed unchecked into location.href.
-
A URL parameter was concatenated into a script URL without validation, allowing an attacker-controlled path to load as JavaScript.
Seen in 1 report
-
A URL parameter was inserted into a CSS import without validation, letting the page load a stylesheet from any host.
Seen in 1 report
-
A URL parameter was inserted into a JavaScript string literal without escaping and relied on browser apostrophe encoding.
Seen in 1 report
-
A URL parameter was inserted into a JavaScript string without escaping or validation.
Seen in 1 report
-
A URL parameter was passed directly to jQuery's getScript without validation.
Seen in 1 report
-
$500 Medium
-
-
A URL parameter was passed straight into an API path without validation, and the API response was rendered as HTML without sanitising.
Seen in 1 report
-
A URL parameter was passed to window.open without validating the scheme.
Seen in 1 report
-
A URL parameter was reflected into an HTML error page without encoding.
Seen in 1 report
-
A URL parameter was reflected into the HTML response without encoding.
Seen in 1 report
-
A URL parameter was reflected without output encoding and the WAF only blocked script-based payloads.
Seen in 1 report
-
A URL parameter was used to dynamically load scripts without validation, and the session cookie lacked HttpOnly.
Seen in 1 report
-
A URL parameter was used to load a JavaScript file without validation.
-
A URL parsing mismatch between the component setting the CSP header and the backend serving the image, where only the backend normalises the path.
Seen in 1 report
-
A URL query parameter was passed into an HTML parsing routine and assigned to innerHTML.
Seen in 1 report
-
A URL segment in the analytics callback path was not filtered.