提出 #855869: louisho5 picobot 0.2.0 OS Command Injection (CWE-78)情報

タイトルlouisho5 picobot 0.2.0 OS Command Injection (CWE-78)
説明# Technical Details An OS command execution vulnerability exists in the `[ExecTool.Execute]` method in `internal/agent/tools/exec.go` of picobot. The application fails to reject shell-wrapper payloads in array-form `exec` tool calls. `ExecTool.Execute` validates only `argv[0]` against a short dangerous-program blacklist and applies limited argument checks before passing the command to `exec.CommandContext`. A payload such as `["sh","-c","echo openclaw-shell-wrapper-bypass-canary > marker.txt"]` bypasses the intended restrictions and executes attacker-controlled shell syntax. # Vulnerable Code File: `internal/agent/tools/exec.go` Method: `ExecTool.Execute` Why: The code checks only the outer executable and does not inspect nested shell payloads supplied through `sh -c`, allowing arbitrary shell command execution. # Reproduction 1. Build the Picobot binary and run a local OpenAI-compatible stub provider. 2. Return an `exec` tool call containing `["sh","-c","echo openclaw-shell-wrapper-bypass-canary > marker.txt"]`. 3. Run `picobot agent -m ...` and confirm that `marker.txt` is created with the expected canary content. # Impact - Permits arbitrary shell command execution as the Picobot OS user. - Can expose secrets, alter files, and tamper with code or local infrastructure reachable by the process.
ソース⚠️ https://github.com/louisho5/picobot/issues/42
ユーザー
 Eric-h (UID 97582)
送信2026年06月11日 11:27 (1 月 ago)
モデレーション2026年07月13日 23:12 (1 month later)
ステータス承諾済み
VulDBエントリ378163 [louisho5 picobot 迄 0.2.0 exec Tool exec.go ExecTool.Execute 特権昇格]
ポイント20

Do you need the next level of professionalism?

Upgrade your account now!