module

Microsoft Exchange ProxyNotShell RCE

Disclosed
Sep 28, 2022
Created
Nov 30, 2022

Description

This module chains two vulnerabilities on Microsoft Exchange Server
that, when combined, allow an authenticated attacker to interact with
the Exchange Powershell backend (CVE-2022-41040), where a
deserialization flaw can be leveraged to obtain code execution
(CVE-2022-41082). This exploit only support Exchange Server 2019.

These vulnerabilities were patched in November 2022.

Authors

Orange Tsai
Spencer McIntyre
DA-0x43-Dx4-DA-Hx2-Tx2-TP-S-Q
Piotr Bazydło
Rich Warren
Soroush Dalili

Platform

Windows

Architectures

x64, x86, cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/http/exchange_proxynotshell_rce
msf exploit(exchange_proxynotshell_rce) > show targets
...targets...
msf exploit(exchange_proxynotshell_rce) > set TARGET < target-id >
msf exploit(exchange_proxynotshell_rce) > show options
...show and set options...
msf exploit(exchange_proxynotshell_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.