module

Exchange Control Panel ViewState Deserialization

Disclosed
Feb 11, 2020
Created
Mar 4, 2020

Description

This module exploits a .NET serialization vulnerability in the
Exchange Control Panel (ECP) web page. The vulnerability is due to
Microsoft Exchange Server not randomizing the keys on a
per-installation basis resulting in them using the same validationKey
and decryptionKey values. With knowledge of these values, an attacker
can craft a special ViewState to cause an OS command to be executed
by NT_AUTHORITY\SYSTEM using .NET deserialization.

Author

Spencer McIntyre

Platform

Windows

Architectures

x86, x64, 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_ecp_viewstate
msf exploit(exchange_ecp_viewstate) > show targets
...targets...
msf exploit(exchange_ecp_viewstate) > set TARGET < target-id >
msf exploit(exchange_ecp_viewstate) > show options
...show and set options...
msf exploit(exchange_ecp_viewstate) > 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.