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
5 changes: 5 additions & 0 deletions .Jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

## 2026-08-25 - Werkzeug Interactive Debugger Exposure
**Vulnerability:** Flask development server was configured with `debug=True` while bound to a public interface (`0.0.0.0`), exposing the Werkzeug interactive debugger which allows unauthenticated Remote Code Execution (RCE).
**Learning:** Development configurations should never be hardcoded and exposed on public interfaces, especially in network-facing scripts like `web_app/run.py`.
**Prevention:** Explicitly set `debug=False` in production application entry points, or use environment variables to control debug mode instead of hardcoding `True`.
4 changes: 3 additions & 1 deletion web_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,6 @@ 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)
# πŸ›‘οΈ Sentinel: Disable debug mode on public interfaces (0.0.0.0)
# to prevent Werkzeug interactive debugger RCE vulnerability.
app.run(debug=False, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)
4 changes: 3 additions & 1 deletion web_app/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
print("Press CTRL+C to stop")
print("=" * 60)

app.run(debug=True, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)
# πŸ›‘οΈ Sentinel: Disable debug mode on public interfaces (0.0.0.0)
# to prevent Werkzeug interactive debugger RCE vulnerability.
app.run(debug=False, host='0.0.0.0', port=5000, threaded=True, use_reloader=False)