| 标题 | eyal-gor p_69_branch_monkey_mcp d77e757 Command Injection |
|---|
| 描述 | The time-machine preview feature creates a temporary worktree for a requested commit and optionally starts a dev server. If the caller provides dev_script, the server does:
command = request.dev_script.replace("{port}", str(port))
subprocess.Popen(command, shell=True, cwd=str(work_path), ...)
Because the string is executed through the system shell, metacharacters such as ;, &&, $(), or shell redirection are interpreted. An attacker only needs to provide any valid local Git repository path and a valid commit SHA to turn this endpoint into arbitrary OS command execution. |
|---|
| 来源 | ⚠️ https://github.com/eyal-gor/p_69_branch_monkey_mcp/issues/8 |
|---|
| 用户 | LargeW (UID 97302) |
|---|
| 提交 | 2026-04-14 15時20分 (6 月前) |
|---|
| 管理 | 2026-05-01 11時35分 (17 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 360543 [eyal-gor p_69_branch_monkey_mcp 直到 69bc71874ce40050ef45fde5a435855f18af3373 Preview Endpoint advanced.py dev_script 权限提升] |
|---|
| 积分 | 20 |
|---|