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.
-
Backticks and base64 to get past minor character restrictions.
-
Balance JavaScript syntax around a reflected value to trigger execution with a middle-click when a blacklist blocks common handlers.
Seen in 1 report
-
Base64 encode an iframe payload to get past a Cloudflare WAF.
-
Base64-encoding the payload avoided XML parsing issues and filters.
Seen in 1 report
-
Break out of a JavaScript string with a single quote and use the minus operator to execute an expression when angle brackets are encoded.
Seen in 1 report
-
Break out of an event handler attribute with either a double or a single quote.
Seen in 1 report
-
Break out of an href with double quotes and add an onclick event handler.
Seen in 1 report
-
Breaking out of the script tag was blocked by a WAF, so the payload was made syntactically valid inside the existing function instead.
Seen in 1 report
-
Browsers that do not encode the apostrophe automatically remain exploitable even when others encode it.
Seen in 1 report
-
Bypass a content security policy by injecting an iframe with a srcdoc attribute carrying the script.
Seen in 1 report
-
Bypass a content security policy by loading a saved file through a file URL.
Seen in 1 report
-
Bypass a filter blocking parentheses by using HTML entity encoding with extra leading zeroes.
Seen in 1 report
-
Bypass a one-time CSRF token check by adding a separate parameter before the token parameter.
Seen in 1 report
-
Bypass a protocol filter that compares against a lowercase pattern by using a mixed-case scheme.
Seen in 1 report
-
Bypass a script-src self policy by loading a downloaded file from a file URL treated as same origin.
Seen in 1 report
-
Bypass a server filter that replaces dots and brackets by using bracket-free property access and eval of encoded strings.
Seen in 1 report
-
Bypass a WAF by double URL encoding the less-than character to inject HTML tags.
-
Bypass a WAF by inserting a tab character before an equals sign and splitting a function name.
Seen in 1 report
-
Bypass a WAF by URL-encoding a payload three times.
Seen in 1 report
-
Bypass a WAF rule that matches JavaScript keywords followed by an opening parenthesis by using property-access syntax instead.
-
Bypass a WAF that blocks angle brackets by inserting equals signs after them, relying on the server stripping those characters.
-
Bypass an Akamai WAF with an HTML tag and chain a CSRF token cookie endpoint to turn self-XSS into a one-click attack.
Seen in 1 report
-
Bypass client-side protections on URL fields in an admin dashboard.
Seen in 1 report
-
Bypass CSP by hosting a JSON file with HTML and script in a public snippet and referencing it from the injected content.
Seen in 1 report
-
$13,950 High
-
-
Bypass CSP by injecting HTML through a filename rendered by a raw-HTML directive.
Seen in 1 report
-
Bypass HTML and ASCII encoding on a support site's search field with crafted character sequences.
-
Bypass HTML encoding with triple URL encoding to execute JavaScript.
Seen in 1 report
-
Bypass slash filtration by dynamically inserting a slash from an anchor tag's href attribute.
Seen in 1 report
-
Bypass tag stripping by using nested angle brackets so the parser produces a working script-closing tag.
Seen in 1 report
-
Bypass the command filter that splits input on spaces.
Seen in 1 report
-
Bypass the comment URL filter with URL encoding to inject an anchor tag carrying arbitrary text.
-
Bypass the frame source check with a backslash-prefixed hostname.
Seen in 1 report
-
Bypass WAF restrictions using allowed characters and alternative AngularJS functions.
Seen in 1 report
-
Call eval through a template literal when parentheses are stripped.
Seen in 1 report
-
Calling the alert function indirectly to evade a WAF that blocks common function names.
Seen in 1 report
-
Calling window.stop after a timed delay prevents the mitigation script from loading so the payload runs in the original domain.
Seen in 1 report
-
Capture and modify the link after client-side validation so the javascript: scheme reaches the server.
Seen in 1 report
-
Chain a host-header cookie redirection with an editor XSS and obfuscate the payload to bypass filters.
-
Chain a POST-only reflected XSS with a cross-site request forgery page that auto-submits the payload.
Seen in 1 report
-
Chain a reflected XSS with a cookie bridge and a cookie-size trick to leak HttpOnly session cookies.
Seen in 1 report
-
Chain a self-XSS with a cross-site request forgery form that auto-submits the payload.
Seen in 1 report
-
Chain a self-XSS with a CSRF request so the victim's browser submits the payload on their behalf.
Seen in 1 report
-
Chain a stored XSS with a broken access control flaw to read the CSRF token and send an admin invite to the attacker.
-
Chain clickjacking with self-XSS to trick victims into pasting and submitting a payload.
-
Chain MathML, xml:base and fake URLs to bypass filters.
Seen in 1 report
-
Chaining a missing CSRF token on group creation with unencoded group name rendering.
Seen in 1 report
-
Chaining clickjacking and clipboard overwrite to turn self-XSS into reflected XSS.
Seen in 1 report
-
Change a JPG upload's extension to .svg and replace the content with an SVG containing script after the browser-side check.
Seen in 1 report
-
Change a POST request to GET and omit the CSRF token to see whether token validation is skipped.
Seen in 1 report
-
Change an uploaded file's extension to .html so the CDN serves it as HTML.
Seen in 1 report