On Monday May 30, 2022, Microsoft issued CVE-2022-30190 regarding the Microsoft Support Diagnostic Tool (MSDT) in Windows vulnerability.
A remote code execution (RCE) 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 right.
How to Exploit Microsoft Support Diagnostic Tool?
Before exploiting this flaw, let me show you the release information of Microsoft Word. I use Microsoft Office Professional Plus 2013 version.
There are several exploits on GitHub related to the (MSDT) Microsoft Support Diagonist tool. I would like to prefer John Hammond GitHub page (who is a cybersecurity researcher, educator, and content creator). Let’s have a look on the image.
Before Exploiting (MSDT) Microsoft Support Diagnostic Tool, let’s enter the msdt-follina directory and fire the lscommand. There are some files and folders but we are interested in follina.py python script.
As well as in my second pane, there is an IP address of the Kali Linux machine.
Before executing follina.py script, the python3 package should be installed into our system, otherwise follina.py script will raise an error. Follow the below command.
After executing the above command, a malicious file named follina.doc is generated.
follina.doc is a malicious file. We have to send this file to our target system. For that, you can use any third-party web server. But we will use the python3 HTTP server (Python3 SimpleHTTPServer is a built-in HTTP server in which you don’t have to install and configure anything).