More screenshots
Works with the AI Agents you already use
Flask App Safety Check
debug=True in production gives anyone a Python console on your server.
$5
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
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.
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
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
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.