Skip to content

Chapter 6

The socket checklist

Run these in order. Each box is one check from the earlier chapters.

3 min readWebSocket

A checklist keeps you from skipping the boring checks that pay. Use accounts you own. Account A, Alice, is the attacker. Account B, Bob, is the victim. Click a line to mark it. The mark stays in this browser. A box is a check, not a permission to raise volume.

  • Change Origin to a host you control.
  • If that changed Origin still returns 101, record CSWSH.
  • Remove Origin and send the handshake again.
  • If a missing Origin still returns 101, record who can connect.
  • Set Origin to null.
  • If Origin null still returns 101, record CSWSH.
  • From your origin, open the socket while Account B is logged in.
  • Send the handshake with no cookie.
  • If a private action still answers, record the missing authentication.
  • Request /admin and the other namespaces as the lowest role.
  • If the token is in the query string, check logs and proxy history.
  • Check whether that token URL appears in a Referer header.
  • After logout, send one frame on the old socket.
  • After a password reset, send one frame on the old socket.
  • After a role demotion, send one privileged frame on the old socket.
  • Swap each object id in a frame for an Account B id.
  • Swap each channel name for a channel owned by Account B.
  • Open a second socket with the same token.
  • If both sockets stay authenticated, record the duplicate session.
  • Copy every action name out of the JavaScript bundle.
  • Send each action as the lowest role.
  • Put a SQL metacharacter in a text field on a frame.
  • Put an HTML marker in a text field on a frame.
  • Put a NoSQL operator in a JSON field on a frame.
  • Send one field as a string, a number, an array, and an object.
  • On accounts you own, repeat a limited action on parallel sockets.
  • Send about 30 frames on one socket.
  • If those frames are all accepted, record the missing per-frame limit.
  • Do not raise the volume to prove the missing limit.
  • Search client code for the cleartext ws scheme.
  • Confirm whether a real client connects with ws, including apps and HTTP pages.
  • Put a harmless marker in data the server broadcasts.
  • See whether your own admin socket renders that marker.
  • Attach the handshake and the frames to the report.
  • Name the impact with the ordinary HTTP bug name.

The families chapter has the interpretation for each box. The reporting table has the title to use. If a box is not applicable, mark it and write why in the notes of the report. A skipped admin path is a gap. An admin path that does not exist is not a bug. Next, the fixes chapter lists the checks to ask for in the report.

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

Links out to

No outgoing internal links on this page.

WebSocketFor authorized testing only.