已关闭
security: repo clone 允许通过未加密 HTTP 克隆 — 无警告 #363
aflyingto创建于  6月27日关闭于  6月27日
aflyingto成员
6月27日 创建

发现来源

Agent 2 - 安全审查 (Low)

位置

pkg/cmd/repo/clone/clone.go:172

证据

parseRepoURL 对 http:// URL 无条件放行,无 HTTPS 升级提示或警告。MITM 可拦截 HTTP 传输中的仓库内容。

影响评估

低 — 用户自主行为。但作为 CLI 工具未给出任何警告。

建议修复方向

对 http:// URL 输出警告至 stderr,或要求 --allow-insecure-http 显式标志。


🤖 Generated by daily multi-agent code review workflow

likedislike
Aaflyingto成员
6月27日 添加了label:risk/lowscope/clone, status/triage,type/security
aflyingto成员
6月27日 评论:

已修复: clone HTTP URL 时输出 stderr warning,提示用户使用 HTTPS/SSH。

likedislike
Aaflyingto成员
6月27日 关闭了 issue