Auth Bypass in Google Workspace Real Time Collaboration
The real-time collaboration system used a 16-character session ID to authenticate users, and this ID was included in events received by the /bind endpoint. An attacker could obtain another user's session ID and use it to perform real-time actions such as chatting or moving the cursor in the victim's name.
Published on feed.bugs.xdavidhu.me
In products that use the same real-time collaboration system as Google Docs, an attacker could take over other user’s “real-time sessions”. This means that the attacker could chat, move the cursor, and perform other collaboration-related actions in the name of any victim.
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 real-time collaboration system included the session ID of the event initiator in events broadcast to other users, and used that same session ID as the sole authentication token for certain endpoints.
Impact
An attacker could impersonate other users in real-time collaboration actions such as chatting, moving the cursor, and kicking users from the document, but editing was not fully impersonated as version history still showed the attacker.
What the attacker needed
Access to a document with the victim; ability to intercept own traffic; victim must generate a join event
How it was found
- Create three users: Attacker, Victim, and Observer.
- Only proxy Attacker's traffic with Burp Suite.
- As Victim, create a document and invite Attacker and Observer as Editors.
- Open the document in all three browser windows.
- Refresh Victim's page to generate a join event on the /bind endpoint.
- In Burp, find the /bind response containing Victim's user object and note Victim's sid.
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.
In collaborative tools like Google Docs, each user has a secret session ID that proves who they are. The system accidentally shared this ID with other users in the document. An attacker could take that ID and pretend to be the victim for some actions, like sending chat messages or moving the cursor.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.