A critical vulnerability in Google’s shared DevSite platform allowed unauthenticated attackers to forge Flask session cookies and trigger remote code execution through unsafe Python deserialization.
Disclosed on October 12, 2026, Simonkoeck describes an unusual failure: the session cookie contained the same secret used to sign it. Google awarded a $90,000 bounty for the report.
According to Simonkoeck, Google fixed the issue on October 7, 2026. The researcher demonstrated execution using controlled delays rather than running operating system commands against production infrastructure.
Critical Google DevSite Flaw
The investigation began with the OAuth authorization flow on developers.google.com. Visiting /oauth2authorize?return_url=%2F generated a Flask session cookie before redirecting visitors to Google’s login page, without requiring an authenticated account.
The approximately 1,200-byte cookie appeared unusually large for a session containing a return URL and cross-site request forgery token. Flask session cookies provide integrity through signatures, but their contents are not encrypted.
Decoding and decompressing the payload revealed a CSRF token and a serialized OAuth flow object stored under google_oauth2_flow_<csrf>.
Flask’s bytes tag wrapped a Base64-encoded Python pickle containing an oauth2client.client.OAuth2WebServerFlow object.
That object exposed an OAuth client identifier and client secret. Crucially, the researcher discovered that the exposed client secret also served as the application’s Flask SECRET_KEY.
Offline verification reproduced the cookie signature using the recovered secret, the cookie-session derivation value, and HMAC-SHA1. Altering the original signature caused rejection, while signing the original payload with the recovered secret succeeded.
This established a complete integrity failure: attackers could modify session contents and generate signatures the server trusted. The OAuth callback verified the Flask signature, retrieved the corresponding flow entry, decoded its bytes, and passed them to pickle.loads().
An attacker could therefore supply an arbitrary serialized object inside a correctly signed session. By choosing both the CSRF token and a matching flow key, the attacker could reach the deserialization operation.
Simonkoeck stated that Python pickle can invoke callable objects during reconstruction. Once attackers controlled a trusted pickle payload, the callback became an unauthenticated code execution path.
To demonstrate this safely, the researcher used payloads invoking time.sleep() with different durations. Responses measured approximately 0.207 seconds for zero delay, 3.193 seconds for three seconds, 5.194 seconds for five seconds, and 8.283 seconds for eight seconds.
Control requests rejected missing cookies, corrupted signatures, and absent flow entries. A legitimate serialized flow reached Google’s token exchange before failing on a fabricated authorization code, distinguishing normal processing from payload execution.
The disclosure reports impact across seven Google domains, although the supplied account explicitly names five: developers.google.com, firebase.google.com, developer.android.com, source.android.com, and docs.partner.android.com.
Simonkoeck recommended rotating exposed OAuth secrets, invalidating affected sessions, assigning independent server-held signing keys to deployments, retaining OAuth flow objects server-side, and replacing client-controlled pickle data with validated data-only serialization.
The report was submitted August 6, triaged and accepted August 7, and rewarded August 27. The $90,000 award comprised a $75,000 base payment with a 1.2 multiplier recognizing exceptional report quality.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team