In-depth lesson · XSS
Bypasses and variations
Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.
-
A weak blocklist missed event-handler attributes even though it caught script tags.
Seen in 1 report
-
A weak CSP that allowed inline scripts let a reflected injection run despite the policy.
Seen in 1 report
-
A weak filter that only escaped double quotes can be bypassed by using single quotes.
Seen in 1 report
-
A WebKit-specific event handler and string concatenation got past the WAF's blocklist.
-
Absent X-Frame-Options and no URL scheme check allowed clickjacking and javascript: link execution.
Seen in 1 report
-
Abuse a Content Security Policy that allows an unnecessary external domain to load script.
-
Abuse an allowed SVG use element that references an embedded SVG whose event handlers are not sanitised.
Seen in 1 report
-
Abuse an outdated AngularJS library permitted by CSP to execute injected code.
-
Abuse the IE XSS filter's detection logic itself to allow script execution.
Seen in 1 report
-
Add a benign multi_tab_reparenting_metadata extra so the shouldIgnoreIntent check passes while the tab_group_metadata extra carries the javascript: URI.
Seen in 1 report
-
Add a fixed parameter seen in the warning page's continue link to any blocked URL to bypass the block.
Seen in 1 report
-
Add a query parameter whose key creates a global variable the script checks, then add another parameter with an image and an onerror handler.
Seen in 1 report
-
Add a second filter separated by a hyphen to get past a regex sanitiser that strips a single tag.
Seen in 1 report
-
Add a throwaway attribute so JSON encoding does not convert equals signs to colons.
-
Add a traversal sequence to change which repository is fetched.
-
Add an extra query parameter to a fixed HTML file so a malicious parentOrigin is accepted.
-
Add an SVG file with script to a repository and use its blob id to bypass the CSP.
Seen in 1 report
-
Add control characters to a redirect value so the Location header is dropped while the body still reflects the value.
Seen in 1 report
-
Add extra quotes and attributes in a Markdown link title to inject attributes after a previous fix.
-
Add the gating string the code checks for in the URL so the vulnerable reflection path is reached.
Seen in 1 report
-
Adding a greater-than character before the value bypassed a checksum check.
Seen in 1 report
-
Adding dashes around a payload to get past a blacklist filter.
Seen in 1 report
-
After a filter removes one event handler, try duplicated or case-varied handler names such as ononmouseovermouseover and ONMOUSE.
Seen in 1 report
-
After a fix blocks obvious hostnames, use a query-string trick and an anchor tag to replace the original host with a malicious link.
Seen in 1 report
-
After a fix, use a math expression with a style attribute on an allowed tag, and keep looking for further variations.
Seen in 1 report
-
After an SVG upload is patched, remove the conversion parameter from the image-serving URL to get the raw SVG back.
Seen in 1 report
-
After confirming HTML injection, work past a WAF and an escaping filter to escalate to script execution.
Seen in 1 report
-
After one search parameter was fixed, a second parameter was still vulnerable.
Seen in 1 report
-
After the fix wrapped input in an extra CDATA block, double the closing sequence to escape the added wrapper.
Seen in 1 report
-
After upload, swap the domain suffix in the returned path to reach the file on the public domain.
Seen in 1 report
-
An anchor whose href used HTML character entities to encode the javascript scheme passed a filter that blocked literal script tags and plain javascript links.
Seen in 1 report
-
An AngularJS payload loaded from an allowed CDN bypassed the Content Security Policy after prototype pollution.
Seen in 1 report
-
An AngularJS sandbox-escape expression bypassed the sandbox and executed.
Seen in 1 report
-
An AngularJS sanitiser stripped javascript: hrefs, but HTML injection still rendered.
Seen in 1 report
-
An email autolink with an underscore and at-sign causes an unclosed tag that accepts injected attributes.
Seen in 1 report
-
An entity-encoded payload survived KSES and was decoded when the element-path UI rendered it.
Seen in 1 report
-
An HTML sanitiser was used instead of URL scheme validation, so a dangerous scheme survived to the navigation sink.
-
An out-of-scope subdomain with stored XSS plus an in-scope site setting document.domain to the shared parent domain bypassed the same-origin policy.
Seen in 1 report
-
An SVG containing script was accepted by a feature that claimed to accept only JPG and GIF.
-
An SVG onload payload got past Cloudflare where a plain script tag was blocked.
Seen in 1 report
-
An SVG use element bypassed DOMPurify in Firefox and Safari.
Seen in 1 report
-
An unclosed anchor tag survived tag stripping and was used as a request target by a JavaScript gadget.
Seen in 1 report
-
An unclosed tag bypassed a regular expression that only removed closed HTML tags, because browsers close tags automatically.
Seen in 1 report
-
An unvalidated relative root path was assigned to webpack's public path, loading external script under strict-dynamic CSP.
-
An XML or SVG file referencing the HTML namespace got past the upload filter.
Seen in 1 report
-
Angle brackets caused a server error and focus handlers did not fire on a hidden input, so an accesskey and click handler were used instead.
Seen in 1 report
-
Append a comment sequence to a payload to comment out a CSP delivered in a meta tag.
Seen in 1 report
-
Append a null byte and .html to the entry name in a jar URL to change how the file is interpreted.
-
Append a null byte to end integer parsing so injected markup lands in the body.
Seen in 1 report
-
Backslash followed by an HTML tag inside a math expression, and later a tag with a style attribute.
Seen in 1 report