Skip to content

In-depth lesson · Cross-site WebSocket hijacking

Bypasses and variations

Every point the Cross-site WebSocket hijacking reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 10 of 10
  1. Host the malicious page on a subdomain of the same registrable domain so that SameSite Strict or Lax cookies are still sent.

    Seen in 3 reports
  2. Serve the malicious page from a same-site origin on a different port.

    Seen in 1 report
  3. Log the victim into the attacker's account first so the attacker's own stored XSS can read the victim's pages through same-origin frames.

    Seen in 1 report
  4. Use a crafted origin containing special characters to slip past a regex-based Origin check.

    Seen in 1 report
  5. Use an origin that the server parses as an allowed host but the browser treats as a different site.

    Seen in 1 report
  6. Spoof the Host header to point a victim's editor URL at the attacker's instance and trigger an OAuth redirect.

    Seen in 1 report
  7. When frame headers block framing, try a blank or root-domain referer.

    Seen in 1 report
  8. When CSP blocks script execution, use a meta refresh tag to redirect or log the user out.

    Seen in 1 report
  9. Send a cross-site POST with a plain text content type so the adapter parses the body as a debug command.

    Seen in 1 report
  10. Send the deployment zip as the body of a plain text POST rather than a multipart upload.

    Seen in 1 report