Invia #1082489: MoonshotAI Kimi Code 2.5.2 Improper Authorizationinformazioni

TitoloMoonshotAI Kimi Code 2.5.2 Improper Authorization
DescrizioneKimi 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".
Fonte⚠️ https://github.com/MoonshotAI/kimi-code/pull/4761
Utente
 EM123 (UID 102854)
Sottomissione09/11/2026 12:42 (21 giorni fa)
Moderazione30/11/2026 17:03 (21 days later)
StatoAccettato
Voce VulDB445863 [Moonshot AI Kimi Code fino a 2.5.2 Tool Policy toolPolicyService.ts AgentToolPolicyService escalationi di privilegi]
Punti20

Do you want to use VulDB in your project?

Use the official API to access entries easily!