Skip to content
IDOR Disclosed report Beginner

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.

lamscun Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • 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:

recording-1677524444699.webm From the original on HackerOne

Impact

It allow attacker send a message on behalf of other user

The original report as published on HackerOne, by lamscun. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. An admin creates a room.
  2. The attacker joins the room.
  3. The attacker reads another user's session identifier from the presence update response.
  4. The attacker adds that session identifier as a parameter in the send-message request.
  5. 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.

More by lamscun

View all

4 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.