sourcegraph sourcegraph 对生成代码的控制不恰当(代码注入)

admin 2023-11-30 09:01:09 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
sourcegraph sourcegraph 对生成代码的控制不恰当(代码注入)

CVE编号

CVE-2022-23642

利用情况

暂无

补丁情况

N/A

披露时间

2022-02-19
漏洞描述
Sourcegraph is a code search and navigation engine. Sourcegraph prior to version 3.37 is vulnerable to remote code execution in the `gitserver` service. The service acts as a git exec proxy, and fails to properly restrict calling `git config`. This allows an attacker to set the git `core.sshCommand` option, which sets git to use the specified command instead of ssh when they need to connect to a remote system. Exploitation of this vulnerability depends on how Sourcegraph is deployed. An attacker able to make HTTP requests to internal services like gitserver is able to exploit it. This issue is patched in Sourcegraph version 3.37. As a workaround, ensure that requests to gitserver are properly protected.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
http://packetstormsecurity.com/files/167506/Sourcegraph-Gitserver-3.36.3-Remo...
http://packetstormsecurity.com/files/167741/Sourcegraph-gitserver-sshCommand-...
https://github.com/sourcegraph/sourcegraph/pull/30833
https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-qcmp-fx72-q8q9
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 sourcegraph sourcegraph * Up to (excluding) 3.37
CVSS3评分 8.8
  • 攻击路径 网络
  • 攻击复杂度 低
  • 权限要求 低
  • 影响范围 未更改
  • 用户交互 无
  • 可用性 高
  • 保密性 高
  • 完整性 高
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-ID 漏洞类型
CWE-862 授权机制缺失
CWE-94 对生成代码的控制不恰当(代码注入)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0