I Found an Unauthenticated WebSocket Leaking Live Customer Data
An unauthenticated Socket.IO WebSocket endpoint accepted a store ID as a query parameter and streamed live customer check-in data, including full names, phone numbers, and CRM record IDs, to anyone who connected. An attacker could enumerate store IDs from a public directory and passively monitor customer queues across the entire retail network in real time.
medium.com
Published on medium.com
I found an unauthenticated WebSocket endpoint on a major company infrastructure that was streaming live customer check-in data, full names, phone numbers, timestamps, employee assignments, store locations, and internal CRM record IDs to anyone who connected. No cookies, no tokens, no headers required.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted a client-supplied store ID in the WebSocket query string without verifying that the client was authorised to access that store's data.
Impact
An attacker could passively monitor live customer check-in data, including full names, phone numbers, and CRM record IDs, for any store whose numeric ID they could guess or obtain from the public store directory.
What the attacker needed
No authentication required; knowledge of a valid store ID; network access to the endpoint
How it was found
- Sweep subdomains and note a tiny 200 response with no title.
- Read the body and see a live connection counter indicating persistent connections.
- Check for Socket.IO by requesting the polling handshake and observing the sid.
- Switch to WebSocket transport after polling failed with a session error.
- Connect to the default namespace and receive an error demanding an ID.
- Test whether the ID goes in the query string and find it accepted.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A WebSocket is a persistent connection between a browser and a server that lets the server push updates without the browser asking. Here, the server let anyone connect and receive live customer data just by guessing a store number, with no login or password required. This means private information about customers was exposed to anyone who knew or guessed the right number.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.