| Titre | Twigpine zero 0.13.0 Improper Authorization |
|---|
| Description | Zero up to 0.13.0 uses hooks.json as an operator-controlled beforeTool policy that blocks a tool before the agent runs it. If the file exists but cannot be parsed or read, readLayer() records a diagnostic and returns an empty layer, LoadConfig() returns no error, and the session starts with zero hooks. The beforeTool gate selects nothing, so the blocked tool runs with the agent's privileges.
One invalid layer removes the entire beforeTool policy, not just the broken hook: blocks for exec_command, write_file, web_fetch and the other configured tools disappear at once. A policy that blocks rm -rf, reads of secret paths or writes outside the workspace stops applying after an interrupted save, a wrong-typed field, an unreadable file or a dangling symlink. In an unattended zero exec run there is no prompt, and an agent driven by untrusted repository content can execute the blocked tool in the same session. The operator sees exit 0, empty stderr and enabled=true with no degraded state; the only trace is in zero hooks list, not the session.
The policy does not come back on its own: every later session starts from the same corrupted file until someone fixes it by hand, so the widened surface persists for the rest of the deployment's life. The same root cause applies to the default user layer (~/.config/zero/hooks.json) and a trusted workspace's .zero/hooks.json. |
|---|
| La source | ⚠️ https://github.com/Twigpine/zero/pull/1211 |
|---|
| Utilisateur | EM123 (UID 102854) |
|---|
| Soumission | 09/11/2026 12:40 (il y a 21 jours) |
|---|
| Modérer | 30/11/2026 17:03 (21 days later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 445862 [Twigpine Zero jusqu’à 0.14.0 internal/hooks/hooks.go LoadConfig élévation de privilèges] |
|---|
| Points | 20 |
|---|