The space creators can still see the members of the space, even after they have been removed from the space.
A removed space creator could still view the names and email addresses of current members by changing the space ID in a request. This allowed a former creator to access member information after removal.
November 30, 2022
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.
Context
Google Chat Spaces have a role model in which the person who creates a space automatically becomes the Space Manager. A manager can add and remove members. When a member is removed from a space, they lose access to the space and can no longer view its members. The same model applies to Google Chat groups, where a group creator can manage the group and its membership.
The report describes an access control flaw in the request that the web client sends when a manager clicks "View Members". The request is a batchexecute call to the Dynamite web UI backend, and it carries a space identifier. The researcher found that the backend did not check whether the caller was still a member or manager of the space whose identifier was supplied.
Setup
No special tooling is described beyond an intercepting proxy, which is needed to capture and modify the batchexecute request. The precondition is a Google account that has created at least one space or group, so that the attacker has a space of their own whose identifier can be swapped for the victim's. The victim's space ID must belong to a space the attacker originally created and was later removed from. The report does not name specific browser versions or client build numbers.
Finding it
The researcher started from the normal behaviour: a space creator is a Space Manager and can view the member list. The question was what happens to that ability once the creator is removed from the space by another manager. In theory the removed creator should lose access to the space and to its member list. In practice, the removed creator could still view the current members' names and email addresses. The same behaviour was observed in Google Chat groups: a group creator who had been removed from the group could still view the current members' names and email addresses.
This looked wrong because removal from a space or group is supposed to revoke access entirely. The member list contains personal data (names and email addresses), so a removed user retaining read access to it is a confidentiality problem, not just a UI glitch.
Exploitation
Step 1: open the member list from the attacker's own space
From the attacker's account, which is the creator of a space, select any space and click "View Members". This produces the legitimate request that a manager would send, and it is the request that will be tampered with.
Step 2: intercept the request
The captured request is:
POST /u/0/_/DynamiteWebUi/data/batchexecute?rpcids=
f.req=[[["EmdhDb","[["space/AAAAt0_Eux0","AAAAWEXczuc",2],null,100]",null,"3"],["vWUt9","[["space/AAAAt0_Eux0","AAAAt0_Eux0",2],true,null,null,null,null,2]",null,"7"],["vWUt9","[["space/AAAAt0_Eux0","AAAAt0_Eux0",2],true,null,true,100,null,3]",null,"9"],["HtElWb","[[[["space/AAAAAt0_Eux0","AAAAt0_Eux0",2],[null,null,null,null,["101401016020542615766","human/101401016020542615766",0],"human/101401016020542615766"]]]]",null,"12"]]]&at=ALDO5-OHICs4q4urMMN_XQcR3muz:1657120153448&
The body is a batchexecute batch. The f.req parameter holds a JSON array of RPC calls, each with an RPC identifier (EmdhDb, vWUt9, HtElWb), a stringified parameter list, and a sequence number. The space identifier appears repeatedly as space/AAAAt0_Eux0, and the user identifier appears as human/101401016020542615766. The at parameter is an anti-CSRF token tied to the session.
Step 3: swap the space identifier
Replace the attacker's space ID with the victim's space ID, where the victim space was originally created by the attacker. The user ID does not need to be changed. The report does not show the modified request, only the original one and the instruction to change the space ID.
Step 4: send the request
Sending the modified request returns HTTP 200 and exposes the names and email addresses of the space members in the response. The report does not reproduce the response body.
Root cause
The backend returned the member list to a caller who had been removed from the space, so it did not enforce current membership on this call. Because the space identifier is supplied by the client and the user identifier is not changed, a removed creator can point the request at a space they created and still receive the member list. This is an IDOR: the object reference (the space ID) is user-controlled and the server does not verify that the caller is still entitled to it.
Impact
A user who created a space or group and was later removed from it can still read the current members' names and email addresses, including invited people. The report's attack scenario is an employee who is fired from the organisation and removed from the space or group: they retain visibility of the member list.
Fix
The report states that the issue was fixed on 05.11.2022.
Variants to test
- Other
batchexecuteRPCs that take a space ID, such as the ones in the same batch (EmdhDb,vWUt9,HtElWb). A positive result is a 200 response containing member data for a space the caller no longer belongs to. - Group equivalents of the same member-listing call. A positive result is the same leak of names and email addresses for a group the caller was removed from.
- A positive result is a response reflecting another user's membership data.
Timeline
| Event | Date |
|---|---|
| Reported | 06.07.2022 |
| Triaged | 20.07.2022 |
| Bounty | 29.07.2022, $1337 |
| Fixed | 05.11.2022 |
| Disclosed | 30.11.2022 |

What happened, in plain words
Google Chat lets you create a space, which is a shared room where a group of people talk. The person who creates a space automatically becomes its Space Manager, a role that can add and remove members. When a manager removes someone from a space, that person is supposed to lose access completely: they should no longer be able to open the space or see who is in it.
This report describes a flaw in that rule. If the person who created the space is later removed by another manager, they can still see the current members' names and email addresses, even though they are no longer in the space. The same thing happens with Google Chat groups: a group creator who has been removed can still see the current members' names and email addresses.
The researcher found this by watching the request that a browser sends when a manager clicks "View Members", then changing one value in it (the identifier of the space) and sending it again. The server answered with the member list anyway. This kind of bug is called an IDOR (Insecure Direct Object Reference): the server accepts an identifier supplied by the user and does not check that the user is still allowed to see the thing it points to.
Background concepts, from zero
Before the steps, a few ideas that the rest of the article relies on.
- A web request and a response. When you click something in a browser, the browser sends a request to a server and the server sends back a response. The response usually contains the data needed to draw the page.
- An API. An API is the set of requests a website's own pages use to talk to its servers. You never see them as a normal user, but the browser sends them behind the scenes. Here the API is Google's internal Chat backend, called the Dynamite web UI in the request path.
- An intercepting proxy. A tool that sits between your browser and the server, so you can pause a request, read it, change it, and then let it continue. It is how the researcher captured and edited the request below.
- A token. A short string that proves who you are or that a request really came from your session. The
atvalue in the request is an anti-CSRF token: it helps the server confirm the request was made from your own logged-in session and not forged by another site. - An identifier (ID). A unique label for a thing, like a space or a user. If a server trusts an ID sent by the browser without checking that you are allowed to use it, you get an IDOR.
- HTTP 200. The standard status code meaning "OK, here is your response".
Finding it
The researcher started from normal behaviour. A space creator is a Space Manager and can view the member list. The question was what happens to that ability once another manager removes the creator from the space. In theory the removed creator should lose access to the space and to its member list. In practice, the removed creator could still view the current members' names and email addresses. The same behaviour was observed in Google Chat groups: a group creator who had been removed from the group could still view the current members' names and email addresses.
This matters because removal from a space or group is supposed to revoke access entirely. The member list contains personal data (names and email addresses), so a removed user keeping read access to it is a confidentiality problem, not just a cosmetic glitch.
What you need before starting
No special tooling is described beyond an intercepting proxy, which is needed to capture and modify the request. The precondition is a Google account that has created at least one space or group, so the attacker has a space of their own whose identifier can be swapped for the victim's. The victim's space ID must belong to a space the attacker originally created and was later removed from. The report does not name specific browser versions or client build numbers.
Exploitation, step by step
Step 1: open the member list from the attacker's own space
From the attacker's account, which is the creator of a space, select any space and click "View Members". This produces the legitimate request that a manager would send, and it is the request that will be tampered with. Doing it from your own space first is deliberate: you want a request you are allowed to make, so you can see its exact shape before changing anything.
Step 2: intercept the request
The captured request is:
POST /u/0/_/DynamiteWebUi/data/batchexecute?rpcids=
f.req=[[["EmdhDb","[["space/AAAAt0_Eux0","AAAAWEXczuc",2],null,100]",null,"3"],["vWUt9","[["space/AAAAt0_Eux0","AAAAt0_Eux0",2],true,null,null,null,null,2]",null,"7"],["vWUt9","[["space/AAAAt0_Eux0","AAAAt0_Eux0",2],true,null,true,100,null,3]",null,"9"],["HtElWb","[[[["space/AAAAAt0_Eux0","AAAAt0_Eux0",2],[null,null,null,null,["101401016020542615766","human/101401016020542615766",0],"human/101401016020542615766"]]]]",null,"12"]]]&at=ALDO5-OHICs4q4urMMN_XQcR3muz:1657120153448&
Line by line, in plain words:
POST /u/0/_/DynamiteWebUi/data/batchexecute?rpcids=is the address the browser sends the request to.POSTmeans it is sending data, not just asking for a page.batchexecuteis the name of the endpoint: a single address that can carry several small operations at once, like a form with several ticked boxes submitted together.f.req=starts the main parameter. Everything after it is a long piece of text that the server reads as structured data.- Inside it,
[["EmdhDb", ...], ["vWUt9", ...], ["vWUt9", ...], ["HtElWb", ...]]is a list of four separate operations. Each one has a short code name (EmdhDb,vWUt9,HtElWb), a set of parameters written as text, and a number at the end ("3","7","9","12") that keeps them in order. space/AAAAt0_Eux0is the identifier of the space. It appears several times because several of the operations need to know which space you are asking about.human/101401016020542615766is the identifier of a user. It appears in the last operation, which is the one that returns member details.at=ALDO5-OHICs4q4urMMN_XQcR3muz:1657120153448is the anti-CSRF token tied to the session. It is what tells the server this request came from your own logged-in browser.
Step 3: swap the space identifier
Replace the attacker's space ID with the victim's space ID, where the victim space was originally created by the attacker. The user ID does not need to be changed. The report does not show the modified request, only the original one and the instruction to change the space ID.
Why this step: the server is being asked about a different space than the one you clicked on. If the server checked properly, it would refuse, because you are no longer a member of that space. The whole test is whether it refuses or answers.
Step 4: send the request
Sending the modified request returns HTTP 200 and exposes the names and email addresses of the space members in the response. The report does not reproduce the response body.
Why it worked
The backend returned the member list to a caller who had been removed from the space, so it did not enforce current membership on this call. Because the space identifier is supplied by the client and the user identifier is not changed, a removed creator can point the request at a space they created and still receive the member list. This is an IDOR: the object reference (the space ID) is user-controlled and the server does not verify that the caller is still entitled to it.
Who is affected
A user who created a space or group and was later removed from it can still read the current members' names and email addresses, including invited people. The report's attack scenario is an employee who is fired from the organisation and removed from the space or group: they retain visibility of the member list.
The fix
The report states that the issue was fixed on 05.11.2022.
Other places worth testing
- Other
batchexecuteoperations that take a space ID, such as the ones in the same batch (EmdhDb,vWUt9,HtElWb). A positive result is a 200 response containing member data for a space the caller no longer belongs to. - Group equivalents of the same member-listing call. A positive result is the same leak of names and email addresses for a group the caller was removed from.
- A positive result is a response reflecting another user's membership data.
Timeline
| Event | Date |
|---|---|
| Reported | 06.07.2022 |
| Triaged | 20.07.2022 |
| Bounty | 29.07.2022, $1337 |
| Fixed | 05.11.2022 |
| Disclosed | 30.11.2022 |

Glossary
- API: the set of requests a website's own pages use to talk to its servers, usually invisible to the person using the site.
- Anti-CSRF token: a value sent with a request to prove it came from your own logged-in session and not from a forged page on another site.
- batchexecute: the endpoint used here, which carries several small operations in one request.
- Confidentiality problem: a flaw that lets someone see data they should not be allowed to see.
- Creator: the person who made a space or group; in Google Chat this person automatically becomes the Space Manager.
- CSRF: cross-site request forgery, an attack where another site makes your browser send a request you did not intend; the
attoken is meant to prevent it. - CVSS: a standard scoring system for rating the severity of a security flaw.
- Dynamite web UI: the name used in the request path for Google's Chat backend.
- Endpoint: a specific address on a server that accepts requests.
- f.req: the parameter in the request that holds the list of operations and their parameters.
- HTTP 200: the status code meaning the request succeeded and a response is being returned.
- IDOR (Insecure Direct Object Reference): a flaw where the server accepts an identifier supplied by the user and does not check that the user is allowed to access the thing it points to.
- Identifier (ID): a unique label for a thing, such as a space or a user.
- Intercepting proxy: a tool placed between browser and server that lets you pause, read and change requests.
- Member list: the list of people in a space or group, including their names and email addresses.
- POST: an HTTP method used when the browser is sending data to the server.
- RPC: remote procedure call, a way of asking a server to run a named operation; here each operation has a short code name such as
EmdhDb. - Response body: the actual content the server sends back, as opposed to the status code.
- Session: the logged-in state your browser keeps with a site after you sign in.
- Space: a shared room in Google Chat where a group of people talk.
- Space Manager: the role that can add and remove members of a space; the creator gets it automatically.
- Token: a short string used to prove identity or that a request belongs to a session.
- Triaged: the stage where the security team has reviewed a report and accepted it as valid.