How a Self-Signed Flask Cookie Led to a $90,000 RCE in Google
jedisct1 · x · 2026-10-14
Simon Koeck details a Google remote code execution bug that earned a $90,000 bounty:
- While mapping the shared OAuth flow on developers.google.com, he noticed an unusually large (1,200 byte) Flask session cookie;
- Flask cookies are signed, not encrypted — decoding revealed a pickle payload containing Google's OAuth clientid and clientsecret in plaintext, with the cookie signed by a secret it carried itself;
- With the secret extracted, a forged session became code execution across Google's developer sites.
Full decoding/repro code included — a textbook case of the cookie self-signing antipattern.
Related event: Researcher Earns $90K Google Bounty for Flask Cookie Key Leak RCE(3 posts)→
More from Safety
- Data center water panic traced to botched numbers: key figure off by 1,000x — ATTlKA · 2026-12-02
- Export controls may widen US-China AI gap by only 2-3 months, argues analyst — kevinnbass · 2026-12-02
- 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