# The space creators can still see the members of the space, even after they have been removed from the space.

Removed Google Chat space/group creators could still query member names and emails via the batchexecute RPC by swapping in the victim space ID.

- Payout: $1,337
- Severity: medium
- Program: Google
- Found by: Vivek M
- Disclosed: 2022-11-30
- Write-up quality: 6/10
- Original: https://web.archive.org/web/20221201043429/https://hopesamples.blogspot.com/2022/11/the-space-creators-can-still-see.html
- Library page: https://bugbountylibrary.com/r/blog%3Aweb-archive-org-web-20221201043429-https-hopesamples-blogspot-com-2022-11-the-space-creators-can-still-see-html
- Tags: area:web domain:web impact:data-leak impact:pii-leak kind:bounty platform:blog sev:medium tech:rest technique:recon vuln:access-control vuln:idor

**Target:** Google Chat Spaces/Google Groups member listing RPC (batchexecute)
**Root cause:** The member-listing RPC (EmdhDb/vWUt9/HtElWb) authorized based on the caller's historical creator/manager role rather than current space membership, so removed creators retained access to member data.
**Steps:**
1. As space creator, open 'View Members' and intercept the `POST /u/0/_/DynamiteWebUi/data/batchexecute?rpcids=` request.
2. Note the `f.req` payload containing the attacker's own space ID `space/AAAAt0_Eux0`.
3. Replace the attacker's space ID with the victim's space ID in `f.req`; leave user ID unchanged.
4. Resend request; server returns 200 with member names and email addresses.
**How found:** Researcher observed the 'View Members' action issued a batchexecute RPC keyed by space ID, hypothesized the server trusted the ID without re-checking current membership, and swapped in a space ID after being removed.
**Exploitation:** A removed creator/manager replays the member-listing batchexecute RPC, substituting the target space ID, and reads names and email addresses of current members and invitees despite no longer being a member.
**Insight:** For Google batchexecute RPCs, the space/group ID in `f.req` is the authorization key; test whether role-based checks (creator/manager) persist after membership removal by replaying the same RPC with a different resource ID.

## Proof of concept (copied exactly from the original report)

**batchexecute request exposing removed space members**

```
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&
```

