I Found a User Password in a Chat Log File Just by Changing a Number in a URL — This is How Hackers…
Chat transcripts were stored as static files with sequential numeric filenames and served without access control. By changing the number in the download URL, an attacker could read other users' private chat logs, including a password that allowed logging in as another user.
If you have been following my Access Control series you know I have been going through PortSwigger Web Academy labs one by one breaking each vulnerability down so beginners can understand exactly what is happening and why it matters in real bug bounty hunting.
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 stored chat transcripts as static files with predictable sequential names and did not check whether the requester was allowed to access each file.
Impact
Any user could read any other user's private chat conversations, and in this case the exposed password allowed logging in as another user.
What the attacker needed
A user account on the site; ability to start a live chat; a proxy tool to modify requests
The fix
The application should enforce access control on each transcript file so that users can only download their own transcripts, rather than relying on unguessable filenames.
How it was found
- Open the live chat and send a message to start a conversation.
- Click View Transcript to download your chat transcript.
- In Burp, send the transcript download request to Repeater.
- Change the filename in the request from 2.txt to 1.txt.
- Read the response, which contains another user's chat transcript with their password.
- Log in as that user using the password found in the transcript.
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.
When you download your chat transcript, the server gives it a simple name like 2.txt. Because the names are just numbers in order, anyone can try 1.txt or 3.txt and see someone else's chat. One of those chats contained a password, so the attacker could log in as that person.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.