Skip to content
RCE Write-up Intermediate

Tutorial Step By Step Bagaimana Hacker Menggunakan File Word Untuk Hacking Korbannya — CVE-2022–30190 (Follina)

A malicious Word document exploiting CVE-2022-30190 (Follina) was used to achieve remote code execution on an unpatched Windows 11 system. When the victim opened the document, the attacker gained a reverse shell with full access to the victim's machine.

Setiya Purbaya Follow

Published on setiyapurbaya.medium.com

Pada kesempatan kali ini kita akan mencoba mengenal lebih mendalam tentang kerentanan CVE-2022–30190 (Follina). Detail penjelasan terkait kerentanan ini sudah saya ceritakan pada blog post saya sebelumnya pada link berikut:

Setiya Purbaya, on setiyapurbaya.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the MSDT URL protocol handler in Windows allows remote code execution when a crafted Word document is opened, as the document can invoke the handler without proper validation.

What the attacker needed

Unpatched Windows 11 with Office 2019; victim opens malicious document; attacker and victim on same network

How it was found

  1. Clone the msdt-follina script from GitHub on Kali Linux.
  2. Run the script to generate a malicious Word document and start a reverse shell listener on port 9001.
  3. Copy the generated document to the web server directory and ensure Apache is running.
  4. On the victim Windows machine, download the document via the attacker's IP address.
  5. Open the downloaded document in Word and enable editing if prompted.
  6. Observe the reverse shell connection on the attacker's terminal.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a tutorial showing how a known security flaw in Microsoft Word (called Follina) can be abused. The attacker sends a specially crafted Word file; when the victim opens it, the attacker's computer secretly connects back and takes control. The flaw exists because Word can be tricked into running a built-in Windows tool that executes commands.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Setiya Purbaya

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.