Summary
A server-side request forgery flaw in Keep allows attackers to control outbound HTTP requests made by the backend via an unprotected healthcheck endpoint.
By sending crafted JSON with a malicious host parameter, unauthenticated attackers can pivot the server to reach internal services or cloud metadata endpoints, exposing sensitive credentials and internal topology.
Affected context
The vulnerability appears in deployments of Keep that expose the healthcheck endpoint without strict authentication, input validation, or host allowlisting.
It is relevant in environments where the backend has network reachability to internal services, cloud provider metadata endpoints, or other sensitive infrastructure.
Risk increases when the backend's egress traffic is not constrained, and when internal APIs trust calls originating from this service.
Exploit preconditions
- Attack surface: Publicly exposed healthcheck endpoint that accepts JSON input.
- Required access: Network access to the healthcheck endpoint; no authentication needed.
- Trigger point: Submission of a crafted JSON payload specifying an attacker-controlled host parameter.
- Why exploitation is possible: The backend uses the supplied host value directly to construct outbound HTTP requests without enforcing validation, allowlists, or network segmentation, enabling SSRF into internal or cloud infrastructure.
Why this happens
This issue stems from trusting user-supplied network endpoints and routing them through privileged server-side HTTP clients.
The healthcheck endpoint accepts a host parameter from the request body and uses it to perform outbound checks without validating that the host is safe, internal-only, or part of an approved list.
Conceptually, this maps to CWE-918: Server-Side Request Forgery (SSRF), where an attacker influences how the server connects to other network resources, leveraging its position and credentials to reach targets they could not access directly.
Potential impact
- Theft of cloud instance or service account credentials via cloud metadata endpoints.
- Access to internal microservices or management APIs not exposed externally.
- Discovery of internal network structure, hostnames, and open ports.
- Potential lateral movement or privilege escalation using obtained secrets.
- Abuse of backend IP reputation, possibly impacting other services.
General mitigation guidance
Effective mitigation focuses on restricting how user input can influence server-initiated network calls and reducing backend network trust.
Common defensive patterns include:
- Enforcing strict allowlists for outbound hosts and protocols used by healthcheck or diagnostic endpoints.
- Normalizing and validating host parameters to reject private IP ranges, link-local addresses, and cloud metadata domains.
- Removing or severely limiting user-controlled URLs or hosts in healthcheck functionality, favoring static configuration.
- Constraining egress traffic using network policies, firewalls, or service mesh rules so the backend cannot freely reach sensitive internal or metadata endpoints.
- Applying least-privilege to attached cloud identities so metadata compromise yields minimal access.
How teams detect issues like this
Detection typically relies on identifying patterns where user input flows directly into outbound HTTP clients or URL construction logic.
High-level approaches include:
- Static analysis rules that flag use of request-supplied host or URL fields passed into HTTP libraries without validation or allowlisting.
- Code reviews focused on healthcheck, diagnostic, and proxy endpoints that permit user control over target hosts or URLs.
- Logging and monitoring of unusual egress traffic, particularly calls to cloud metadata IPs, internal administrative domains, or non-standard ports, originating from web-facing services.
- Policy enforcement in CI/CD that requires justification and safeguards when implementing user-configurable network checks or proxies.

