Get listed

Flask penetration testing: prove authz, CSRF, and |safe

A lab flask with a torn coral paper seal.

A Flask pentest is useful when it tries the request you did not write a test for.

Flask still defaults to a missing SECRET_KEY and a session cookie that can travel on HTTP. A tester who only clicks the happy path will miss both. A tester who changes another user’s id, or posts without a CSRF token, will not.

The usual mistake is commissioning a scan of the marketing host and never pointing the tester at the app that holds sessions.

This page is the Flask-specific checks a test should include, and the config defaults you should have closed before the tester arrived.