Repository navigation
Google DevSite Flask Session Pickle RCE - #3166
Merged
carlospolop merged 2 commits intoOct 21, 2026
Merged
carlospolop merged 2 commits into
carlospolop merged 2 commits into
Conversation
Collaborator
Author
|
Decision: keep The researcher’s write-up supports the secret exposure, signing-key validation, callback deserialization, and timing controls. Flask source confirms tagged-byte serialization and the escape behavior for a literal tag-shaped dictionary. The base book covers Flask signing and generic pickle risks, but not this nested application-session failure mode. The repaired directory link and heading r… Head: |
Collaborator
Author
|
merge |
carlospolop
deleted the
update_Google_DevSite_Flask_Session_Pickle_RCE_1cd7e5411ffa4f04
branch
October 21, 2026 17:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Blog URL
https://simonkoeck.com/writeups/google-devsite-flask-session-pickle-rce
Blog Title
Google DevSite Flask Session Pickle RCE
Blog high summary
Documents an unauthenticated RCE chain in Google’s shared DevSite Flask OAuth flow. A roughly 1,200-byte client-side cookie exposed an
OAuth2WebServerFlowpickle and reused its OAuthclient_secretas Flask’s signing key; reproducing theitsdangerousHMAC enabled arbitrary session forgery.An attacker-chosen CSRF/state key placed a base64 pickle in the matching flow entry, reaching
pickle.loads();time.sleep(N)via__reduce__yielded 0.207, 3.193, 5.194, and 8.283-second responses, proving callable execution. The recovered key also signed sessions across five DevSite domains. Fixes were secret rotation, isolated keys, server-side flow state, and data-only serialization.PR changes
Errors
mdbook build unavailable