
Follina: an ms-msdt URL from a document invokes MSDT for RCE. Fixed in June 2022 update. Differential: command launched on vuln, blocked on fixed

Scanner de vulnérabilités rapide basé sur YAML avec moteur de détection piloté par modèles pour des tests de sécurité automatisés sur les applications web, les API, les réseaux, le DNS et l'infrastructure cloud.

Scanner de sécurité d'application web open-source pour la détection automatisée des vulnérabilités, les tests de pénétration manuels et les tests de sécurité d'API avec un moteur d'interception basé sur proxy.

| CVE | CVE-2022-30190 |
| Component | Microsoft Windows — MSDT URL protocol |
| Affected | Windows client and Server versions |
| Fixed in | June 2022 security update |
| CWE | CWE-94 (Code Injection) |
| Impact | A document could invoke the ms-msdt URL protocol and pass commands to the Support Diagnostic Tool, running code with the privileges of the calling application. |
| Vector | crafted link in a Word document |
| Trigger | ms-msdt URL with a command payload |
The vulnerable path:
# pre-fix (model from Microsoft Follina advisory)
attacker input accepted without the required protection
The derived guard:
# derived from observed behaviour, not copied from a vendor fix
reject ms-msdt URLs from documents
The URL protocol handler accepted command-line options from the link. The fix blocks that protocol from Office callers.
| service | image | role |
|---|---|---|
fo-vuln | cve-2022-30190:vuln | vulnerable behaviour present |
fo-guard | cve-2022-30190:guard | fixed behaviour |
poc | cve-2022-30190-poc:local | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from Microsoft Follina advisory; the guard is derived from the lab observation that the impact is reproduced. The fixed build applies the published upstream change.
./run-lab.sh build
./run-lab.sh up
./run-lab.sh sweep
./run-lab.sh down
The lab uses the isolated cve30190lab network and bounded containers.
poc/poc.py takes a mode and an optional --host=...:
| mode | result |
|---|---|
check | exit 1 when the command runs, 0 when the URL is blocked |
exploit | runs the full chain and reports the observed impact |
probe | prints the rce flag |
mitigation | explains the derived guard |
A standalone exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=fo-vuln
It exits 1 on a confirmed finding and 0 on a guarded target.
fo-vuln (pre-fix) | fo-guard (derived) | |
|---|---|---|
| crafted request | RCE | blocked |
| ordinary request | works | works |
Captured runs are in evidence/check-*-run.txt, evidence/exploit-*-run.txt,
evidence/probe-*-run.txt, evidence/mitigation-*-run.txt,
evidence/exploit-standalone-run.txt,
evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt and
evidence/0day-sweep.txt.
Podman or Docker with the cve30190lab network. No production system is
involved. Real-world exploitation needs an affected installation.
Ordinary requests still succeed on the fixed build.
README.md this write-up
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
exploit/exploit.py standalone exploit
lab/harness-*.py vulnerable behaviour / derived guard
lab/lab.Dockerfile builds both sides
lab/service.py HTTP wrapper (POST /check)
evidence/ captured runs on both sides
TRACKING.md working record, excluded from the repo
Ce dépôt contient le composant scanner pour Greenbone Community Edition.