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 cookie parameter was reflected into the HTML response without encoding or validation.
Seen in 1 report
-
A cookie value used in a CSP nonce was not sanitised and a POST parameter was reflected without encoding.
-
A cookie value was inserted into a JavaScript context without JavaScript-aware encoding.
Seen in 1 report
-
A cookie value was interpolated into HTML without escaping while the anonymous cache key omitted that cookie.
Seen in 1 report
-
A cookie value was reflected into an HTML response without encoding.
-
A cookie value was reflected into an inline JavaScript context without encoding, and the same parameter was accepted from the query string.
-
A cookie value was treated as trusted configuration and concatenated into a script source URL without validation.
-
A cookie-setting endpoint lacked origin checks and a cookie value was reflected into a noscript tag without encoding.
Seen in 1 report
-
A CSRF token cookie was shared across all subdomains and lacked the HttpOnly flag, so script on any subdomain could read it.
Seen in 1 report
-
A CSV file name was written into a JavaScript context without escaping.
Seen in 1 report
-
A custom header value was reflected into an HTML error page without encoding.
Seen in 1 report
-
A custom link renderer did not escape or validate the href value, so the sanitise option did not protect link targets.
Seen in 1 report
-
A custom post type's capabilities let low-privileged users set meta values that were echoed into HTML without sanitisation.
Seen in 1 report
-
A custom sanitiser callback lets tag-like strings through because library and browser parsing differ.
Seen in 1 report
-
$1,250 High
-
-
A custom sanitiser regex did not account for newlines, so tags containing newlines bypassed it.
-
A custom template helper echoes URL parameters into the page without HTML encoding.
Seen in 1 report
-
A data-disable-with attribute was not sanitised, letting injected HTML run when a link is clicked.
Seen in 1 report
-
A data: URI iframe inherited the parent's origin instead of a unique null origin.
Seen in 1 report
-
A denylist string filter was used instead of parser-based sanitisation, and user HTML was rendered through the trusted-HTML bypass.
Seen in 1 report
-
A dialog rendered titles as HTML without the sanitisation used elsewhere.
-
A directory name was output without escaping.
Seen in 1 report
-
$500 Medium
-
-
A document url field accepted a javascript: scheme and was rendered as a clickable link without scheme validation.
-
A DOMPurify hook allowed all data-trix- attributes and the serializer applied attributes from data-trix-serialized-attributes without re-sanitising them.
Seen in 1 report
-
A fail-open logic error treated an empty digest list as success when the header contained only unsupported hash algorithms.
Seen in 1 report
-
A field meant to hold a number accepted arbitrary text and was placed into an HTML attribute without escaping.
Seen in 1 report
-
A file parameter was reflected without sanitisation and a second parameter could set the response content type to text/html.
Seen in 1 report
-
Medium
-
-
A filter ran after sanitisation and used naive string replacement, letting new attributes be introduced into an iframe.
Seen in 1 report
-
A fix whitelisted the SVG extension without sanitising the file content.
Seen in 1 report
-
A fixed text/html content type was set for all document responses instead of deriving it from the file type or forcing a download.
Seen in 1 report
-
A flaw in handling writes to window proxy properties let a page alter its own origin's port.
Seen in 1 report
-
A flaw in how the PDF viewer interacted with the same-origin policy allowed script injection into the local file context.
Seen in 1 report
-
A flawed regex in the inline-HTML step stripped legacy attributes from the body tag and could break already-sanitised HTML into an active event handler.
Seen in 1 report
-
A folder parameter was written into an HTML attribute without encoding or validation.
Seen in 1 report
-
A form field was inserted into a confirmation email without sanitisation, so raw HTML flowed into the message.
Seen in 1 report
-
A form reflected user input without sanitisation and the page lacked an X-Frame-Options header.
Seen in 1 report
-
A generic popup layout had HTML parsing enabled so user-supplied messages were rendered as raw HTML.
Seen in 1 report
-
A GET parameter was handed to a rendering method without output encoding.
-
A GET parameter was reflected into the HTML response without escaping.
Seen in 1 report
-
A globally hardcoded synthetic registration ID combined with scope validation implemented only as debug assertions.
Seen in 1 report
-
A GraphQL mutation lacked ownership checks on the object being edited.
Seen in 1 report
-
A greedy regex removed more than intended and allowed attribute injection.
Seen in 1 report
-
A hand-written router treated a colon-containing query value as an absolute URL and inserted the AJAX response with .html() with no origin allow-list.
Seen in 1 report
-
A hardcoded token disabled malicious website blocking and the browser UI did not escape user input.
Seen in 1 report
-
A hidden editor relied only on a client-side feature flag for access control and rendered comments as raw HTML.
Seen in 1 report
-
A hidden form field was echoed into the response without output encoding.
Seen in 1 report
-
Medium
-
-
A hidden parameter was reflected into the HTML source without sanitising or encoding.
Seen in 1 report
-
A host check compared a registrable domain against a full host name so it never matched, and the provider copied URL options into embed HTML.
-
A JSON response reflected a parameter without encoding and the browser rendered it as HTML.
Seen in 1 report
-
A leftover development script reference to a local webpack dev server was shipped to production.
Seen in 1 report
-
A library processed DOM elements after load without ignoring content inside contenteditable elements.
Seen in 1 report