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 151 to 200 of 743
  1. Backticks and base64 to get past minor character restrictions.

    Seen in 1 report
  2. Balance JavaScript syntax around a reflected value to trigger execution with a middle-click when a blacklist blocks common handlers.

    Seen in 1 report
  3. Base64 encode an iframe payload to get past a Cloudflare WAF.

    Seen in 1 report
  4. Base64-encoding the payload avoided XML parsing issues and filters.

    Seen in 1 report
  5. 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
  6. Break out of an event handler attribute with either a double or a single quote.

    Seen in 1 report
  7. Break out of an href with double quotes and add an onclick event handler.

    Seen in 1 report
  8. 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
  9. Browsers that do not encode the apostrophe automatically remain exploitable even when others encode it.

    Seen in 1 report
  10. Bypass a content security policy by injecting an iframe with a srcdoc attribute carrying the script.

    Seen in 1 report
  11. Bypass a content security policy by loading a saved file through a file URL.

    Seen in 1 report
  12. Bypass a filter blocking parentheses by using HTML entity encoding with extra leading zeroes.

    Seen in 1 report
  13. Bypass a one-time CSRF token check by adding a separate parameter before the token parameter.

    Seen in 1 report
  14. Bypass a protocol filter that compares against a lowercase pattern by using a mixed-case scheme.

    Seen in 1 report
  15. Bypass a script-src self policy by loading a downloaded file from a file URL treated as same origin.

    Seen in 1 report
  16. Bypass a server filter that replaces dots and brackets by using bracket-free property access and eval of encoded strings.

    Seen in 1 report
  17. Bypass a WAF by double URL encoding the less-than character to inject HTML tags.

    Seen in 1 report
  18. Bypass a WAF by inserting a tab character before an equals sign and splitting a function name.

    Seen in 1 report
  19. Bypass a WAF by URL-encoding a payload three times.

    Seen in 1 report
  20. Bypass a WAF rule that matches JavaScript keywords followed by an opening parenthesis by using property-access syntax instead.

    Seen in 1 report
  21. Bypass a WAF that blocks angle brackets by inserting equals signs after them, relying on the server stripping those characters.

    Seen in 1 report
  22. 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
  23. Bypass client-side protections on URL fields in an admin dashboard.

    Seen in 1 report
  24. 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
  25. Bypass CSP by injecting HTML through a filename rendered by a raw-HTML directive.

    Seen in 1 report
  26. Bypass HTML and ASCII encoding on a support site's search field with crafted character sequences.

    Seen in 1 report
  27. Bypass HTML encoding with triple URL encoding to execute JavaScript.

    Seen in 1 report
  28. Bypass slash filtration by dynamically inserting a slash from an anchor tag's href attribute.

    Seen in 1 report
  29. Bypass tag stripping by using nested angle brackets so the parser produces a working script-closing tag.

    Seen in 1 report
  30. Bypass the command filter that splits input on spaces.

    Seen in 1 report
  31. Bypass the comment URL filter with URL encoding to inject an anchor tag carrying arbitrary text.

    Seen in 1 report
  32. Bypass the frame source check with a backslash-prefixed hostname.

    Seen in 1 report
  33. Bypass WAF restrictions using allowed characters and alternative AngularJS functions.

    Seen in 1 report
  34. Call eval through a template literal when parentheses are stripped.

    Seen in 1 report
  35. Calling the alert function indirectly to evade a WAF that blocks common function names.

    Seen in 1 report
  36. 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
  37. Capture and modify the link after client-side validation so the javascript: scheme reaches the server.

    Seen in 1 report
  38. Chain a host-header cookie redirection with an editor XSS and obfuscate the payload to bypass filters.

    Seen in 1 report
  39. Chain a POST-only reflected XSS with a cross-site request forgery page that auto-submits the payload.

    Seen in 1 report
  40. Chain a reflected XSS with a cookie bridge and a cookie-size trick to leak HttpOnly session cookies.

    Seen in 1 report
  41. Chain a self-XSS with a cross-site request forgery form that auto-submits the payload.

    Seen in 1 report
  42. Chain a self-XSS with a CSRF request so the victim's browser submits the payload on their behalf.

    Seen in 1 report
  43. Chain a stored XSS with a broken access control flaw to read the CSRF token and send an admin invite to the attacker.

    Seen in 1 report
  44. Chain clickjacking with self-XSS to trick victims into pasting and submitting a payload.

    Seen in 1 report
  45. Chain MathML, xml:base and fake URLs to bypass filters.

    Seen in 1 report
  46. Chaining a missing CSRF token on group creation with unencoded group name rendering.

    Seen in 1 report
  47. Chaining clickjacking and clipboard overwrite to turn self-XSS into reflected XSS.

    Seen in 1 report
  48. 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
  49. Change a POST request to GET and omit the CSRF token to see whether token validation is skipped.

    Seen in 1 report
  50. Change an uploaded file's extension to .html so the CDN serves it as HTML.

    Seen in 1 report