
Exploit Python pour la vulnérabilité CVE-2021-22204 dans Exiftool
Exploit Python pour la vulnérabilité CVE-2021-22204 dans Exiftool.
La vulnérabilité CVE-2021-22204 a été découverte et signalée par William Bowling. (@wcbowling)
Cet exploit a été créé en étudiant le correctif d'exiftool après que la CVE a déjà été signalée.
Exiftool et les outils djvulibre doivent être installés. Si vous êtes sur Debian ou Ubuntu, vous pouvez les installer avec :
sudo apt install djvulibre-bin exiftool
Modifiez l'IP et le port dans le fichier exploit.py. Vous pouvez tester le reverse shell avec
nc -nvlp 9090 # or the port you specify in the exploit.py file
Ensuite :
python3 exploit.py
Et le fichier image.jpg déclenchera la vulnérabilité lorsqu'il sera ouvert avec un exiftool vulnérable.
Si vous voulez vous entraîner, il y a un petit labo ici.