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 451 to 500 of 743
  1. Steal a non-HttpOnly CSRF token cookie and use it to change the victim's password without the current password.

    Seen in 1 report
  2. Store a javascript: URL in a URL setting and reach the original tab through window.opener to steal a CSRF token in dashboard URL settings.

    Seen in 1 report
  3. Style tags are allowed by default in DOMPurify, so injected CSS can be used to leak data.

    Seen in 1 report
  4. Submit a payload using Unicode-encoded characters in the link to bypass a WAF that only matches literal keywords.

    Seen in 1 report
  5. Supply a URL containing the trusted domain anywhere in the string to pass an unanchored regex in fragment-loaded AJAX.

    Seen in 1 report
  6. Use an SVG onload payload with HTML entity encoding to evade the WAF in a search parameter.

    Seen in 1 report
  7. Use an SVG with an onload handler to get past a Cloudflare WAF that blocked basic payloads.

    Seen in 1 report
  8. Swap a blocked alert call for a different dialog function to get script execution past a function blacklist.

    Seen in 1 report
  9. Switch the request method between POST and GET when the server rejects modified fields in signup form validation.

    Seen in 1 report
  10. Switch the primary language to Vietnamese to make the translator render HTML that other languages encoded.

    Seen in 1 report
  11. Switch the request to JSON format and place the payload in an array field to bypass the WAF.

    Seen in 1 report
  12. Symlink the WebView cookie store into the attacker app's readable directory to exfiltrate cookies on Android.

    Seen in 1 report
  13. Use a template literal expression to avoid quotes and parentheses in an older API version.

    Seen in 1 report
  14. Test whether a host check can be bypassed in Safari because it returns a non-empty host for javascript URLs.

    Seen in 1 report
  15. Test whether an uppercase transformation defence can be bypassed by relying on HTML entity decoding.

    Seen in 1 report
  16. Test whether the site's CSP can be bypassed in older Firefox versions when HTML injection is possible.

    Seen in 1 report
  17. The API validated the track name on initial save but not on the edit request.

    Seen in 1 report
  18. The blocking rule matched only HTTP and HTTPS and omitted the WebSocket resource type in a content rule list.

    Seen in 1 report
  19. The browser ignored the attachment disposition when the file was loaded as a sub-document via embed or object.

    Seen in 1 report
  20. The clipboard HTML sanitiser did not strip event handler attributes on elements nested inside SVG style content in Firefox clipboard paste.

    Seen in 1 report
  21. The CSP allowed script sources on third-party domains hosting JSONP endpoints, so the policy could be bypassed.

    Seen in 1 report
  22. The CSP and request filter applied only to small files loaded as data URLs, while larger files loaded from file URLs without protections in the Preview pane.

    Seen in 1 report
  23. The CSP did not block the object tag used for the payload.

    Seen in 1 report
  24. The CSP trusted a payment provider, so an iframe to that domain could be embedded in the AI code preview chat.

    Seen in 1 report
  25. The dashboard CSP blocked the button href execution; disabling CSP in the browser showed the payload would otherwise run.

    Seen in 1 report
  26. The denylist fix was bypassed with an event handler it did not block and obfuscated strings in a welcome banner filter.

    Seen in 1 report
  27. The earlier fix only blocked a specific encoding bypass rather than encoding double quotes in the reflected path in canonical links.

    Seen in 1 report
  28. The email-change action trusted only the Referer header, which same-origin script could satisfy.

    Seen in 1 report
  29. The embed endpoint allowed framing despite X-Frame-Options, and the clipboard API let the attacker pre-fill the payload for the victim to paste in Imgur.

    Seen in 1 report
  30. The endpoint did not restrict its response content type, so the attacker-supplied Accept header decided how the response was served.

    Seen in 1 report
  31. The exploit was blocked by Content Security Policy on a program asset identifier.

    Seen in 1 report
  32. The exported main activity trusted a URL extra without the scheme and URI checks applied by the launcher activity.

    Seen in 1 report
  33. The filter blocked specific strings such as the onerror attribute, so an alternative tag and attribute got through in a search parameter.

    Seen in 1 report
  34. The filter only blocked lowercase script tags, so other casing or tags got through in a basic XSS filter.

    Seen in 1 report
  35. The filter only encoded parameters containing an opening bracket immediately followed by a closing one in multi-parameter reflection.

    Seen in 1 report
  36. The filter only matched complete tags ending in a closing angle bracket, so an unclosed tag bypassed it in a tag-stripping filter.

    Seen in 1 report
  37. The filter only stripped plain-text script patterns and did not decode or block encoded payloads inside embed tags.

    Seen in 1 report
  38. The filter stripped only script tags, so an image tag with an error handler executed.

    Seen in 1 report
  39. The fix for an earlier HTML injection was incomplete and other HTML gadgets still rendered in the code flow view.

    Seen in 1 report
  40. The fix for the stored script on the sign-in page was incomplete and a later bypass restored the same impact.

    Seen in 1 report
  41. Place the Flash MIME string in a parameter echoed into the Content-Type header to bypass nosniff.

    Seen in 1 report
  42. The forbidden-scheme filter did not account for placeholder keywords such as a branch placeholder that could be replaced with a dangerous scheme in an editor link preference.

    Seen in 1 report
  43. The frontend used AngularJS, so injected markup could bypass the Content Security Policy and execute in a Google Code-in JSON script block.

    Seen in 1 report
  44. The GET request stripped special characters but a POST request with the same parameter did not in a search parameter.

    Seen in 1 report
  45. The input filter only blocked literal angle brackets and did not decode HTML entities before checking in Imgur album creation.

    Seen in 1 report
  46. The input filter only removed one angle bracket, so adding an extra one let an image tag with an error handler through.

    Seen in 1 report
  47. The length limit applied only to the first name field, so a short script tag loading an external script fitted in the shared-list title.

    Seen in 1 report
  48. The listener only checked for http: or https: prefixes, which an iframe-based message could get around in postMessage listeners.

    Seen in 1 report
  49. The maker portal URL only needed to start with the trusted domain, so a lookalike domain beginning with that name passed.

    Seen in 1 report
  50. The normal cross-process rejection of javascript: URLs was bypassed by forging the IPC message with a system principal.

    Seen in 1 report