
Exchange ProxyLogon: unauthenticated SSRF through OWA proxy for RCE. Fixed in April 2021 CU. Differential: request proxied on vuln, refused on fixed

Фреймворк для эксплуатации с открытым исходным кодом, включающий модульные полезные нагрузки, кодировщик и вспомогательную систему для тестирования на проникновение, проверки уязвимостей и исследований в области безопасности в сетях и приложениях.

Инструмент для автоматического внедрения SQL-инъекций и захвата базы данных

Проект фреймворка для эксплуатации браузеров
| CVE | CVE-2021-26855 |
| Component | Microsoft Exchange Server — OWA/Autodiscover |
| Affected | Exchange Server 2013/2016/2019 |
| Fixed in | April 2021 Cumulative Update |
| CWE | CWE-918 (Server-Side Request Forgery) |
| Impact | An unauthenticated attacker could send a crafted request to an Exchange server that caused it to authenticate to another internal server, leading to arbitrary file write and code execution. |
| Vector | crafted HTTP request with X-BEResource cookie |
| Trigger | unauthenticated internal proxy request |
The vulnerable path:
# pre-fix (model from Microsoft ProxyLogon advisory)
attacker input accepted without the required protection
The derived guard:
# derived from observed behaviour, not copied from a vendor fix
require authentication on internal proxy requests
The proxy endpoint trusted caller-supplied headers for internal routing. The fix validates and authenticates the request.
| service | image | role |
|---|---|---|
ex55-vuln | cve-2021-26855:vuln | vulnerable behaviour present |
ex55-guard | cve-2021-26855:guard | fixed behaviour |
poc | cve-2021-26855-poc:local | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from Microsoft ProxyLogon 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 cve26855lab network and bounded containers.
poc/poc.py takes a mode and an optional --host=...:
| mode | result |
|---|---|
check | exit 1 when SSRF succeeds, 0 when the request is refused |
exploit | runs the full chain and reports the observed impact |
probe | prints the ssrf flag |
mitigation | explains the derived guard |
A standalone exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=ex55-vuln
It exits 1 on a confirmed finding and 0 on a guarded target.
ex55-vuln (pre-fix) | ex55-guard (derived) | |
|---|---|---|
| crafted request | auth bypass / RCE | 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 cve26855lab 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