Skip to content
RCE Write-up Intermediate

Analyzing Follina Zeroday Cve 2022 30190

The report analyses the Follina vulnerability (CVE-2022-30190) in Microsoft Office, where a malicious document references a remote HTML file that triggers the Windows diagnostic tool (msdt.exe) to execute a payload. An attacker could achieve remote code execution when a victim opens the document, though the report is a CTF walkthrough rather than a novel disclosure.

CyberJunnkie Follow

Published on systemweakness.com

Hi folks. Today we will be learning a bit about follina Zero-day, and i am doing the follina challengefrom blueteamlabsonline

CyberJunnkie, on systemweakness.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 Windows diagnostic tool (msdt.exe) accepts a file path via the IT_BrowseForFile parameter and fails to properly validate it, allowing a remote HTML file referenced in a document to trigger execution of an arbitrary binary.

Impact

An attacker could achieve remote code execution when a victim opens a crafted document, though the report notes the sample is a vanilla CTF artefact and did not show command-and-control beaconing in the sandbox.

What the attacker needed

Victim opens a crafted document; remote HTML file hosted; HTML file larger than 4096 bytes

How it was found

  1. Download the challenge zip containing a sample doc file.
  2. Calculate the SHA1 hash of the sample using sha1sum.
  3. Upload the sample to VirusTotal to identify its file type.
  4. Unzip the document to inspect the raw XML files.
  5. Examine document.xml.rels to find an external URL pointing to an HTML file.
  6. Refer to the Huntress blog to understand that the HTML file must be larger than 4096 bytes and that msdt.exe is killed before re-execution.

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 walkthrough of a known Microsoft Office flaw called Follina. A document can contain a link to a remote web page, and when the document is opened, Office fetches that page and hands it to a Windows troubleshooting tool, which can be tricked into running a program. The report is a training exercise, not a new discovery.

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 CyberJunnkie

View all

2 more disclosed reports, 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.