
Outlook reminder with a UNC path leaks NetNTLM hash to an attacker SMB server. Fixed in March 2023 update. Differential: connection made on vuln, refused on fixed

Marco de explotación de código abierto con sistema modular de payloads, codificadores y auxiliares para pruebas de penetración, validación de vulnerabilidades e investigación de seguridad en redes y aplicaciones.

Herramienta automática de inyección SQL y toma de control de bases de datos

El Proyecto Framework de Explotación de Navegadores
| CVE | CVE-2023-23397 |
| Component | Microsoft Outlook — meeting reminders |
| Affected | Outlook 2016/2019/Office 365 |
| Fixed in | March 2023 security update |
| CWE | CWE-200 (Information Exposure) |
| Impact | A crafted meeting reminder with a UNC path caused Outlook to connect to the attacker's SMB share and authenticate, leaking the user's NetNTLM hash for relay attacks. |
| Vector | meeting invitation with a crafted reminder sound path |
| Trigger | reminder path pointing to an external UNC share |
The vulnerable path:
# pre-fix (model from Microsoft CVE-2023-23397)
attacker input accepted without the required protection
The derived guard:
# derived from observed behaviour, not copied from a vendor fix
reject UNC or file:// paths in reminders
Outlook treated the reminder path as a local sound file but followed UNC paths with authentication. The fix blocks remote paths.
| service | image | role |
|---|---|---|
ol-vuln | cve-2023-23397:vuln | vulnerable behaviour present |
ol-guard | cve-2023-23397:guard | fixed behaviour |
poc | cve-2023-23397-poc:local | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from Microsoft CVE-2023-23397; 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 cve23397lab network and bounded containers.
poc/poc.py takes a mode and an optional --host=...:
| mode | result |
|---|---|
check | exit 1 when the hash is leaked, 0 when the path is refused |
exploit | runs the full chain and reports the observed impact |
probe | prints the leak flag |
mitigation | explains the derived guard |
A standalone exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=ol-vuln
It exits 1 on a confirmed finding and 0 on a guarded target.
ol-vuln (pre-fix) | ol-guard (derived) | |
|---|---|---|
| crafted request | credential leak | refused |
| 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 cve23397lab 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