Summary
OpenClaw's sandbox exec-server contains a server-side request forgery (SSRF) flaw that lets lower-trust callers send HTTP traffic to internal network destinations.
When OpenClaw policies are expected to block access to specific network resources, this bypass allows attackers to reach those endpoints indirectly via the exec-server.
Affected context
This vulnerability arises in OpenClaw deployments that rely on the sandbox exec-server as an intermediary for executing or proxying HTTP requests on behalf of callers.
It is most relevant where OpenClaw is configured with network policies intended to restrict access to internal or sensitive services, but the exec-server is allowed to initiate outbound connections on behalf of less-trusted components or users.
In such setups, callers can leverage the exec-server's network privileges to reach destinations that would otherwise be blocked by policy enforcement.
Exploit preconditions
- Attack surface: The exposed interface of the sandbox exec-server, typically reachable over HTTP or a similar RPC mechanism.
- Required access: Ability for a lower-trust caller (e.g., a user, job, or service with restricted network permissions) to issue requests through the exec-server.
- Trigger point: Sending crafted HTTP requests that specify target URLs or network destinations, which the exec-server then forwards or executes.
- Why exploitation is possible: The exec-server executes outbound requests without fully enforcing or honoring OpenClaw network policies for the caller's trust level, allowing internal or restricted endpoints to be reached indirectly.
Why this happens
The core issue is that the sandbox exec-server acts as a privileged proxy without correctly constraining where it can send outbound requests on behalf of callers.
From a CWE-918 perspective, this is classic server-side request forgery: untrusted input (requested URLs or destinations) controls server-initiated network traffic without adequate validation against policy or trust boundaries.
The design couples a high-privilege network capability with low-trust inputs, and policy enforcement does not apply consistently at the point where the exec-server constructs and dispatches outbound HTTP calls.
Potential impact
- Attackers may reach internal HTTP services that were intended to be blocked by OpenClaw network policies.
- Attackers could enumerate internal endpoints or metadata services accessible from the exec-server environment.
- Attackers can potentially interact with sensitive APIs (e.g., configuration, orchestration, or data services) through forged requests.
- Attackers might pivot further by abusing internal services, depending on their own vulnerabilities and trust assumptions.
General mitigation guidance
Effective mitigation focuses on strictly limiting where privileged intermediaries like the exec-server can connect and how they consume caller-controlled destinations.
Common defensive patterns include:
- Enforcing allowlists or tightly scoped routing rules for outbound destinations from the exec-server, independent of caller input.
- Validating and normalizing any URLs or host parameters received from lower-trust callers, rejecting internal or non-approved address ranges.
- Segmenting the exec-server's network environment so it cannot reach highly sensitive or administrative endpoints by default.
- Applying least-privilege to network capabilities, ensuring sandbox components do not have broader connectivity than necessary.
- Centralizing policy checks so that any indirect network access through helper services is evaluated under the same rules as direct access.
How teams detect issues like this
Detection usually centers on identifying services that proxy or execute network requests on behalf of callers, and verifying whether their destination controls are consistent with policy.
Helpful strategies include:
- Static analysis or configuration scanning to locate code paths where user-controlled URLs or hosts are passed to HTTP clients or request libraries in the exec-server.
- Code review that flags components acting as "network helpers" or sandboxes and checks for missing policy enforcement or host validation.
- Runtime monitoring of outbound connections from the exec-server, looking for requests to internal address ranges or prohibited domains originating from low-trust contexts.
- Policy-based controls that constrain outbound traffic at the network layer (e.g., firewall rules, service mesh policies), and alert when violations occur.

