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.
-
Change the API host to the mobile domain so the site's relative-path check passes.
Seen in 1 report
-
Change the capitalisation of the scheme or prefix it with the feed protocol to get past the drag and drop check.
Seen in 1 report
-
Change the case of a tag or nest it to get past a filter that blocks exact strings.
Seen in 1 report
-
Change the case of the script tag to get past a simple filter.
Seen in 1 report
-
Change the content type from image/jpeg to text/html on upload so the stored file is served as HTML.
Seen in 1 report
-
Change the extension of an uploaded file's CDN URL to .html so the browser renders embedded markup.
Seen in 1 report
-
Change the outer eventID while keeping the nested eventID as your own.
Seen in 1 report
-
Change the payload to upper-case letters so a WAF rule that matches only lower-case tag patterns does not block it.
Seen in 1 report
-
Change the protocol to a non-standard scheme first to bypass validation, then use a script scheme with a newline.
Seen in 1 report
-
Change the request method from PUT to POST to reach the invitation flow.
Seen in 1 report
-
Change the request method from PUT to POST when adding a member and set a new email address to receive the invitation.
Seen in 1 report
-
Changing tag case or nesting tags to get past exact-string filters.
Seen in 1 report
-
Changing the request method from POST to GET failed, so the POST endpoint was used with a missing CSRF token to turn self-XSS into reflected XSS.
Seen in 1 report
-
Check whether the confirmation dialog shows a different address from the one actually executed.
Seen in 1 report
-
Chrome and Firefox return a 200 response containing the javascript scheme URI instead of redirecting.
Seen in 1 report
-
Client-side phone number linking undid the server's HTML escaping.
Seen in 1 report
-
Client-side validation was bypassed by intercepting and modifying the request, and the WAF blacklist was bypassed.
Seen in 1 report
-
Clobber a script source property with anchor tags pointing to a data or HTTP URL so the script loads from an attacker-controlled location.
Seen in 1 report
-
Clobber undeclared globals and form properties to steer a sanitiser into an error path that adds script.
Seen in 1 report
-
Close a div tag and use an iframe when the WAF blocks script payloads.
Seen in 1 report
-
Close a JavaScript template literal with a backtick and inject code after it to escape the string context.
Seen in 1 report
-
Close an existing attribute and include a script tag, or use an image error handler, to get past a blocklist that only filters script tags.
Seen in 1 report
-
Close the attribute with a double quote and angle bracket, then add a script tag when a basic payload is sanitised or causes a 500 error.
Seen in 1 report
-
Close the string and the function call, then add a comment or extra characters to avoid a syntax error.
Seen in 1 report
-
Closing and reopening a script tag to get past a filter.
-
Closing script tag followed by a new script tag when quotes are escaped.
Seen in 1 report
-
Combine a character-stripping sanitiser with WAF and browser auditor behaviour to slip a payload through.
Seen in 1 report
-
Combine a host header injection with an open redirect to point an invite link at a stored note containing an iframe.
Seen in 1 report
-
Combine reference expansion with a mutation XSS technique to get markup past the sanitiser.
Seen in 1 report
-
Combine the jar: prefix with slash manipulation to reach restricted local protocols such as file: in Internet Explorer.
-
Combine two reflected XSS flaws, using the first to load a same-origin JavaScript file containing the second, to bypass CSP via MIME sniffing.
Seen in 1 report
-
Combining an underscore, a URL and an at-sign with extra attributes produces an unintended tag.
Seen in 1 report
-
Content Security Policy prevented script execution, but HTML injection still allowed spoofing.
-
Control characters inserted into the javascript: scheme bypassed URI filtering.
Seen in 1 report
-
Craft a payload without closing the tag, such as a script tag left open, so the page itself closes it, bypassing a filter that only blocks complete tags.
Seen in 1 report
-
Craft markup inside a noscript element that the serialiser treats as raw text when scripting is disabled, so it becomes executable after DOMPurify sanitisation.
Seen in 1 report
-
Create an iframe to a same-origin HTML file and inject a script there to get around the page's CSP.
Seen in 1 report
-
CSS escape sequences in an image URL bypassed the image proxy's URL detection.
Seen in 1 report
-
Dangerous attributes such as iframe srcdoc were not sanitised even though event handlers were stripped.
Seen in 1 report
-
Decoding a base64 parameter, replacing its contents and re-encoding to reach the reflection.
Seen in 1 report
-
Deleting the redirection in the intercepted response revealed the reflected payload.
Seen in 1 report
-
Disable the browser's XSS filter or use an old browser to reach the vulnerable reflection.
Seen in 1 report
-
DOM clobbering of currentScript to load an attacker URL under strict-dynamic CSP.
Seen in 1 report
-
DOM clobbering of the attributes property disabled the sanitizer's attribute enumeration.
-
DOMPurify allowed data attributes even when only the strong tag was permitted, so a popover could be built from them.
Seen in 1 report
-
Double linking: the HTML inserted on the first pass is treated as input on the second pass.
Seen in 1 report
-
Double URL encode a separator character to get past a filter that blocks common payload patterns.
Seen in 1 report
-
Double URL encode the payload to get past a WAF that stripped the first attempt.
Seen in 1 report
-
Double URL encoding bypassed the filter on the q parameter.
Seen in 1 report
-
Double URL encoding plus a dummy parameter bypassed a redirect check that only looked at the URL suffix.