
Chamilo LMS - Fichier de téléchargement volumineux non authentifié permettant l'exécution de code à distance
Téléchargement non authentifié de fichier volumineux dans Chamilo LMS permettant l'exécution de code à distance
LE CODE EST CRÉÉ ET UTILISÉ POUR LE CTF HACKTHEBOX PERMX
Téléchargement non authentifié de fichier dans la fonctionnalité de téléchargement de gros fichiers dans /main/inc/lib/javascript/bigupload/inc/bigUpload.php dans Chamilo LMS <= v1.11.24 qui nous permet de télécharger n'importe quel fichier sur le serveur, nous permettant de télécharger un reverse shell PHP
Ce script nous permet d'obtenir un reverse shell en créant le fichier shell PHP, en le téléchargeant sur le serveur et en démarrant un écouteur netcat
usage : python exploit.py <ADRESSE_IP_LOCALE>
Le code du reverse shell PHP est issu de pentestmonkey https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php