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
A Command Line based python tool for exploit Zero-Day vulnerability in MSDT (Microsoft Support Diagnostic Tool) also know as 'Follina' CVE-2022-30190.
Readme
[![](https://forthebadge.com/images/badges/made-with-python.svg)](https://www.python.org)

# Follina Exploiter CLI Tool MSDT Vulnerability (CVE-2022-30190)
A Command Line based python tool for exploit Zero-Day vulnerability in MSDT (Microsoft Support Diagnostic Tool) also know as 'Follina' CVE-2022-30190.

> Info : [New Microsoft Office zero-day used in attacks to execute PowerShell](https://www.bleepingcomputer.com/news/security/new-microsoft-office-zero-day-used-in-attacks-to-execute-powershell/)


**Made In Python(3.10.4)**


## Features

1. Execute malicious Command in Victim Device.
2. Take ReverseShell (NetCat).
3. Zero Click RTF included for .rtf files. `New`

## Requirements

- pyfiglet


## Installation

- Clone Repository

```
https://github.com/0xAbbarhSF/FollinaXploit
```

**For Linux**

- Install Required Module

```
pip3 install pyfiglet
```

**Single Line Command**

```
git clone https://github.com/0xAbbarhSF/FollinaXploit && pip3 install pyfiglet && cd FollinaXploit
```

- Run

```
python3 "follinaExploiter.py"
```

**For Windows**

- Install Required Module

```
pip install pyfiglet
```

- Run

```
python "follinaExploiter.py"
```

## How it work?

The vulnerability is being exploited by using the MSProtocol URI scheme to load some code.
Attackers could embed malicious links inside Microsoft Office documents, templates or emails
beginning with ms-msdt: that will be loaded and executed afterward without user interaction
- except if the Protected View mode is enabled. Nevertheless, converting the document to
the RTF format could also bypass the Protected View feature.

MS Office docx files may contain external OLE Object references as HTML files. There is an HTML scheme "ms-msdt:" which invokes the msdt diagnostic tool, what is capable of executing arbitrary code (specified in parameters).


## BONUS (0-click RTF version) ~~(Do it by yourself)~~ Now included

<details>
<summary><strong> Show Details </strong> </summary>
  
~~If you also add these elements under the `<o:OLEObject>` element in `word/document.xml`~~

```
<o:LinkType>EnhancedMetaFile</o:LinkType>
<o:LockedField>false</o:LockedField>
<o:FieldCodes>\f 0</o:FieldCodes>
```
~~then it'll work as RTF also (open the resulting docx and save it as RTF).~~ 

~~With RTF, there is no need to open the file in Word, it is enough to browse to the file and have a look at it in a preview pane. The preview pane triggers the external HTML payload and RCE is there without any clicks.~~
 
</details>

File Snapshot

[4.0K] /data/pocs/23c25f0d27775ed8e51fb74f10e2d15e5044cf83 ├── [4.0K] Assets │   └── [4.0K] payload │   └── [ 1] [Context_Type].xml ├── [ 11K] follinaExploiter.py ├── [ 34K] LICENSE └── [2.4K] README.md 2 directories, 4 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 →