Skip to content

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.

Back to the lesson 351 to 400 of 743
  1. Use mentions and submission references inside a link title to inject attributes into the existing link tag in markdown mention linkification.

    Seen in 1 report
  2. Send messages with a cross-origin window as event.source to pass checks meant to reject them.

    Seen in 1 report
  3. Modify an uploaded SVG's content in the intercepted request to include a script.

    Seen in 1 report
  4. Modify the client-side MIME type variable to upload a file the server would otherwise reject.

    Seen in 1 report
  5. Modify the server response to report success and work around a 32-character limit on the nickname.

    Seen in 1 report
  6. Modify a sandbox-escape payload until the WAF accepts it in an Angular search box.

    Seen in 1 report
  7. 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
  8. Move a prototype pollution payload from the query string to the URL fragment to get past the WAF.

    Seen in 1 report
  9. 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.

    Seen in 1 report
  10. Use nested broken tags and an obfuscated javascript: link to get past WAF pattern matching on a promotional page parameter.

    Seen in 1 report
  11. Use a nested tag payload that splits tag names to evade a blocklist in a script context parameter.

    Seen in 1 report
  12. Use newline injection in an unsanitised option field to add arbitrary trusted filters in element picker messaging.

    Seen in 1 report
  13. Note that equals signs and angle brackets were encoded, so only limited HTML injection was possible on 404 pages.

    Seen in 1 report
  14. Note that production blocks inline script, which limits exploitability of stored markup in internal support tools.

    Seen in 1 report
  15. Use null bytes inside an event handler name to bypass the firewall's pattern matching.

    Seen in 1 report
  16. Obfuscate the payload to get past WAF pattern matching in region parameters.

    Seen in 1 report
  17. 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
  18. On Safari, use a javascript-scheme URL with a host component to bypass the postMessage host check.

    Seen in 1 report
  19. Only the first of two upload requests had its image header checked in a split upload.

    Seen in 1 report
  20. 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
  21. Overflow the cookie jar so the browser evicts the HttpOnly session cookie and keeps an attacker-chosen session ID.

    Seen in 1 report
  22. Override the toString method on Object.prototype so that assigning a polluted object to innerHTML triggers script execution.

    Seen in 1 report
  23. Overwrite a native function such as a string method using an array join to corrupt the AngularJS sanitiser.

    Seen in 1 report
  24. Pad a long tag past the database column limit to produce malformed HTML that survives truncation in a comment.

    Seen in 1 report
  25. Pass already-escaped entities through strip_tags so they become active tags when output as safe.

    Seen in 1 report
  26. Pass an invalid SanitizerConfig listing both elements and removeElements so setHTML fails open and inserts unsanitised HTML.

    Seen in 1 report
  27. Paste SVG into the email body to skip attachment filtering.

    Seen in 1 report
  28. Use path traversal to turn a self-only reflected XSS into one that fires for other users.

    Seen in 1 report
  29. Percent-encode the parentOrigin parameter to get past the WAF.

    Seen in 1 report
  30. Place the malicious content beyond the first 256 bytes or use tags not on the blocklist in SVG upload validation.

    Seen in 1 report
  31. Place HTML tags at the very beginning of a value to bypass a position-based string check on invoice edit pages.

    Seen in 1 report
  32. Place the payload in the path so the cache stores a normalised form that executes for victims.

    Seen in 1 report
  33. Precede an HTML tag with a single quote and a space to get it rendered in an AI chat.

    Seen in 1 report
  34. Prefix a javascript: URL with a malformed file: scheme and control characters to bypass IE9's paste protection.

    Seen in 1 report
  35. Prefix an apostrophe before injected markup to get past a blog's filter.

    Seen in 1 report
  36. Prefix a cookie name with a Unicode whitespace character to defeat __Host- enforcement.

    Seen in 1 report
  37. Put a newline inside an HTML tag so a regex sanitiser misses it in the Whiteboard sanitiser.

    Seen in 1 report
  38. Put an encoded tab or carriage return inside a javascript: URL to get past a sanitiser's protocol check.

    Seen in 1 report
  39. 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
  40. Put the malicious value in a repeated parameter after a benign first occurrence to exploit WAF parameter handling.

    Seen in 1 report
  41. 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
  42. Exploit query parameter reordering by an intermediary so the application and browser read different duplicate parameters on a redirect page.

    Seen in 1 report
  43. 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
  44. Read the nonce from the DOM with injected script and submit the request to bypass CSRF protection.

    Seen in 1 report
  45. Redefine the function with the same name to suppress the error and continue execution in JavaScript function reflection.

    Seen in 1 report
  46. 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
  47. 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
  48. Register a domain whose name starts with the trusted origin string to bypass a prefix-based origin check in postMessage.

    Seen in 1 report
  49. Register a lookalike domain that matches a regex with an unescaped dot in an origin regex.

    Seen in 1 report
  50. Rely on inline content disposition and an XHTML filename to make iOS WebKit ignore the text/plain content type.

    Seen in 1 report