Privacy Violation In Chat System
The chat system did not delete file attachments when a message was deleted, leaving the files accessible via their pre-signed URLs. An attacker who obtained the file URL could still access the attachment after the message was removed.
Inderjeet Singh - rashahacks Follow
Published on rashahacks.com
Here’s the write-up for the report I wrote 3 months ago on a Private Program on Hackerone. The bug was present in the chat system where the app is keeping the personal data of the users even after deletion.
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 delete message function only removed the message record and did not delete or revoke access to the associated file attachment.
Impact
A user who deleted a message could still have their file attachment accessible to anyone who obtained the file URL, potentially exposing personal information.
What the attacker needed
A user account; ability to send messages with attachments; knowledge of the file URL
How it was found
- Send a message with a file attachment.
- Open the file in a new tab.
- Delete the message.
- Check that the message is gone.
- Reload the file tab and see the file is still accessible.
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 delete a chat message, you expect any files you sent with it to be deleted too. Here, the message text disappeared but the file stayed on the server and could still be opened if you had its link. This means private files could remain accessible after someone thought they had removed them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.