Skip to content
Access control Write-up Intermediate

How Getting Stuck Led Me to a $3,XXX Bounty: The Recon That Almost Meant Nothing

A WebSocket endpoint for a chatbot accepted a token parameter that could be guessed or reused from recon data, allowing an attacker to impersonate users and read their previous chat histories containing KYC information, PII and invoices.

kongsec Follow

Published on kongsec.medium.com

Hi everyone, I’m Aditya Shende (aka Kong) from India -a bug bounty hunter, biker, and cybersecurity researcher . As July is my birthday month so expect one more good article for your research

Kongsec, on kongsec.medium.com

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 WebSocket endpoint authenticated users with a guessable or leaked token passed in the URL, without any additional check that the token belonged to the requesting user.

Impact

An attacker could impersonate any chatbot user and read their past and current conversations, which exposed KYC information, PII and invoices.

What the attacker needed

Tokens or secrets gathered from recon; access to the chatbot WebSocket endpoint

How it was found

  1. During recon, collect tokens, secrets and API endpoints from the target's JavaScript and other public sources.
  2. Notice a domain in Burp's sitemap that responds over WSS and mentions a token parameter.
  3. Check the WebSocket logs in Burp and see the token being passed in the URL path.
  4. Try the tokens and secrets gathered during recon against that WebSocket endpoint.
  5. Observe that access is granted to previous chats, current chats and invoice data.

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 chatbot's live chat connection used a simple token to identify who you are. The token was easy to guess or was found lying around during reconnaissance, so someone else could pretend to be you and read your old conversations. Those conversations contained personal identity documents and payment details.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.