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-21 - Werkzeug Interactive Debugger Exposure
**Vulnerability:** The Flask application was binding to public interfaces (`0.0.0.0`) while running with `debug=True` in `web_app/app.py` and `web_app/run.py`.
**Learning:** Exposing the Werkzeug interactive debugger on public interfaces is a critical security vulnerability, as it allows arbitrary remote code execution on the server.
**Prevention:** Always ensure development configurations (e.g., `debug=True`) are disabled or appropriately secured before allowing connections from all IP addresses (`0.0.0.0`), especially in environments that mimic or might be used as production.
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)