إرسال #1082488: Twigpine zero 0.13.0 Improper Authorizationالمعلومات

عنوانTwigpine zero 0.13.0 Improper Authorization
الوصف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.
المصدر⚠️ https://github.com/Twigpine/zero/pull/1211
المستخدم
 EM123 (UID 102854)
ارسال09/11/2026 12:40 PM (21 أيام منذ)
الاعتدال30/11/2026 05:03 PM (21 days later)
الحالةتمت الموافقة
إدخال VulDB445862 [Twigpine Zero حتى 0.14.0 internal/hooks/hooks.go LoadConfig تجاوز الصلاحيات]
النقاط20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!