More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Flask App Safety Check

    1

    debug=True in production gives anyone a Python console on your server.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Flask App Safety Check

    Flask App Safety Check

    Example session with this skill installed

    Check this project with flask-app-safety-check.

    • Read your context and instructions
    • Compiled the flask app safety
    $ python3 scripts/check_flask.py examples/risky BLOCK app.py:19 F03 TEMPLATE_INJECTION return render_template_string(f"Hello {name}") Why: render_template_string() gets text built from a variable or an f-string. If any part comes from the user, Jinja runs it as a template, which lets an attacker run code on the server (SSTI). **Safer:** Use a fixed template string and pass values as arguments: render_template_string('Hello {{ name }}', name=name), or use render_template with a template file. BLOCK app.py:25 F04 SQL_INJECTION BLOCK app.py:30 F05 FILE_FROM_REQUEST BLOCK app.py:51 F01 DEBUG_MODE_ON BLOCK config.py:2 F02 HARDCODED_SECRET BLOCK config.py:3 F02 HARDCODED_SECRET REVIEW app.py:11 F13 INSECURE_SESSION_COOKIE REVIEW app.py:12 F11 CORS_ANY_ORIGIN_WITH_CREDENTIALS REVIEW app.py:35 F12 UNESCAPED_HTML REVIEW app.py:40 F15 OPEN_REDIRECT REVIEW app.py:46 F16 UPLOAD_USES_CLIENT_FILENAME REVIEW config.py:4 F14 CSRF_PROTECTION_OFF REVIEW server.py:4 F17 DEV_SERVER_EXPOSED REVIEW templates/post.html:3 F12 UNESCAPED_HTML (Each finding also has Why and Safer lines, as in the first one.) **Verdict:** BLOCK. Checked 4 files, 4 with Flask content. This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    debug=True in production gives anyone a Python console on your server. A hard-coded SECRET_KEY lets anyone forge sessions. This skill finds those and ten other Flask mistakes before you deploy, and tells you how to fix each one.

    Your agent runs a scanner on your Python files and Jinja templates. It reads Python with Python's own parser, follows values from request.args, request.form, request.json and URL variables through your code, and knows the safe patterns: environment variables, secure_filename, safe_join, url_for, parameterised SQL and number URL converters. It reads .gitignore so secrets in ignored config files are not reported. It never runs your app. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.

    What it checks

    BLOCK

    • F01: debug mode on (app.run(debug=True), DEBUG = True)
    • F02: a hard-coded SECRET_KEY, JWT key, password, token or API key
    • F03: render_template_string with a template that is not fixed (template injection)
    • F04: SQL built with f-strings, %, .format() or + and run with execute or text()
    • F05: send_file or open with a path from the request

    REVIEW

    • F11: CORS with credentials and no origin list
    • F12: Markup() on request data, |safe or autoescape off in templates
    • F13: session or remember cookies without Secure or HttpOnly
    • F14: CSRF turned off or views exempted
    • F15: redirect to a URL from the request
    • F16: uploads saved with the user's file name
    • F17: app.run(host='0.0.0.0')

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason and safer approach for each rule
    • A risky and a safe example Flask app, and the real report the scanner produces on the risky one

    Limits It follows values within one file. Extensions' own settings, your WSGI server, reverse proxy and dependencies are not checked. NOT FLAGGED is not a guarantee.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Static check of Python and Jinja text. Values are followed within one file only; the server and proxy setup are not seen. NOT FLAGGED is not a guarantee.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example app includes a clearly fake, inert secret key (not-a-real-...) for the scanner to find. It is never run.

    Listed7 days ago
    Updated4 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It reads your Python files and templates as text. It never imports or runs your app.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    The scanner, a rules guide with the reason and safer approach for every rule, a risky and a safe example Flask app, and the real report the scanner prints on the risky example.

    New in Security