How i Got $500 From Information Disclosure By Sending a Jpeg
The chat file-upload feature accepted a user-supplied file_url parameter that pointed to an external server, and when other team members opened the chat their browsers fetched that URL, leaking their IP address, OS version, country, time zone and User-Agent. The attacker could collect this data from every member who viewed the chat without any interaction.
medium.com
Published on medium.com
The target platform provides a team workspace where members can collaborate by creating and managing tasks. In addition, the platform offers a built-in team chat feature that allows users to communicate directly within the workspace
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 accepted a client-supplied file_url for the uploaded image and rendered it directly in the chat without validating that it pointed to an internal or trusted location.
Impact
An attacker could collect the IP address, time zone, operating system version, country and browser details of every team member who opened the chat, without any user interaction.
What the attacker needed
A team workspace account; victim opens the chat
How it was found
- Upload an image in the team chat and intercept the request.
- Change the file_url parameter to point to an external server under the attacker's control.
- Forward the request and confirm the server response.
- Open the chat as another team member and observe the request arriving at the external server.
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 upload an image in a chat, the app normally stores it on its own server and shows it to others. Here the app trusted a value in the upload request that said where the image lives, so the researcher changed it to point at a server they controlled. When other people opened the chat, their browsers loaded the image from that outside server, and the server could see their IP address and browser details.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.