Skip to content

Chapter 5

Reporting socket bugs

Name the old bug. Then show the handshake and the frames.

2 min readWebSocket

Even a great socket bug stalls in triage if the reader gets lost in protocol jargon. Name the familiar vulnerability in your very first sentence, then explain how the WebSocket frame bypasses the normal check.

What you found First sentence of the report Severity ballpark
Origin is not validated Cross-site WebSocket hijacking. A page you host can act as the victim on the live socket. Medium to critical, by what the socket can do
Socket survives logout or a password reset Persistent unauthorized session via WebSocket. Medium to high
Subscribe or read as another user IDOR via WebSocket subscription. Same band as an HTTP IDOR with the same read or write
Injection in a frame SQL injection or XSS via a WebSocket message. Same band as the HTTP version of that injection
A client really connects with ws Unencrypted live channel. A network attacker can read or insert frames. Medium
Admin path accepts the lowest role Forced browsing via the WebSocket handshake. High

The cleartext row is for a client that connects. Do not use it for a string the browser blocks and no other client calls. Chapter 3 has that split.

The ballpark is a start. A socket that sends orders is the high or critical end, because the attacker also reads the account live. A notification socket moves with the personal data in the frames. The program’s own scale still decides the number.

  1. Export the handshake request and the 101 response.
  2. Export the frame list that proves the read or the write.
  3. Add a timestamped screenshot when the proof is a live private frame.
  4. State Account A, the attacker, and Account B, the victim.
  5. Name the HTTP bug in the title, and say the check ran only on the handshake.

Most triagers live in the HTTP history tab and rarely touch WebSockets. Give them the exact click path in one line: open HTTP history, find the GET returning 101, and click Create WebSocket session.

For an order socket, say cross-site action with a live read of the account. That is the trade case in ordinary language. For a socket that survives logout, point at the account-takeover family. The session ended on HTTP and stayed open on the socket. For IDOR, say what object came back, not only that an id was swapped. For injection, say whether your own client rendered HTML, or the database changed a query.

Do not lead with the opcode. Lead with the data or the action. The opcode is a footnote for anyone who has to replay the frame.

Next, Chapter 6 is the checklist to run on a target.

Connections1 backlink · 3 outgoing · 4 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

WebSocketFor authorized testing only.