提交 #1082489: MoonshotAI Kimi Code 2.5.2 Improper Authorization信息

标题MoonshotAI Kimi Code 2.5.2 Improper Authorization
描述Kimi Code up to 2.5.2 supports a global tool switch in config.toml ([tools] disabled = ["Bash"]), and the policy engine treats an absent tools section as "no restriction". The config service keeps running when the initial config read fails, but AgentToolPolicyService reads [tools] with config.get(), gets undefined for that failed read, and installs the global denylist as "no restriction". The disabled tool is offered to the model again and, in -p/auto mode, executes without approval; the process exits 0 and stderr is empty, so a headless or CI run looks successful. Any deployment that treats [tools] as the boundary for an unattended agent loses that boundary after one unreadable file: CI jobs, scripts, kimi -p automation, review/sandboxed agents that disable shell or network tools, and kimi web / kap-server sessions sharing the same config and tool-policy path. A disabled Bash returns arbitrary shell execution; a disabled FetchURL or WebSearch returns outbound network access, because every tool goes through the same composed check. A CI job that was supposed to run without shell runs with shell, with the same exit code and no warning; the next scheduled run silently keeps the looser default until someone reads the per-home log. A self-write path adds delayed escalation: an agent that could not run shell in one run can write the config and obtain shell in the next. The trigger is an existing config.toml that cannot be parsed or read (non-atomic write, path replaced by a directory, lost permission). A missing or empty file is the documented first-run default and is not the issue; an existing but invalid file is treated as "not configured".
来源⚠️ https://github.com/MoonshotAI/kimi-code/pull/4761
用户
 EM123 (UID 102854)
提交2026-11-09 12時42分 (21 日前)
管理2026-11-30 17時03分 (21 days later)
状态已接受
VulDB条目445863 [Moonshot AI Kimi Code 直到 2.5.2 Tool Policy toolPolicyService.ts AgentToolPolicyService 权限提升]
积分20

Interested in the pricing of exploits?

See the underground prices here!