
Exploit RCE per CVE-2018-14772
Questo è un exploit PoC di Remote Code Execution per CVE-2018-14772, una vulnerabilità che ho scoperto nella piattaforma di condivisione file pydio. Richiede le credenziali di amministratore dell'applicazione pydio per funzionare. Puoi eseguire l'exploit in questo modo:
$ python exploit.py -h
usage: exploit.py [-h] -t TARGET -u USERNAME -p PASSWORD -L LISTENER_IP -P
LISTENER_PORT [--payload PAYLOAD]
[*] exploit some pydio boxes (academically)
optional arguments:
-h, --help show this help message and exit
--payload PAYLOAD one of the pre-built reverse-shell payloads (1, 2, 3, 4,
or 5), or a custom command. keep in mind you can't use
the (") character as it breaks the injection
required arguments:
-t TARGET this is the target URI for the pydio instance..i.e.
http://127.0.0.1:31337/pydio/
-u USERNAME this is the username of the admin user
-p PASSWORD this is the password of the admin user
-L LISTENER_IP IP address to catch reverse shell on
-P LISTENER_PORT port to catch reverse shell on
Ho integrato alcuni payload di reverse shell che puoi provare. Inoltre, puoi usare comandi shell personalizzati ad-hoc. Tieni presente che l'uso del carattere " romperà l'injection di comandi, quindi devi aggirare questa limitazione.

trovato sul mio blog qui