Summary
Sipeed PicoClaw up to version 0.2.9 contains a server-side request forgery (SSRF) weakness in its web integration tooling, allowing crafted requests to be relayed by the server to arbitrary endpoints.
When an attacker can influence the URLs passed into the web_fetch function, they may pivot the application into making unintended outbound calls, exposing internal services and expanding the attack surface.
Affected context
The vulnerability resides in the web integration tooling of Sipeed PicoClaw, specifically within the web_fetch function in pkg/tools/integration/web.go.
It typically manifests when user-provided or externally controlled URLs are consumed by backend logic without adequate validation or restrictions on allowed destinations.
Environments where PicoClaw has network visibility into internal services, cloud metadata endpoints, or other sensitive infrastructure are more exposed, especially if web_fetch is reachable via remote interfaces.
Exploit preconditions
- Attack surface: Remote interfaces or APIs that ultimately invoke web_fetch with attacker-controlled URL parameters.
- Required access: Ability to send crafted requests to PicoClaw components that use web_fetch (e.g., HTTP endpoints, CLI integrations, or automation hooks).
- Trigger point: Submission of a malicious URL or endpoint value that the server uses in web_fetch to initiate outbound network requests.
- Why exploitation is possible: The implementation does not sufficiently constrain or validate target URLs, allowing the server to act as a proxy and initiate requests to unintended internal or external hosts on behalf of the attacker.
Why this happens
This issue stems from treating externally influenced URLs as trusted inputs for server-side HTTP requests without enforcing clear network trust boundaries.
The web_fetch function appears to accept arbitrary destinations, lacking robust checks such as allowlists, scheme and hostname restrictions, or segmentation between internal and external networks.
Conceptually, this aligns with CWE-918: Server-Side Request Forgery (SSRF), where a backend service can be coerced into issuing network calls that the attacker could not directly perform, leveraging the server's own privileges and connectivity.
Potential impact
- Attacker may probe and access internal network services not directly exposed to the internet.
- Attacker could interact with cloud provider metadata services to obtain credentials or configuration secrets.
- Attacker can use the server as a proxy for anonymized or amplified attacks against third-party endpoints.
- Attacker may discover network topology and sensitive infrastructure details through response differences and error messages.
- Attacker could chain SSRF with other vulnerabilities (e.g., misconfigured internal services) to escalate to remote code execution or data exfiltration.
General mitigation guidance
Mitigation generally focuses on constraining how server-side code performs outbound requests and reducing trust in user-supplied URLs.
Common patterns include:
- Applying strict validation and normalization of URLs before issuing any backend requests, rejecting unexpected schemes, ports, or hosts.
- Using explicit allowlists of permitted domains or service endpoints, rather than permitting arbitrary destinations.
- Segregating network access so that web-facing components have limited visibility into internal infrastructure and sensitive metadata services.
- Implementing least-privilege networking rules and service accounts so that outbound calls carry minimal authority.
- Designing integration tools to rely on predefined connectors or configuration rather than direct user-specified URLs wherever possible.
How teams detect issues like this
Effective detection combines code-level analysis with operational monitoring:
- Static analysis rules can flag patterns where user-controlled URL parameters are passed directly to HTTP clients or request libraries without validation.
- Code reviews should scrutinize integration and helper functions such as web_fetch for missing host restrictions, scheme checks, or allowlists, especially when reachable from remote interfaces.
- Security policies in CI/CD can enforce safe URL handling patterns and disallow direct use of low-level HTTP clients with unbounded destinations.
- Runtime monitoring and logging of outbound requests, including destination hosts and calling paths, can help identify anomalous access patterns that may indicate SSRF attempts.

