Flask
Probably if you are playing a CTF a Flask application will be related to SSTI.
Cookies
Default cookie session name is session
.
Decoder
Online Flask coockies decoder: https://www.kirsle.net/wizards/flask-session.cgi
Manual
Get the first part of the cookie until the first point and Base64 decode it>
The cookie is also signed using a password
Flask-Unsign
Command line tool to fetch, decode, brute-force and craft session cookies of a Flask application by guessing secret keys.
Decode Cookie
Brute Force
Signing
Signing using legacy (old versions)
SQLi in Flask session cookie with SQLmap
This example **uses sqlmap eval
option to automatically sign sqlmap payloads** for flask using a known secret.
Last updated