Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .Jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2026-08-20 - Werkzeug Interactive Debugger Exposure
**Vulnerability:** Flask application bound to 0.0.0.0 with debug=True enabled, exposing the interactive debugger.
**Learning:** Running Flask with debug mode on a public interface allows unauthenticated remote code execution via the Werkzeug debugger.
**Prevention:** Ensure debug=False is explicitly set when binding to public IP addresses (0.0.0.0), or prefer using a production WSGI server instead of the built-in development server.
2 changes: 1 addition & 1 deletion web_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ def download(job_id):
if __name__ == '__main__':
os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
os.makedirs(app.config['OUTPUT_FOLDER'], exist_ok=True)
app.run(debug=True, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)
app.run(debug=False, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)
2 changes: 1 addition & 1 deletion web_app/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
print("Press CTRL+C to stop")
print("=" * 60)

app.run(debug=True, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)
app.run(debug=False, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)