You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SECURITY] MCP server over SSE/HTTP has no authentication and lets any caller overwrite org credentials #116
devops-agent mcp --transport sse (or streamable-http) serves every MCP tool over the network with no authentication (devops_mcp/server.py, devops_mcp/registry.py). The default bind address is 127.0.0.1, but containers and the documented examples commonly set --host 0.0.0.0/FASTMCP_HOST.
Anyone who can reach the port can:
Overwrite an org's credentials:configure_org_credentials calls org_config.save(org, credentials) for any org_id. An attacker can swap in their own GITHUB_TOKEN, kubeconfig, ANTHROPIC_API_KEY or SLACK_WEBHOOK_URL, redirecting the agent's actions and exfiltrating every future incident report.
Call every AGENT_TOOLS entry: read pod logs, CI logs, Loki and cloud resources, run safe-classified shell commands, and, with AUTO_APPLY=true, apply changes.
Enqueue incidents and read audit logs for any org.
Expected
Network MCP transports refuse to start without authentication, and every request is authenticated and bound to an org.
Suggested fix
Require a bearer token (MCP_AUTH_TOKEN, or per-org tokens) for sse/streamable-http. Refuse to start on a non-loopback host without one.
Bind the token to an org. Ignore or reject a caller-supplied org_id that doesn't match.
Drop configure_org_credentials from network transports, or put it behind a separate admin token.
Tests: unauthenticated request gets 401; wrong-org org_id is rejected; server refuses --host 0.0.0.0 without a token.
Activity
fix: require bearer tokens for org config, docs and audit API routes
Merge pull request #146 from open-devops-agent/fix/mcp-auth-116