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 501 to 550 of 743
  1. The origin boundary was not enforced for javascript: URIs opened from a cross-origin iframe.

    Seen in 1 report
  2. The original CSP did not include script-src-elem or script-src-attr, which take precedence over script-src.

    Seen in 1 report
  3. The payload did not run in Chrome or Firefox because of CSP and URL encoding, but it worked in IE and Edge on the HackerOne careers page lever parameter.

    Seen in 1 report
  4. The payload executes in Internet Explorer while Firefox and Chrome block it via CSP in an unsafe link warning.

    Seen in 1 report
  5. The payload was base64-encoded inside the email parameter to get past input handling on an email unsubscribe page.

    Seen in 1 report
  6. The payload was double-encoded to get past filtering on 404 error pages.

    Seen in 1 report
  7. The payload worked in Firefox and Edge but was blocked by Chrome's XSS auditor in third-party modules.

    Seen in 1 report
  8. The plain storage path redirected to a sandboxed subdomain, but the raw endpoint served HTML directly through the CDN rewrite proxy.

    Seen in 1 report
  9. The profile page blocked framing but the full email preview did not, so the profile could be framed inside an email.

    Seen in 1 report
  10. The proxy only rejected responses whose type was not an image, so a response carrying both an image type and an HTML type slipped through.

    Seen in 1 report
  11. The redirect filter was bypassed with a protocol-relative URL because it only checked for http or https prefixes.

    Seen in 1 report
  12. The same injection was blocked on the hosted service by a strict CSP but worked on self-hosted instances without one.

    Seen in 1 report
  13. The sanitiser allowed dangerous data attributes, and a framework copying the CSP nonce to an injected element defeated the policy in message attachments.

    Seen in 1 report
  14. The sanitiser did not strip the data-disable-with attribute that Rails-ujs uses to insert HTML on click.

    Seen in 1 report
  15. The sanitiser's closing-tag pattern did not allow whitespace before the closing bracket, so a space before the bracket slipped past it.

    Seen in 1 report
  16. The sanitizer was bypassed by smuggling an event handler through the serialized attributes JSON string in Trix.

    Seen in 1 report
  17. The save endpoint did not verify the CSRF token, so the stored XSS could be triggered cross-site.

    Seen in 1 report
  18. The scheme check looked only for the literal string and did not strip whitespace or control characters in an editor link setting.

    Seen in 1 report
  19. The scheme filter used a regular expression that allowed the mailto scheme anywhere in the string rather than only at the start.

    Seen in 1 report
  20. The server blacklisted only the exact text/html string, did not normalise case, and checked only the first bytes of the file in an image upload.

    Seen in 1 report
  21. The site's Content Security Policy limited the impact of the redirect to a JavaScript URI in the HackerOne Marketo contact form postMessage.

    Seen in 1 report
  22. The site's content security policy prevented script execution, so only HTML injection and redirects were possible in account settings.

    Seen in 1 report
  23. The site's CSP only blocks automatic event execution, so a click is needed to trigger the stored script in a repository file viewer.

    Seen in 1 report
  24. The site's filter blocked only some characters and a WAF rule was bypassed with upper-case input.

    Seen in 1 report
  25. The SVG sanitiser's element and attribute whitelist was bypassed because the presence of an XML entity caused the parser to skip validation in a Shopify SVG navigation icon.

    Seen in 1 report
  26. The upload only validated the declared MIME type without inspecting content, and the pre-signed URL exposed a content type override.

    Seen in 1 report
  27. The upload sanitiser stripped event handlers and tags outside the SVG element but left an onload handler inside the SVG intact.

    Seen in 1 report
  28. The vulnerable reflection only existed before the cookie notice was dismissed on custom 404 pages.

    Seen in 1 report
  29. The WAF blocked common event handlers but allowed mobile-specific touch handlers.

    Seen in 1 report
  30. The WAF failed to block CSS animation event handlers.

    Seen in 1 report
  31. The WAF matched blocked keywords as literal strings while the application stripped the inserted tag, so splitting keywords defeated the Akamai WAF.

    Seen in 1 report
  32. The WAF only inspected direct requests, not requests arriving via the site's short-link redirect.

    Seen in 1 report
  33. The WAF only inspected file names and URLs, so a payload in the SVG metadata got through.

    Seen in 1 report
  34. The WAF only inspected query-string requests, so sending the payload as JSON with parameter pollution bypassed it.

    Seen in 1 report
  35. The WAF only matched the literal javascript scheme rather than its whitespace-obfuscated forms.

    Seen in 1 report
  36. The WAF strips null bytes before comparison, so a null byte before the closing quote slips past.

    Seen in 1 report
  37. The WordPress sanitisation function did not strip the javascript protocol from the xlink:href attribute in SVG sanitisation.

    Seen in 1 report
  38. Trigger a server error on the render link so the response is served as text/html and the stored SVG executes in avatar rendering.

    Seen in 1 report
  39. Try a javascript: URL in a reflected meta tag value to see whether some browsers execute it.

    Seen in 1 report
  40. Try different leading characters before a payload to slip past an AWS WAF with the Core Rule Set that returns 403.

    Seen in 1 report
  41. Try tag and event combinations from a cheat sheet until one is not blocked by a WAF tag blocklist.

    Seen in 1 report
  42. Turn a reflected XSS into a stored one by redirecting the link-embedding iframe to the malicious URL in forum link embedding.

    Seen in 1 report
  43. Turn a self-XSS in a chatbot into a reflected XSS by chaining it with a malicious bookmark that invokes the display function.

    Seen in 1 report
  44. Turn self-XSS into reflected XSS by auto-posting the malicious password from another site in a login password field.

    Seen in 1 report
  45. Turn a self-XSS in the client email field into stored XSS through automatic client creation from inbound email.

    Seen in 1 report
  46. Turn self-XSS into an attack on others by planting the payload in a victim's record through an IDOR in supplier records.

    Seen in 1 report
  47. Two sanitisers disagreed about what counts as an HTML tag, so a tag with whitespace after the opening bracket survived both in login error sanitising.

    Seen in 1 report
  48. Use Unicode-encoded event handler names to get past a blacklist WAF in attribute reflection.

    Seen in 1 report
  49. Upload a .mjs file as a CI job artifact and check whether it is served with a JavaScript content type rather than plain text.

    Seen in 1 report
  50. Upload a file with a JPEG header followed by JavaScript that the application renames to .png without altering content, and check whether it executes.

    Seen in 1 report