| tiêu đề | KunAgent Kun 0.4.5 Improper Authorization |
|---|
| Mô tả | Kun up to 0.4.5 supports workflow hooks with mode "block": a PreToolUse hook can deny a matching tool call before it runs. When the workflow endpoint is unreachable, times out, returns 5xx or returns an unparseable body, buildWorkflowHookRun() catches the transport error and returns only a message, with no decision. runPreToolUseHooks() treats a result without a decision as "no block" and continues, so the tool the operator configured the hook to deny executes with the agent's privileges.
One transport failure removes the entire workflow block policy, not a single hook. Guarded shell commands, file writes and HTTP calls execute; shell commands can delete data, read credentials, push code or send workspace content to an external host. In an unattended turn there is no prompt, and the session looks normal; the only trace is a warning, not a block. The hook service is usually a separate process that restarts independently, so this is a routine operational event, not a rare attack.
The trigger is a common failure: the local WorkflowRuntime is restarting, the endpoint is down, a request times out, or an upstream proxy returns 5xx. The same hook already denies on a well-formed {ok:false} or DENY output; the gap is the "no verdict" transport-error path, which the decision layer resolves to allow. |
|---|
| Nguồn | ⚠️ https://github.com/KunAgent/Kun/pull/1457 |
|---|
| Người dùng | EM123 (UID 102854) |
|---|
| Đệ trình | 09/11/2026 12:44 (cách đây 21 ngày) |
|---|
| Kiểm duyệt | 30/11/2026 17:03 (21 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 445865 [KunAgent Kun đến 0.4.5 Workflow Hooks hook-config.ts buildWorkflowHookRun nâng cao đặc quyền] |
|---|
| điểm | 20 |
|---|