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.
-
Use data-* attributes that survive the sanitiser's allow and deny logic.
Seen in 1 report
-
Use deprecated tags such as plaintext, fn and credit that the blacklist does not cover.
Seen in 1 report
-
Use DOM clobbering alongside injected markup to get past the content security policy.
Seen in 1 report
-
Use DOM clobbering to make a shimmed SDK read an attacker-controlled currentScript source and load an attacker URL under strict-dynamic CSP.
Seen in 1 report
-
Use double URL encoding for newlines and backslashes for slashes to get past filters.
Seen in 1 report
-
Use duplicate parameter names, Unicode-to-ASCII conversion, case-insensitivity, null-byte truncation, stray percent signs and ampersand quirks to slip past browser anti-XSS filters.
Seen in 1 report
-
Use ESI comment tags and variables to get past WAF restrictions.
Seen in 1 report
-
Use Flash to load an external resource before the base URL is set.
Seen in 1 report
-
Use Flash URL decoding behaviour to obfuscate an attack vector and bypass Internet Explorer 10's reflected XSS protection.
-
Use ftp or relative URLs in src and href attributes to get past a scheme allow-list.
-
Use HTML character references in a javascript hyperlink so the filter, which did not normalise them before checking, lets it through.
Seen in 1 report
-
Use HTML entity or URL encoding variants to get past filters when breaking out of a JavaScript string.
Seen in 1 report
-
Use HTML numeric character references for the letters in the payload to avoid the case transformation.
Seen in 1 report
-
Use HTML-encoded tab characters to slip past a filter that blocks complete tags.
Seen in 1 report
-
Use HTTP parameter pollution: append a second parameter with the same name after the fix limits the first to four characters.
Seen in 1 report
-
Use HZ-GB-2312 escape sequences to get past the IE XSS filter.
Seen in 1 report
-
Use invalid UTF-8 sequences to make multibyte string functions disagree with the filter.
-
Use JavaScript escape sequences for characters that HTML encoding would catch, and split the payload into short segments wrapped in comment markers.
Seen in 1 report
-
Use JavaScript escape sequences made only of digits and backslashes to get past an uppercase-only filter.
-
Use malformed selectors and alternative CSS functions to slip CSS injection past filter validation.
Seen in 1 report
-
Use mixed-case, alternative tags or encoding tricks when a WAF blocks common payloads.
-
Use namespace confusion, animation attributes, XSLT stylesheets or Safari's image import behaviour to bypass SVG sanitisers.
Seen in 1 report
-
Use numeric character references that the filter does not handle to get past partial HTML encoding.
-
Use Safari-specific event handlers and dynamically constructed eval calls to evade F5 ASM signature filtering.
Seen in 1 report
-
Use semantically obfuscated payloads that look benign to an AI-based WAF.
-
Use short punycode domains and string concatenation to get past WAF pattern rules.
Seen in 1 report
-
Use spaces, special characters and string reversal to bypass WAF restrictions on attribute injection.
Seen in 1 report
-
Use style tags when script tags are filtered to affect the whole page.
Seen in 1 report
-
Use style-based execution in older browsers to get past a fix that only blocked tags.
-
Use SVG vectors other than script elements and on* attributes to evade a blocklist sanitiser.
Seen in 1 report
-
Use tag-like strings starting with an exclamation mark that the library and browser parse differently.
Seen in 1 report
-
$1,250 High
-
-
Use the deprecated slot-scope attribute to evaluate expressions when a WAF replaces keywords.
Seen in 1 report
-
Use the documentation tool's own link syntax to produce a javascript href that the earlier sanitiser did not block.
Seen in 1 report
-
Use the namespaced xlink:href attribute to skip the fragment-only URL check applied to href.
Seen in 1 report
-
Use the onauxclick handler when common handlers are blocked by a blacklist.
Seen in 1 report
-
Use the print function instead of alert to get past a WAF that blocks specific JavaScript function names.
-
Use the sandbox allow-scripts directive to neutralise script-src 'none'.
Seen in 1 report
-
Use two image tags with mixed quotes to get past a filter that converts single quotes to double quotes and removes onerror.
Seen in 1 report
-
Use Unicode for quotes and JavaScript comments to break out of a dialog and bypass the WAF.
Seen in 1 report
-
Use unusual characters in HTML tag names and the localName property to evade WAFs and blocklists.
Seen in 1 report
-
Use uppercase script tags to get past filtering.
Seen in 1 report
-
Use URL encoding and mixed-case tags to get past a blacklist filter.
Seen in 1 report
-
Using a second site with weaker username validation to store a short payload rendered on the main site.
Seen in 1 report
-
Using an automated payload tool to find a working payload when manual attempts are blocked.
Seen in 1 report
-
Using an iframe srcdoc attribute when script tags are filtered.
Seen in 1 report
-
Using many unclosed paragraph tags to make the sanitiser allow an extra tag.
Seen in 1 report
-
Using mobile-specific DOM events that a blacklist did not cover.
Seen in 1 report
-
Using the decodeURI function and the onbeforetoggle event handler, and splitting the alert call into concatenated variables, got past the WAF.
Seen in 1 report
-
Using valueOf.name.constructor.fromCharCode to build strings past quote sanitisation.
Seen in 1 report
-
Validating each field separately let a payload be reconstructed when the fields were joined for display.
Seen in 1 report