
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-05 09:57:33 +08:00
2026-03-11 19:22:20 +08:00
2026-03-11 19:22:20 +08:00
2026-02-23 20:09:53 +11:00
2026-03-02 12:22:02 +08:00
2026-03-09 09:32:21 +01:00
2026-03-09 11:02:31 +01:00
2026-02-20 22:35:16 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-01 08:53:13 +08:00
2026-03-01 12:00:26 +08:00
2026-03-05 09:57:33 +08:00
2026-03-05 09:57:33 +08:00
2026-03-05 09:57:33 +08:00
2026-03-09 18:21:49 +01:00
2026-02-18 21:48:23 +02:00
2026-02-23 03:10:57 +08:00
2026-03-09 18:21:49 +01:00
2026-03-09 18:21:49 +01:00
2026-03-06 19:42:52 +08:00
2026-03-06 19:42:52 +08:00
2026-02-18 02:01:29 +08:00
2026-02-18 02:01:29 +08:00
2026-03-11 19:22:20 +08:00
2026-02-28 16:24:26 +08:00
2026-03-11 19:22:20 +08:00
2026-02-20 20:03:11 +02:00
2026-02-24 23:57:13 +08:00
2026-02-20 20:03:11 +02:00
2026-02-20 20:03:11 +02:00
2026-03-05 13:07:17 +01:00
2026-03-05 09:57:33 +08:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-05 13:07:17 +01:00
2026-03-05 13:07:17 +01:00
2026-03-04 17:17:28 +08:00
2026-02-18 21:48:23 +02:00
2026-03-11 19:22:20 +08:00
2026-03-11 19:22:20 +08:00