classic agent_protocol_server binds 0.0.0.0 with no authentication
⚠️ Search for existing issues first ⚠️
- I have searched the existing issues, and there is no existing issue for my problem
Which Operating System are you using?
Docker
Which version of AutoGPT are you using?
Master (branch)
What LLM Provider do you use?
Llamafile
Which area covers your issue best?
Agents
What commit or version are you using?
c035ab1f91b8556f86e87be26dcaf31677f64ba5
Describe your issue.
agent_protocol_server.py sets config.bind=["localhost:port"] at :72, then re-assigns ["0.0.0.0:port"] at :122 right before hypercorn_serve (the latter wins; docs and startup log both claim localhost). The forge api_router.py routes carry no auth of any kind. Verified with zero credentials: reading /docs and /openapi.json (full schema), listing/creating tasks, writing arbitrary files into the server workspace and reading them back, and executing steps (which really called api.openai.com).
Expected Behavior
bind localhost by default (consistent with the docs, the log, and the :72 assignment); require an auth mechanism (e.g. API token) for remote use.
Actual Behavior
# in-container /proc/net/tcp: 00000000:1F40 LISTEN = 0.0.0.0:8000
curl -s -o /dev/null -w "%{http_code}\n" http://<host>:8000/docs # → 200
curl -s -o /dev/null -w "%{http_code}\n" http://<host>:8000/openapi.json # → 200 (full schema)
curl http://<host>:8000/ap/v1/agent/tasks # → 200 (lists all tasks)
curl -X POST http://<host>:8000/ap/v1/agent/tasks -d '...' # → 200 (task_id=32bda4b4-…)
curl -X POST .../tasks/{id}/artifacts -d '...' # → 200 (writes SECRET-DATA-poc into the server workspace)
curl .../tasks/{id}/artifacts/{artifact_id} # → 200 (reads SECRET-DATA-poc back)
curl -X POST .../tasks/{id}/steps -d '...' # → 200 (step executed; made a real outbound call to api.openai.com)The server assembles CodeExecutorComponent , GitOperationsComponent, WebSeleniumComponent, FileManagerComponent — an unauthenticated caller gets full control of the agent and its workspace data, and can drive arbitrary outbound requests.
Upload Activity Log Content
No response
Upload Error Log Content
No response
Source: Significant-Gravitas/AutoGPT