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 101 to 150 of 743
  1. A weak blocklist missed event-handler attributes even though it caught script tags.

    Seen in 1 report
  2. A weak CSP that allowed inline scripts let a reflected injection run despite the policy.

    Seen in 1 report
  3. A weak filter that only escaped double quotes can be bypassed by using single quotes.

    Seen in 1 report
  4. A WebKit-specific event handler and string concatenation got past the WAF's blocklist.

    Seen in 1 report
  5. Absent X-Frame-Options and no URL scheme check allowed clickjacking and javascript: link execution.

    Seen in 1 report
  6. Abuse a Content Security Policy that allows an unnecessary external domain to load script.

    Seen in 1 report
  7. Abuse an allowed SVG use element that references an embedded SVG whose event handlers are not sanitised.

    Seen in 1 report
  8. Abuse an outdated AngularJS library permitted by CSP to execute injected code.

    Seen in 1 report
  9. Abuse the IE XSS filter's detection logic itself to allow script execution.

    Seen in 1 report
  10. Add a benign multi_tab_reparenting_metadata extra so the shouldIgnoreIntent check passes while the tab_group_metadata extra carries the javascript: URI.

    Seen in 1 report
  11. Add a fixed parameter seen in the warning page's continue link to any blocked URL to bypass the block.

    Seen in 1 report
  12. Add a query parameter whose key creates a global variable the script checks, then add another parameter with an image and an onerror handler.

    Seen in 1 report
  13. Add a second filter separated by a hyphen to get past a regex sanitiser that strips a single tag.

    Seen in 1 report
  14. Add a throwaway attribute so JSON encoding does not convert equals signs to colons.

    Seen in 1 report
  15. Add a traversal sequence to change which repository is fetched.

    Seen in 1 report
  16. Add an extra query parameter to a fixed HTML file so a malicious parentOrigin is accepted.

    Seen in 1 report
  17. Add an SVG file with script to a repository and use its blob id to bypass the CSP.

    Seen in 1 report
  18. Add control characters to a redirect value so the Location header is dropped while the body still reflects the value.

    Seen in 1 report
  19. Add extra quotes and attributes in a Markdown link title to inject attributes after a previous fix.

    Seen in 1 report
  20. Add the gating string the code checks for in the URL so the vulnerable reflection path is reached.

    Seen in 1 report
  21. Adding a greater-than character before the value bypassed a checksum check.

    Seen in 1 report
  22. Adding dashes around a payload to get past a blacklist filter.

    Seen in 1 report
  23. After a filter removes one event handler, try duplicated or case-varied handler names such as ononmouseovermouseover and ONMOUSE.

    Seen in 1 report
  24. After a fix blocks obvious hostnames, use a query-string trick and an anchor tag to replace the original host with a malicious link.

    Seen in 1 report
  25. After a fix, use a math expression with a style attribute on an allowed tag, and keep looking for further variations.

    Seen in 1 report
  26. After an SVG upload is patched, remove the conversion parameter from the image-serving URL to get the raw SVG back.

    Seen in 1 report
  27. After confirming HTML injection, work past a WAF and an escaping filter to escalate to script execution.

    Seen in 1 report
  28. After one search parameter was fixed, a second parameter was still vulnerable.

    Seen in 1 report
  29. After the fix wrapped input in an extra CDATA block, double the closing sequence to escape the added wrapper.

    Seen in 1 report
  30. After upload, swap the domain suffix in the returned path to reach the file on the public domain.

    Seen in 1 report
  31. An anchor whose href used HTML character entities to encode the javascript scheme passed a filter that blocked literal script tags and plain javascript links.

    Seen in 1 report
  32. An AngularJS payload loaded from an allowed CDN bypassed the Content Security Policy after prototype pollution.

    Seen in 1 report
  33. An AngularJS sandbox-escape expression bypassed the sandbox and executed.

    Seen in 1 report
  34. An AngularJS sanitiser stripped javascript: hrefs, but HTML injection still rendered.

    Seen in 1 report
  35. An email autolink with an underscore and at-sign causes an unclosed tag that accepts injected attributes.

    Seen in 1 report
  36. An entity-encoded payload survived KSES and was decoded when the element-path UI rendered it.

    Seen in 1 report
  37. An HTML sanitiser was used instead of URL scheme validation, so a dangerous scheme survived to the navigation sink.

    Seen in 1 report
  38. An out-of-scope subdomain with stored XSS plus an in-scope site setting document.domain to the shared parent domain bypassed the same-origin policy.

    Seen in 1 report
  39. An SVG containing script was accepted by a feature that claimed to accept only JPG and GIF.

    Seen in 1 report
  40. An SVG onload payload got past Cloudflare where a plain script tag was blocked.

    Seen in 1 report
  41. An SVG use element bypassed DOMPurify in Firefox and Safari.

    Seen in 1 report
  42. An unclosed anchor tag survived tag stripping and was used as a request target by a JavaScript gadget.

    Seen in 1 report
  43. An unclosed tag bypassed a regular expression that only removed closed HTML tags, because browsers close tags automatically.

    Seen in 1 report
  44. An unvalidated relative root path was assigned to webpack's public path, loading external script under strict-dynamic CSP.

    Seen in 1 report
  45. An XML or SVG file referencing the HTML namespace got past the upload filter.

    Seen in 1 report
  46. Angle brackets caused a server error and focus handlers did not fire on a hidden input, so an accesskey and click handler were used instead.

    Seen in 1 report
  47. Append a comment sequence to a payload to comment out a CSP delivered in a meta tag.

    Seen in 1 report
  48. Append a null byte and .html to the entry name in a jar URL to change how the file is interpreted.

    Seen in 1 report
  49. Append a null byte to end integer parsing so injected markup lands in the body.

    Seen in 1 report
  50. Backslash followed by an HTML tag inside a math expression, and later a tag with a style attribute.

    Seen in 1 report