IDOR - send a message on behalf of other user
A chat service exposed other users' session identifiers to anyone who joined a room, and the message-sending request accepted a session identifier supplied by the client. An attacker could therefore send chat messages that appeared to come from another user.
- Disclosed after 7 months
Hi there,
I just found an IDOR in https://hello.dev.myhubs.net/. It allow attacker send a message on behalf of other user
Step to reproduce: - 1. Admin: Create Room - 2. Attacker: Join room - 3. Attacker get "session_id" of other user in response "presence_diff"
{{media:0}}
- 4. Attacker send add "session_id" parameter to request send message
```
["8",null,"hub:84fbckn","message",{"session_id":"<victim_session_id>","body":"eeeee","type":"chat"}]
```
{{media:1}}
- Now the message will be send on behalf of victim
POC:
Impact
It allow attacker send a message on behalf of other user
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 disclosed other users' session identifiers in presence updates and then trusted a client-supplied session identifier to decide who authored a message, instead of binding authorship to the authenticated connection.
Impact
An attacker could send chat messages that appeared to come from another user, which could be used to impersonate or deceive others.
What the attacker needed
Attacker can join the same room as the victim; victim is present in the room
How it was found
- An admin creates a room.
- The attacker joins the room.
- The attacker reads another user's session identifier from the presence update response.
- The attacker adds that session identifier as a parameter in the send-message request.
- The message is then delivered as if sent by the victim.
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.
When you join a chat room, the server tells your browser who else is present. Here it also handed out a secret code (a session identifier) for each of those people. The server then trusted whatever code the sender put in the message request, so an attacker could paste someone else's code and have their message shown as that person's.
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.