Insecure Direct Object Reference - access to other user/group DM's
A user who left a group direct message could still access its messages by visiting a delete URL containing the group's DM ID. This allowed a former member to read messages sent after they left, which the remaining members believed were private.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 5 months
- Paid in 25 days
- Disclosed after 6 months
Hello,
I found a way to access group DM's which i don't have access to, Conditions to be met:
- Should have been in that DM group atleast once.
Exploitation ways:
- let's say they're three twitter profiles, Naruto , Goku and Eren.
- Naruto creates a DM group in between himself , Goku and Eren.
- Now Eren leaves the DM group, at this moment Goku and Naruto think that their DM's are private and Eren won't be able to see the DM's cause he just the left group.
- But Eren can still access the DM's by just navigating himself to
https://mobile.twitter.com/a/messages/582225197727506432/delete
where 582225197727506432 is the DM id.
Steps to Reproduce:
- Create three profiles A,B and C
- From account A create a DM group for A, B and C
- Leave the DM group from account C
- Now message something in the DM group from account A or account B.
- A unique DM id will be created for that message.
- Note down the DM ID and
From Account C navigate yourself to
https://mobile.twitter.com/a/messages/[DM ID]/deleteReplace the [DM ID] with your noted DM ID in the above steps.
POC: http://i.imgur.com/j08a01n.png
Regards Wesecureapp
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server authorised access based on past membership rather than current membership of the group DM.
Impact
A former group member could read messages sent after they left, which the remaining members expected to be private.
What the attacker needed
Must have been a member of the group DM at least once; Know the DM ID of the group
How it was found
- Create three accounts, A, B and C.
- From account A, create a group DM containing A, B and C.
- Leave the group DM from account C.
- Send a message in the group DM from account A or B.
- Note the DM ID for that message.
- From account C, visit the delete URL with that DM ID substituted.
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 report has not been written yet. The Original tab links to the source.
A group DM is a private chat. After someone leaves, they can still open it using its web address if they were once a member.
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.