module

Python Flask Cookie Signer

Disclosed
2019-01-26
Created
2023-09-13

Description

This is a generic module which can manipulate Python Flask-based application cookies.
The Retrieve action will connect to a web server, grab the cookie, and decode it.
The Resign action will do the same as above, but after decoding it, it will replace
the contents with that in NEWCOOKIECONTENT, then sign the cookie with SECRET. This
cookie can then be used in a browser. This is a Ruby based implementation of some
of the features in the Python project Flask-Unsign.

Authors

h00die
paradoxis
Spencer McIntyre

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use auxiliary/gather/python_flask_cookie_signer
msf auxiliary(python_flask_cookie_signer) > show actions
...actions...
msf auxiliary(python_flask_cookie_signer) > set ACTION < action-name >
msf auxiliary(python_flask_cookie_signer) > show options
...show and set options...
msf auxiliary(python_flask_cookie_signer) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.