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.
-
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
-
Serve the malicious page from a same-site origin on a different port.
Seen in 1 report
-
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
-
Use a crafted origin containing special characters to slip past a regex-based Origin check.
Seen in 1 report
-
Use an origin that the server parses as an allowed host but the browser treats as a different site.
Seen in 1 report
-
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
-
When frame headers block framing, try a blank or root-domain referer.
-
When CSP blocks script execution, use a meta refresh tag to redirect or log the user out.
-
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
-
Send the deployment zip as the body of a plain text POST rather than a multipart upload.
Seen in 1 report