Make Werkzeug debug mode opt-in instead of debug=True #7
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Category: security
Location:
app.py:2870Problem
app.run(debug=True)in the main block enables the interactive debugger (arbitrary code execution) if anyone runspython app.pydirectly on the NAS.Suggested fix
Gate it:
app.run(debug=os.environ.get('FLASK_DEBUG')=='1').Filed by automated code review.