**来源**:本次自审(dsh-code-review-042913.725.md)dsh-plugin.json:19/24/30 三条;与评测站报告 #1035(0.1.2 三条 P1 安全面,2026-10-19,原文未直接核验,性质吻合)疑似对应。 **现象**: - :19【security·high】fs.write scope 含用户可配置 report_dir,未声明路径校验承诺——配置 `report_dir: /etc` 或 `../../sensitive-path` 可写预期目录之外。建议 scope 承诺:「写入前校验为用户 home 下绝对路径、解析符号链接后无遍历逃逸」。 - :24【security·high】process.spawn scope 允许执行 engine_bin 配置的任意路径二进制——经 set-config 可将 engine_bin 指向恶意可执行文件 = 任意命令执行。建议 scope 承诺:「绝对路径、文件存在、非符号链接、非 setuid」+ set-config 描述声明校验。 - :30【security·medium】credentials.read reason 未承诺凭据不泄露到日志/评审报告。 **影响**:宿主若按 scope 文本放行权限,存在越权写文件 / 任意命令执行面。 **待修方向**:dsh-plugin.json scope/reason 文案补校验承诺(见上述建议)。
Activity
Nicholas023 commentedon Oct 20, 2026
修复已合并:PR #29(整合方案,main@9e74866,4 个 fix commit)。已核合并内容与实现一致(lead 实测 diff + worktree 源码)。