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 mentions and submission references inside a link title to inject attributes into the existing link tag in markdown mention linkification.
-
Send messages with a cross-origin window as event.source to pass checks meant to reject them.
Seen in 1 report
-
Modify an uploaded SVG's content in the intercepted request to include a script.
Seen in 1 report
-
Modify the client-side MIME type variable to upload a file the server would otherwise reject.
-
Modify the server response to report success and work around a 32-character limit on the nickname.
Seen in 1 report
-
Modify a sandbox-escape payload until the WAF accepts it in an Angular search box.
Seen in 1 report
-
Move a payload from the query string into the URL fragment to get past a WAF that only inspects the query, in a blog search.
Seen in 1 report
-
Move a prototype pollution payload from the query string to the URL fragment to get past the WAF.
Seen in 1 report
-
Use multibyte encoding to evade the firewall and a doubled encoded CRLF to force a blank line in a CRLF injection in the URL path.
-
Use nested broken tags and an obfuscated javascript: link to get past WAF pattern matching on a promotional page parameter.
Seen in 1 report
-
Use a nested tag payload that splits tag names to evade a blocklist in a script context parameter.
Seen in 1 report
-
Use newline injection in an unsanitised option field to add arbitrary trusted filters in element picker messaging.
Seen in 1 report
-
Note that equals signs and angle brackets were encoded, so only limited HTML injection was possible on 404 pages.
Seen in 1 report
-
Note that production blocks inline script, which limits exploitability of stored markup in internal support tools.
Seen in 1 report
-
Use null bytes inside an event handler name to bypass the firewall's pattern matching.
Seen in 1 report
-
Obfuscate the payload to get past WAF pattern matching in region parameters.
Seen in 1 report
-
Omit the Content-Type header so a response is served without a type and a type hint makes it render as HTML in a Kubernetes proxy.
Seen in 1 report
-
On Safari, use a javascript-scheme URL with a host component to bypass the postMessage host check.
Seen in 1 report
-
Medium
-
-
Only the first of two upload requests had its image header checked in a split upload.
Seen in 1 report
-
Open the target page in a new window, navigate away, then go back to load the cached response without the content security policy header.
Seen in 1 report
-
Overflow the cookie jar so the browser evicts the HttpOnly session cookie and keeps an attacker-chosen session ID.
Seen in 1 report
-
Override the toString method on Object.prototype so that assigning a polluted object to innerHTML triggers script execution.
Seen in 1 report
-
Overwrite a native function such as a string method using an array join to corrupt the AngularJS sanitiser.
Seen in 1 report
-
Pad a long tag past the database column limit to produce malformed HTML that survives truncation in a comment.
Seen in 1 report
-
Pass already-escaped entities through strip_tags so they become active tags when output as safe.
-
Pass an invalid SanitizerConfig listing both elements and removeElements so setHTML fails open and inserts unsanitised HTML.
Seen in 1 report
-
Paste SVG into the email body to skip attachment filtering.
Seen in 1 report
-
Use path traversal to turn a self-only reflected XSS into one that fires for other users.
Seen in 1 report
-
Percent-encode the parentOrigin parameter to get past the WAF.
Seen in 1 report
-
Place the malicious content beyond the first 256 bytes or use tags not on the blocklist in SVG upload validation.
-
Place HTML tags at the very beginning of a value to bypass a position-based string check on invoice edit pages.
-
Place the payload in the path so the cache stores a normalised form that executes for victims.
-
Precede an HTML tag with a single quote and a space to get it rendered in an AI chat.
Seen in 1 report
-
Prefix a javascript: URL with a malformed file: scheme and control characters to bypass IE9's paste protection.
Seen in 1 report
-
Prefix an apostrophe before injected markup to get past a blog's filter.
Seen in 1 report
-
Prefix a cookie name with a Unicode whitespace character to defeat __Host- enforcement.
Seen in 1 report
-
Put a newline inside an HTML tag so a regex sanitiser misses it in the Whiteboard sanitiser.
-
Put an encoded tab or carriage return inside a javascript: URL to get past a sanitiser's protocol check.
Seen in 1 report
-
Put the JSON-LD placeholder text in the page's own HTML so the replacement order splices JSON-LD data into an attribute in the Reader View template.
Seen in 1 report
-
Put the malicious value in a repeated parameter after a benign first occurrence to exploit WAF parameter handling.
Seen in 1 report
-
Put the trusted domain string in the path or filename of an external URL to pass a substring whitelist check on an iframe source.
Seen in 1 report
-
Exploit query parameter reordering by an intermediary so the application and browser read different duplicate parameters on a redirect page.
Seen in 1 report
-
Read the page JavaScript to learn its input encryption, then build a CSRF page that encrypts the payload with the site's own algorithm.
Seen in 1 report
-
Read the nonce from the DOM with injected script and submit the request to bypass CSRF protection.
Seen in 1 report
-
Redefine the function with the same name to suppress the error and continue execution in JavaScript function reflection.
Seen in 1 report
-
Reference a browser-internal script resource from an injected script element and use its data-main attribute to load a data: URL, bypassing strict-dynamic.
Seen in 1 report
-
Register a custom element whose callback acts during parsing so script runs while the sanitised output looks clean in the Sanitizer API.
Seen in 1 report
-
Register a domain whose name starts with the trusted origin string to bypass a prefix-based origin check in postMessage.
Seen in 1 report
-
Register a lookalike domain that matches a regex with an unescaped dot in an origin regex.
-
Rely on inline content disposition and an XHTML filename to make iOS WebKit ignore the text/plain content type.
Seen in 1 report