Skip to content

In-depth lesson · Cross-site WebSocket hijacking

Year by year

What the disclosed Cross-site WebSocket hijacking reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 19 of 19

2026

7 points

New this year2

  1. Hosting the malicious page on a subdomain of the same registrable domain so SameSite Strict or Lax cookies are still sent is a new pattern in the disclosed reports.

    Seen in 1 report
  2. Chaining self-XSS, cookie tossing and anti-CSRF token prediction to reach an auto-approval flow first appears in the disclosed reports.

    Seen in 1 report

Kept working4

  1. Hunters opened a WebSocket client with the victim's cookies and checked whether the server returned session data or chat history to a foreign origin.

    Seen in 1 report
  2. Sending the client's initial READY or session-start message showed whether the server returned the full message history or editor configuration.

    Seen in 1 report
  3. When a session cookie was SameSite=Strict, hunters looked for reflected XSS on a sibling subdomain of the same registrable domain so the script was treated as same-site and the cookie was sent.

    Seen in 1 report
  4. Combining self-XSS, cookie tossing and anti-CSRF token prediction reached an auto-approval flow.

    Seen in 1 report

Turned up less1

  1. The 2025 focus on local desktop WebSocket ports and client library handshake handling does not recur in the 2026 reports, which return to browser cookie and SameSite issues.

    Seen in 1 report

2025

5 points

New this year2

  1. SameSite bypasses are noted as part of the renewed cross-site WebSocket hijacking interest in the disclosed reports.

    Seen in 3 reports
  2. Attacking a desktop terminal application's local WebSocket server on a fixed port first appears in the disclosed reports.

    Seen in 1 report

Kept working3

  1. Hunters recreated the browser's WebSocket connection with a generic client using the same URL pattern, headers, cookies and document identifier to test whether authentication was only cookie-based.

    Seen in 1 report
  2. Sending the client's initial READY or session-start message showed whether the server returned the full history or editor configuration.

    Seen in 1 report
  3. Reading a desktop app's source to find its local WebSocket port and message format, then opening a web page that connects to that port and sends a command, exposed a local socket attack.

    Seen in 1 report

2022

3 points

New this year1

  1. Chaining a crafted collaboration field update to a victim's build action is a new pattern in the disclosed reports.

    Seen in 1 report

Kept working1

  1. Sending a form-update event over a collaboration socket that set another collaborator's field to a crafted path let a later build action fire the attacker-chosen request.

    Seen in 1 report

Turned up less1

  1. The plain Origin-header swap against a login or chat socket, common in 2017, is not the focus of the 2022 reports, which instead target CSP and collaboration flows.

    Seen in 3 reports

2017

4 points

Kept working4

  1. Hunters captured the WebSocket upgrade request and resent it with the Origin header changed to an external site to see whether the handshake still succeeded.

    Seen in 3 reports
  2. The same product's WebSocket endpoint lacking an Origin check was reported several times in the disclosed reports.

    Seen in 3 reports
  3. Connecting from a foreign origin with a generic client and sending messages showed whether actions such as login or document edits were accepted.

    Seen in 2 reports
  4. Opening a socket with the victim's cookies revealed whether the server returned session data or chat history to a foreign origin.

    Seen in 1 report