Summary
A server-side request forgery (SSRF) flaw in the rt-claw HTTP request component allows remote attackers to abuse the receiver_thread logic to make arbitrary outbound requests from the server.
When user-controlled input is used to construct internal HTTP requests without proper validation, attackers can pivot through the application to reach internal services and protected network resources.
Affected context
This vulnerability arises in deployments of zevorn rt-claw (up to version 0.2.0) where the http_request component is exposed through network-facing functionality that leverages the receiver_thread in claw/services/swarm/swarm.c.
The issue manifests when external input influences the destination or parameters of server-initiated HTTP requests without sufficient validation or restrictions.
Environments with reachable internal services, metadata endpoints, or sensitive APIs behind the server are more exposed to SSRF-style abuse.
Exploit preconditions
- Attack surface: Network-facing endpoints or protocols that ultimately invoke
http_requestviareceiver_thread. - Required access: Ability to send crafted requests to the affected rt-claw service (typically remote, unauthenticated or low-privilege access depending on deployment).
- Trigger point: Processing of attacker-controlled data used to build or route outgoing HTTP requests from the server.
- Why exploitation is possible: The server trusts remote input when constructing outbound requests and does not sufficiently constrain target hosts, schemes, or paths, enabling redirection of server-originated traffic.
Why this happens
The underlying bug is an SSRF pattern where user-supplied data is used to determine the target of server-originated HTTP requests.
In the receiver_thread logic, external input appears to influence URL or request routing without robust validation, whitelisting, or segmentation.
This maps to CWE-918: Server-Side Request Forgery, where an application acts as an HTTP client on behalf of an attacker, allowing indirect access to internal resources that are not directly exposed.
Potential impact
- Attackers may access internal web services and administrative interfaces that are otherwise unreachable from the internet.
- Requests can be directed at cloud metadata endpoints, potentially exposing credentials or configuration secrets.
- SSRF abuse can facilitate lateral movement within the network or serve as a stepping stone for further compromise.
- Sensitive data may be exfiltrated from internal APIs, databases with HTTP interfaces, or monitoring systems.
- Application logic depending on internal callbacks or hooks can be manipulated, leading to denial of service or unexpected side effects.
General mitigation guidance
Mitigation typically focuses on constraining how server-side HTTP requests are formed and where they can be sent.
Useful defensive patterns include:
- Treating all external input used in URLs or hostnames as untrusted and applying strict normalization and validation.
- Enforcing allowlists of permitted outbound hosts, IP ranges, and protocols, rather than relying on ad-hoc checks.
- Blocking or isolating access to sensitive internal endpoints (e.g., metadata services, management interfaces) through network segmentation and firewall rules.
- Decoupling user input from direct URL construction, instead mapping user choices to predefined, safe destinations.
- Running services with least privilege and minimizing network reach so that even if SSRF occurs, the blast radius is constrained.
How teams detect issues like this
Detection often combines code-level analysis with runtime monitoring:
- Static analysis rules that flag patterns where user-controlled data flows into URL builders, HTTP client APIs, or low-level network calls.
- Code reviews focused on components handling outbound HTTP requests, looking for missing validation, absent allowlists, and direct use of request parameters in destination selection.
- Security tests that attempt to reach internal addresses (loopback, RFC1918 ranges, metadata endpoints) via externally accessible features.
- Network monitoring and egress filtering policies that alert on unusual outbound destinations or protocols from application hosts.
- Automated tooling integrated into CI/CD that scans for SSRF patterns and enforces organizational guidelines on outbound request construction.

