Rapid7 Vulnerability & Exploit Database

Exchange Control Panel ViewState Deserialization

Back to Search

Exchange Control Panel ViewState Deserialization



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.


  • Spencer McIntyre




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
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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security