Submit #1082488: Twigpine zero 0.13.0 Improper Authorizationinfo

TitelTwigpine zero 0.13.0 Improper Authorization
BeschreibungZero 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.
Quelle⚠️ https://github.com/Twigpine/zero/pull/1211
Benutzer
 EM123 (UID 102854)
Einreichung09.11.2026 12:40 (vor 21 Tagen)
Moderieren30.11.2026 17:03 (21 days later)
StatusAkzeptiert
VulDB Eintrag445862 [Twigpine Zero bis 0.14.0 internal/hooks/hooks.go LoadConfig erweiterte Rechte]
Punkte20

Interested in the pricing of exploits?

See the underground prices here!