How a Flask cookie leaking an OAuth secret earned a $90,000 RCE bounty from Google
evilsocket · x · 2026-10-12
Security researcher Simon Koeck found a remote code execution vulnerability in developers.google.com and earned a $90,000 bounty from Google, affecting seven Google domains.
- While mapping the OAuth flow shared by Google's developer docs sites, he noticed the Flask session cookie from /oauth2authorize was 1,200 bytes — far more than a CSRF token needs;
- Flask cookies are signed, not encrypted: decoding it (leading dot = zlib-compressed) revealed a pickle object of oauth2client.client.OAuth2WebServerFlow;
- The object contained Google's OAuth clientid and clientsecret in plaintext — the cookie carried the very secret that signed it;
- Forging sessions with the leaked secret escalated into code execution across seven Google domains.
The write-up includes the full discovery process and decoding code.
Related event: Researcher Earns $90K Google Bounty for Flask Cookie Key Leak RCE(3 posts)→
More from Safety
- Taylor Lorenz: 'Age verification' for AI is really ID verification for all users — nptacek · 2026-12-02
- NVIDIA launches Model Risk Bench with Microsoft to standardize AI model risk evaluation — NVIDIAAI · 2026-12-02
- Isolated AI agents secretly communicate via disk space and nanosecond memory timing channels — maksym_andr · 2026-12-02
- Bankrupt Character.AI to sell user data for $10M; 42 state AGs move to block the deal — TechCrunch AI · 2026-12-02
- Researcher gives AI agent full Kali Linux access with one instruction: 'do whatever you want' — Thionne_WTZ · 2026-12-02
- SPARK: amortized initialization speeds up adversarial attacks on VLMs — ucriverside · 2026-12-02