POC详情: 5f112cfc2c70090932c747944875e581e64401f9

来源
关联漏洞
标题: Microsoft Windows Support Diagnostic Tool 操作系统命令注入漏洞 (CVE-2022-30190)
描述:Microsoft Windows Support Diagnostic Tool是美国微软(Microsoft)公司的收集信息以发送给 Microsoft 支持的工具。 Microsoft Windows Support Diagnostic Tool (MSDT)存在操作系统命令注入漏洞。以下产品和版本受到影响:Windows 10 Version 1809 for 32-bit Systems,Windows 10 Version 1809 for x64-based Systems,Windows
描述
Exploit Microsoft Zero-Day Vulnerability Follina (CVE-2022-30190)
介绍
[![](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/Hrishikesh7665/Follina_Exploiter_CLI.git
```

- Or

- Download Repository

`Direct Download Zip` [Click Here](https://codeload.github.com/Hrishikesh7665/Follina_Exploiter_CLI/zip/refs/heads/main)


**For Linux**

- Install Required Module

```
pip3 install pyfiglet
```

**Single Line Command**

```
git clone https://github.com/Hrishikesh7665/Follina_Exploiter_CLI.git && pip3 install pyfiglet
```

- Run

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

**For Windows**

- Install Required Module

```
pip install pyfiglet
```

- Run

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

## Proof of Concept (POC)

**Mallsious command execution**
![](https://github.com/Hrishikesh7665/Follina_Exploiter_CLI/blob/BranchForPullNetCat/POCS/code_execution_POC.gif)

**Taking ReverseShell**
![](https://github.com/Hrishikesh7665/Follina_Exploiter_CLI/blob/BranchForPullNetCat/POCS/Revershell_POC.gif)


## 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>

## Conclusion & Warnings

- `Warning` It Is End User's Responsibility to Obey All the Applicable Laws.
<br>

**Follina Exploitation [Code]( https://github.com/JohnHammond/msdt-follina) originally invented by [John Hamond]( https://github.com/JohnHammond)**

<br>

**Peace ✌️**
文件快照

[4.0K] /data/pocs/5f112cfc2c70090932c747944875e581e64401f9 ├── [4.0K] Assets │   └── [4.0K] payload │   ├── [1.3K] [Content_Types].xml │   ├── [4.0K] docProps │   │   ├── [ 704] app.xml │   │   └── [ 735] core.xml │   ├── [4.0K] _rels │   └── [4.0K] word │   ├── [3.8K] document.xml │   ├── [1.5K] fontTable.xml │   ├── [4.0K] _rels │   │   └── [ 975] document.xml.rels │   ├── [2.9K] settings.xml │   ├── [ 29K] styles.xml │   ├── [4.0K] theme │   │   └── [6.6K] theme1.xml │   └── [ 803] webSettings.xml ├── [ 11K] follinaExploiter.py ├── [1.2K] LICENSE └── [3.2K] README.md 7 directories, 13 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。