Chapter 5
Reporting socket bugs
Name the old bug. Then show the handshake and the frames.
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.
What to attach
Section titled “What to attach”- Export the handshake request and the 101 response.
- Export the frame list that proves the read or the write.
- Add a timestamped screenshot when the proof is a live private frame.
- State Account A, the attacker, and Account B, the victim.
- 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.
Words that keep the impact
Section titled “Words that keep the impact”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.
Related reporting guides
Section titled “Related reporting guides”- See the full reporting workflow in Writing Reports, Broken Access Control reporting, and Reports that get accepted.
Open local graph around this page
WebSocketFor authorized testing only.