File Word Bisa Jadi Senjata Hacker: Menguak CVE-2022–30190 (Follina). Penjelasan — Proof of Concept — Kondisi Terkini Tentang Celah Keamanan Follina
A vulnerability in Microsoft Windows Support Diagnostic Tool (MSDT) allowed an attacker to run arbitrary code on a victim's system by tricking them into opening a malicious Word document. The document used an OLE object to load a remote HTML file that invoked the ms-msdt protocol to execute PowerShell code.
Published on setiyapurbaya.medium.com
CVE-2022–30190 atau nama terkenalnya “Follina” merupakan celah keamanan yang ditemukan di Microsoft Windows Support Diagnostic Tool (MSDT). Kerentanan ini memungkinkan penyerang untuk menjalankan kode arbitrer pada sistem korban dengan menggunakan dokumen Microsoft Office berbahaya.
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 tool accepted a crafted URL scheme that allowed command injection through the IT_BrowseForFile parameter, and Office documents could be made to load remote OLE objects without proper validation.
Impact
An attacker could execute arbitrary code on the victim's machine, potentially gaining full access, though Microsoft has since released a patch and Windows Defender now detects such documents.
What the attacker needed
Victim opens a malicious Word document; attacker hosts a payload HTML file; no user interaction beyond opening the file
The fix
Microsoft released a security update on 14 June 2022 that disabled the exploitation via Office documents and prevented unauthorised use of MSDT; later MSDT was disabled by default.
How it was found
- Create a Word document and insert an OLE object as a bitmap image.
- Change the file extension from .doc to .zip and extract it.
- Edit word/_rels/document.xml.rels to change the OLE object target to an external URL and set TargetMode to External.
- Edit word/document.xml to change the OLE object type from Embed to Link and add UpdateMode set to OnCall.
- Host an HTML file on a server that uses the ms-msdt scheme to execute PowerShell code.
- Open the modified Word document to trigger the exploit.
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 bug let a bad file pretend to be a normal Word document. When opened, it secretly told Windows to run a program chosen by the attacker, without the user clicking anything else. The attacker could then take control of the computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.