
wenjieandxj
8c2a9332c6
fix(security): harden unauthenticated tool-exec paths (#1360)
* fix(security): harden unauthenticated tool-exec paths (GHSA-pv8c-p6jf-3fpp)
- Exec tool: channel-based access control (default deny remote)
- Cron tool: command scheduling restricted to internal channels
- Web fetch: SSRF defense-in-depth (pre-flight + dial-time + redirect checks)
- File permissions: session/state dirs 0700, files 0600
- Registry: inject __channel/__chat_id into tool args (replaces racy SetContext)
28 new security regression tests.
(cherry picked from commit 191446ae19021604d3d5b0d9376b9655ab749105)
* fix(exec): revalidate working_dir before command start
* test(web): allow local oversized payload fixture
---------
Co-authored-by: xj <gh-xj@users.noreply.github.com>
2026-03-11 19:22:20 +08:00
..
2026-03-11 00:06:37 +01:00
2026-03-06 19:58:23 +08:00
2026-03-08 18:22:15 +01:00
2026-03-11 19:22:20 +08:00
2026-03-09 16:39:33 +08:00
2026-03-11 19:22:20 +08:00
2026-02-19 11:48:17 +01:00
2026-03-06 20:46:52 +08:00
2026-02-24 21:52:25 +08:00
2026-02-24 23:57:13 +08:00
2026-02-28 12:21:54 +08:00
2026-03-01 18:17:32 +11:00
2026-02-23 06:56:48 +08:00
2026-02-25 21:31:07 +11:00
2026-03-05 14:53:26 +08:00
2026-02-28 12:21:54 +08:00
2026-03-11 14:29:42 +08:00
2026-03-10 19:34:11 +11:00
2026-03-11 12:54:08 +08:00
2026-03-06 13:10:20 +08:00
2026-03-11 19:22:20 +08:00
2026-03-11 18:08:00 +08:00
2026-03-11 19:22:20 +08:00
2026-03-11 19:22:20 +08:00
2026-03-10 17:13:44 +01:00
2026-03-04 10:21:59 +00:00