| Título | louisho5 picobot 0.2.0 Server-Side Request Forgery (SSRF) (CWE-918) |
|---|
| Descripción | # Technical Details
A Server-Side Request Forgery vulnerability exists in the `[WebTool.Execute]` method in `internal/agent/tools/web.go` of picobot.
The application fails to restrict model-controlled URLs targeting localhost or internal-network resources. `WebTool.Execute()` accepts the `url` argument, builds an HTTP request, and dispatches it with `http.DefaultClient.Do(req)` without hostname policy, loopback/RFC1918 rejection, redirect revalidation, or DNS pinning.
# Vulnerable Code
File: `internal/agent/tools/web.go`
Method: `WebTool.Execute`
Why: The tool is default-enabled in `internal/agent/loop.go` and directly performs outbound HTTP GET requests on provider-returned URLs with no SSRF safeguards.
# Reproduction
1. Run the supplied harness and verification script from the Picobot repository root.
2. Have the local provider return a `web` tool call for `http://127.0.0.1:<port>/internal.txt`.
3. Confirm the canary content from `/internal.txt` appears in the tool transcript and the logs show the localhost fetch.
# Impact
- Allows the agent host to probe and retrieve localhost or private-network HTTP resources.
- Leaks internal response bodies into the model/tool transcript. |
|---|
| Fuente | ⚠️ https://github.com/louisho5/picobot/issues/41 |
|---|
| Usuario | Eric-h (UID 97582) |
|---|
| Sumisión | 2026-06-11 11:27 (hace 1 mes) |
|---|
| Moderación | 2026-07-13 23:12 (1 month later) |
|---|
| Estado | Aceptado |
|---|
| Entrada de VulDB | 378162 [louisho5 picobot hasta 0.2.0 web Tool web.go WebTool.Execute url escalada de privilegios] |
|---|
| Puntos | 20 |
|---|