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.
2026
7 pointsNew this year2
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
Chaining self-XSS, cookie tossing and anti-CSRF token prediction to reach an auto-approval flow first appears in the disclosed reports.
Kept working4
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
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
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
Combining self-XSS, cookie tossing and anti-CSRF token prediction reached an auto-approval flow.
Turned up less1
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 pointsNew this year2
SameSite bypasses are noted as part of the renewed cross-site WebSocket hijacking interest in the disclosed reports.
Seen in 3 reports
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
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
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
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 pointsNew this year1
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
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
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 pointsKept working4
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
The same product's WebSocket endpoint lacking an Origin check was reported several times in the disclosed reports.
Seen in 3 reports
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
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