ForcePilot/web
copilot-swe-agent[bot] 037872924b
fix: 修复路径遍历安全漏洞并添加文件名校验
- 前端:在 ExtensionsView.vue 上传前添加 beforeUpload 校验,
  仅允许 .zip 或 SKILL.md 文件,其他 .md 文件给出明确错误提示
- 后端:import_skill_dir 添加路径限制检查(is_relative_to),
  确保来源目录在系统临时目录内,防止路径遍历
- 后端:install_remote_skill 改为扫描目录查找安装结果,
  避免直接用用户输入构造文件路径(消除 CodeQL 告警)
- 后端:_run_skills_cli 错误输出清洗 ANSI 控制字符并截断到 500 字符
- 后端:install_remote_skill 返回类型从 object 修正为 Skill

Agent-Logs-Url: https://github.com/xerrors/Yuxi/sessions/0145c647-72bc-41f9-b07b-04d4acf51932

Co-authored-by: xerrors <35524243+xerrors@users.noreply.github.com>
2026-04-02 15:19:33 +00:00
..
public feat(web): UI小幅调整,多处细节优化 2026-03-24 11:10:39 +08:00
src fix: 修复路径遍历安全漏洞并添加文件名校验 2026-04-02 15:19:33 +00:00
.gitignore refactor(eslint): 升级eslint配置,让其在eslint9.x可用 2026-01-09 12:36:14 +08:00
.prettierrc.json first commit: chat support deepseek, zhipu 2024-07-07 01:58:23 +08:00
eslint.config.js refactor(eslint): 升级eslint配置,让其在eslint9.x可用 2026-01-09 12:36:14 +08:00
index.html rename 2024-09-14 02:45:35 +08:00
package.json chore: 0.6.0 预发布 2026-04-01 16:55:29 +08:00
pnpm-lock.yaml chore: 发布 v0.5.1 版本 2026-03-06 11:49:31 +08:00
vite.config.js style(lint): 优化格式 2026-03-26 13:53:35 +08:00