Skip to content
Info disclosure Write-up Intermediate

How I was able to disclose the Users’ chats with AI chat Bot?

A chat bot site exposed private chat logs under a path that returned 404 when accessed directly, but was reachable via a tilde-prefixed variant. An attacker could read over a thousand private conversations by discovering the path through robots.txt and Wayback Machine archives and then bypassing the 404.

who1am1i999 Follow

Published on medium.com

Well , It will be a Nice Write up today , I will discuss with you about two or three ideas chaining them together to get the hidden gem which is the private chats .

WHO AM I ?, on 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 server treated the tilde-prefixed path as a different route that bypassed the access check or routing rule that produced the 404 for the direct path.

Impact

An attacker could read over a thousand private chats with the AI chat bot, though the text does not state whether a WAF or other defence limited the exposure.

What the attacker needed

Access to the public site; knowledge of a tokenised path from archives

How it was found

  1. Read the robots.txt file and notice the path /s/.
  2. Try fuzzing variations of /s/ but find nothing.
  3. Search Wayback Machine archives for the /s/ path and find a tokenised URL.
  4. Access the archived URL directly and receive a 404.
  5. Try path bypass variants such as adding ../ or ~/ before the path.
  6. Access the tilde-prefixed URL and see over a thousand private chats.

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 web server can have hidden folders that are not linked from the main site. The author found one such folder name in a public file and in old archived copies of the site. When the normal address gave a 'not found' error, adding a tilde character before the folder name made the server show the private chats instead.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.