Summary
Dynatrace MCP Server instances started with the --http option may dispatch certain JSON-RPC tool calls without authenticating the caller or validating the session, Host, or Origin. A network-reachable caller could use the server's configured Dynatrace credentials to access some Grail data or create tenant-visible notebooks.
Affected context
The issue affects the HTTP request handling path in Dynatrace MCP Server before version 2.0.0 when the server is started with --http. In this configuration, requests may reach tool dispatch without authentication, session validation, or Host and Origin protections. The described exposure includes execute_dql and create_dynatrace_notebook; send_event is protected by a human-approval gate, while reset_grail_budget demonstrates dispatch but does not access Dynatrace data.
Exploit preconditions
- Attack surface: The MCP server's HTTP endpoint must be reachable over the network.
- Required access: The caller does not need to authenticate to the affected request path.
- Trigger point: A JSON-RPC
tools/callrequest is dispatched to an affected tool. - Why exploitation is possible: The request can be handled using the server's configured Dynatrace credentials without prior authentication, session validation, or Host and Origin checks.
Why this happens
The HTTP request path dispatches tool calls before enforcing appropriate caller authentication and request-context validation. This is an authentication enforcement failure mapped to CWE-306: Missing Authentication for Critical Function: sensitive operations can be invoked without first verifying the caller's identity. The server's configured credentials make the resulting operations available through the unauthenticated path.
Potential impact
- An unauthenticated network caller may be able to read logs, security events, user sessions, and other Grail data through
execute_dql. - An attacker could create tenant-visible notebooks through
create_dynatrace_notebook. - Exposed observability or security data could increase the risk of further compromise.
- The described
send_eventpath is gated by human approval and is not affected by this attack path.
General mitigation guidance
Defensive approaches focus on ensuring identity and request-context checks occur before any sensitive tool dispatch.
Common patterns include:
- Require authentication and validate authorization for every HTTP tool call.
- Bind sessions to callers and reject requests with invalid or missing session context.
- Apply appropriate Host and Origin protections at the server boundary.
- Restrict network reachability to trusted clients and isolate the service from untrusted networks.
- Use narrowly scoped Dynatrace credentials and least-privilege permissions to limit the impact of a compromised request path.
- Keep human-approval gates for sensitive actions and ensure they cannot be bypassed by alternate dispatch paths.
How teams detect issues like this
Detection can include:
- Reviewing HTTP handlers to confirm authentication and authorization happen before tool dispatch.
- Using static analysis and code review checks to identify sensitive routes or tool calls that lack access-control guards.
- Monitoring for unauthenticated JSON-RPC requests and unexpected calls to data-query or notebook-creation tools.
- Enforcing policy checks in testing and deployment pipelines that require authentication, session validation, and Host and Origin protections on exposed endpoints.

