Summary
HyperDX before version 2.31.0 contains a server-side request forgery flaw in a ClickHouse proxy test endpoint that accepts a caller-controlled host parameter without validation.
Authenticated team members can coerce the server into making arbitrary internal HTTP requests and observe reflected error responses, potentially exposing internal APIs, container services, and cloud metadata endpoints.
Affected context
The vulnerability occurs in HyperDX deployments that expose the ClickHouse proxy test endpoint to authenticated users and rely on it to verify connectivity.
In this context, the endpoint accepts a host parameter and forwards requests from the server to that destination without URL validation, allowlist checks, or strict scoping to trusted ClickHouse hosts.
Environments where internal services, container-local endpoints, or cloud provider metadata URLs are reachable from the application server are particularly exposed.
Exploit preconditions
- Attack surface: HTTP(S) endpoint used for testing ClickHouse connectivity.
- Required access: Authenticated HyperDX team member account with access to the proxy test functionality.
- Trigger point: Supplying a crafted host or URL value to the test endpoint so the server issues requests to attacker-chosen internal destinations.
- Why exploitation is possible: The server trusts the host parameter without validation, performing outbound requests and surfacing internal response data (or errors) back to the user, enabling SSRF.
Why this happens
The root cause is a server-side request forgery pattern where user-supplied network locations are used directly in outbound requests from a privileged backend.
Instead of constraining the ClickHouse proxy test endpoint to a strict set of known-safe hosts or validating schemes and destinations, the implementation forwards requests based solely on caller input.
This aligns with CWE-918: Server-Side Request Forgery (SSRF), where an attacker leverages server-side network capabilities to access internal resources not directly exposed to them.
Potential impact
- Access to internal HTTP-based APIs that are not exposed externally.
- Retrieval of sensitive configuration or operational data from container-local services.
- Exposure of cloud provider metadata endpoints, which can disclose credentials or tokens.
- Mapping of internal network topology and service behavior through reflected responses.
- Potential pivoting into further attacks if obtained tokens or secrets are reused elsewhere.
General mitigation guidance
Mitigation typically focuses on constraining server-initiated network access and reducing trust in user-controlled destinations:
- Restrict outbound destinations for connectivity-test or proxy endpoints to a strict allowlist of known ClickHouse hosts or specific network ranges.
- Validate and normalize URLs, including scheme, port, and path, rejecting unexpected protocols or non-approved hosts.
- Introduce network-level egress controls (such as firewalls, proxies, or service meshes) that block access from application nodes to internal management networks and metadata endpoints.
- Design diagnostic and test endpoints to avoid reflecting full upstream responses to users; instead, return minimal health indicators and redact internal details.
- Apply least-privilege principles to application runtime environments, limiting their access to only those internal services strictly required for operation.
How teams detect issues like this
Detection often combines code-level review with runtime monitoring:
- Use static analysis or code review to locate patterns where user input influences outbound HTTP client configuration (host, URL, or IP) without validation or allowlisting.
- Define coding policies that prohibit direct use of arbitrary URLs in backend connectivity tests and require centralized validation helpers.
- Monitor logs for unusual usage of diagnostic or test endpoints, especially requests targeting internal IP ranges (e.g., 169.254.169.254) or non-standard hosts.
- Employ network observability tools to detect unexpected egress patterns from application containers to internal services or metadata endpoints.

