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 401 to 450 of 743
  1. Rely on iOS WebKit to ignore the declared text/plain content type.

    Seen in 1 report
  2. Rely on the text/plain content type to prevent script execution, which was bypassed because older browsers do not enforce it.

    Seen in 1 report
  3. Remove the greater-than character from the payload to get past a server error and still fire the script in a notification cookie.

    Seen in 1 report
  4. Remove the is attribute from the DOM, then re-parse the serialised output so the unencoded quote injects a handler in an HTML serializer.

    Seen in 1 report
  5. Remove the value of a signature parameter and check whether the check is bypassed.

    Seen in 1 report
  6. Remove a conversion parameter from an image URL to return the raw uploaded SVG.

    Seen in 1 report
  7. Remove the client-side length limit to let a longer payload reach the server in an operator wallet key name.

    Seen in 1 report
  8. Remove the maxlength attribute from the wallet name input to allow a longer payload in wallet and transaction fields.

    Seen in 1 report
  9. Rename an outer SVG element to a non-standard tag so the browser re-parses hidden markup in HTML context.

    Seen in 1 report
  10. Rename the malicious HTML file to include the target domain so the Referer check passes.

    Seen in 1 report
  11. Reorder query parameters to bypass the WebSocket parameter filter in DevTools device discovery.

    Seen in 1 report
  12. Replace a filtered function name with an alternative such as confirm, or use encoded keywords, to get past a blacklist in a returnurl parameter.

    Seen in 1 report
  13. Resend a form-encoded request as JSON so the JSON model binder skips ASP.NET request validation on a resource creation endpoint.

    Seen in 1 report
  14. Reuse the site's own CSS rules and class-bound handlers by adding arbitrary class attributes to code and pre elements in a Markdown sanitiser.

    Seen in 1 report
  15. Reuse your own CSRF token in a victim's session.

    Seen in 1 report
  16. Rotate case and insert control characters into the javascript: scheme to evade the WAF scheme filter.

    Seen in 1 report
  17. Exploit sandbox checks applied to the original XML document but not to the XHTML document produced by the XSLT transformation in an iframe.

    Seen in 1 report
  18. Turn self-XSS into stored XSS because any user could edit another user's page and open its source view in a wiki.

    Seen in 1 report
  19. Send a combined content type of image/png,image/svg+xml so the server omits the CSP header while the browser still renders the SVG.

    Seen in 1 report
  20. Send a postMessage with a meta refresh dataKey from a sandboxed iframe to redirect the parent page in Xibo CMS.

    Seen in 1 report
  21. Send a simple HTML tag when the WAF only blocks script tags and see whether it renders live.

    Seen in 1 report
  22. Send a value with a blank line to spoof the response body and fire script via header injection.

    Seen in 1 report
  23. Send duplicate currency cookies so the cache stores a malicious value while the application uses a benign one.

    Seen in 1 report
  24. Send encoded variants of the less-than sign to find one the comment filter misses.

    Seen in 1 report
  25. Send many unclosed paragraph tags followed by an extra tag with an event handler so the HTML sanitiser allows the extra tag.

    Seen in 1 report
  26. Send the parameter twice so the checked value and the stored value differ in role creation.

    Seen in 1 report
  27. Send the payload by POST to avoid WAF rules that only apply to GET in a search JSON endpoint.

    Seen in 1 report
  28. Send the same parameters by POST to avoid a WAF that only inspected GET requests.

    Seen in 1 report
  29. Serve the page as a message/rfc822 document so document mode inheritance reaches all IE11 users.

    Seen in 1 report
  30. Set a cookie with a capitalised __HOST- prefix on a sibling domain to bypass a nonce check.

    Seen in 1 report
  31. Set a JSON label's typesetAsMath flag to false so the renderer injects the label content into the page in SVG and JSON rendering.

    Seen in 1 report
  32. Set a legacy version cookie and a cookie with an opening quote so the parser swallows the HttpOnly cookie in a cookie reflection endpoint.

    Seen in 1 report
  33. Set request fields to enable an undocumented format that disables encryption and compression in a map data format.

    Seen in 1 report
  34. Set the field value directly from the browser console to bypass keyboard and paste filters, and use two script tags to get past a single-tag regex in a location tag field.

    Seen in 1 report
  35. Set the upload MIME type to a video transport stream type that WebKit-based mobile browsers interpret as HTML.

    Seen in 1 report
  36. Set user and course identifiers to zero to match an unauthenticated session in the permission check for storage APIs.

    Seen in 1 report
  37. Shorten the payload to get past a length limit in a profile name.

    Seen in 1 report
  38. Sign the headers with only an unsupported hash algorithm so the body verification passes on an empty digest list in signature-based SRI.

    Seen in 1 report
  39. Solve the CAPTCHA separately and replay the token in a cross-site form.

    Seen in 1 report
  40. Use specially encoded sender headers to bypass DMARC, DKIM, SPF and spam filters.

    Seen in 1 report
  41. Split a closing tag across two parameters to get past a WAF that strips event handlers, parentheses and closing tags.

    Seen in 1 report
  42. Split a payload across duplicate query parameters or insert a pipe character to get past a WAF in search features.

    Seen in 1 report
  43. Split a payload across multiple fields with equal lengths to get past a character limit, and use an endpoint that lacks the WAF.

    Seen in 1 report
  44. Split an HTML fragment across two name fields to get past a per-field length limit in a signup form.

    Seen in 1 report
  45. Split script tags to get past a WAF that strips script tags and blocks external script sources.

    Seen in 1 report
  46. Split the javascript scheme word to bypass filtering and add a script-src-elem directive to bypass CSP in a Booking notes filter.

    Seen in 1 report
  47. Split the payload across two parameters to bypass a WAF and Chrome's XSS Auditor in cookie-setting scripts.

    Seen in 1 report
  48. Split the keyword to get past the filter in the invitation name field.

    Seen in 1 report
  49. Spoof the forwarded host header alongside the payload to influence how the cached response is built.

    Seen in 1 report
  50. Start a javascript: URL with a comment and newline to bypass the required slash in a desktop client URL parser.

    Seen in 1 report