PoC Monitor
← All CVEs
CVE-2021-31207published 11 May 2021 19:11 UTCData: JSON · API

Microsoft Exchange Server 2013 Cumulative Update 23

Microsoft Exchange Server Security Feature Bypass Vulnerability

Microsoft Exchange Server Security Feature Bypass Vulnerability

First public PoC 99 daysafter publication · 18 Aug 2021 · Metasploit
Public PoCs43 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS6.6medium · scored by CNA · CWE-434
CISA KEV 3 Nov 2021176 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150CVE published11 May 2021 · t = 0First public PoC18 Aug 2021 · t+99dAdded to CISA KEV3 Nov 2021 · t+176d

First public PoC 99 days after publication; added to CISA KEV 176 days after publication. First PoC: Metasploit exploit: Microsoft Exchange ProxyShell RCE (exploit/windows/http/exchange_proxyshell_rce) (Metasploit, 18 Aug 2021).

PoC repositories

Found on GitHub.

3 PoCs · 1 informational

PoCs 3
RepositoryCreatedStarsAssessment
aravazhimdr/ProxyShell-POC-Mod 18 Aug 2021 +99 d 6 PoC via PoC Index
horizon3ai/proxyshell 4 Sep 2021 +116 d 121 PoC via PoC Index
mithridates1313/ProxyShell_POC 2 Oct 2021 +144 d 16 PoC via PoC Index
Informational 1
RepositoryCreatedStarsAssessment
swaptt/swapt-it 10 Apr 2022 +334 d 0 Informational · list

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

GET /autodiscover/autodiscover.json

Query
a= @mss.com/owa/?= Email=autodiscover/autodiscover.json?@mss.com
Content-Type
{var}
Ports
80
Seen in
2 repos: horizon3ai/proxyshell, mithridates1313/ProxyShell_POC
Evidence
horizon3ai/proxyshell/exchange_proxyshell.py:246 mithridates1313/ProxyShell_POC/Proxyshell.py:10

POST /autodiscover/autodiscover.json

Query
a=
Content-Type
{var}
Ports
80, 8080
Seen in
2 repos: aravazhimdr/ProxyShell-POC-Mod, horizon3ai/proxyshell
Evidence
aravazhimdr/ProxyShell-POC-Mod/proxyshell_mod.py:49 horizon3ai/proxyshell/exchange_proxyshell.py:229

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /aspnet_client/{var}.aspx
(?i)^/aspnet_client/[^/?#]*\.aspx\?(?:.*&)?exec_code=Response\.Write\(
GET /autodiscover/autodiscover.json
(?i)^/autodiscover/autodiscover\.json\?(?:.*&)?a=.*@mss\.com/owa/\?=.*Email=autodiscover/autodiscover\.json\?@mss\.com
POST /autodiscover/autodiscover.json
(?i)^/autodiscover/autodiscover\.json\?(?:.*&)?a=

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /aspnet_client/{var}.aspx
alert http any any -> $HOME_NET [80,8080] (msg:"GG PoC-Monitor CVE-2021-31207 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/aspnet_client/"; http.uri; content:".aspx"; http.uri; content:"exec_code=Response.Write("; reference:url,poc.griffinguard.io/cve/CVE-2021-31207; classtype:web-application-attack; sid:9474111; rev:1;)
GET /autodiscover/autodiscover.json
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2021-31207 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/autodiscover/autodiscover.json"; http.uri; content:"a="; http.uri; content:"@mss.com/owa/?="; http.uri; content:"Email=autodiscover/autodiscover.json?@mss.com"; reference:url,poc.griffinguard.io/cve/CVE-2021-31207; classtype:web-application-attack; sid:9569029; rev:1;)
POST /autodiscover/autodiscover.json
alert http any any -> $HOME_NET [80,8080] (msg:"GG PoC-Monitor CVE-2021-31207 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/autodiscover/autodiscover.json"; http.uri; content:"a="; reference:url,poc.griffinguard.io/cve/CVE-2021-31207; classtype:web-application-attack; sid:9620725; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /aspnet_client/{var}.aspx
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2021-31207)
id: gg-pocmon-cve-2021-31207-9474111
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-31207. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-31207
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/aspnet_client/'
      - '.aspx'
    cs-uri-query|contains|all:
      - 'exec_code=Response.Write('
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.31207
GET /autodiscover/autodiscover.json
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2021-31207)
id: gg-pocmon-cve-2021-31207-9569029
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-31207. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-31207
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json'
    cs-uri-query|contains|all:
      - 'a='
      - '@mss.com/owa/?='
      - 'Email=autodiscover/autodiscover.json?@mss.com'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.31207
POST /autodiscover/autodiscover.json
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2021-31207)
id: gg-pocmon-cve-2021-31207-9620725
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-31207. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-31207
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json'
    cs-uri-query|contains|all:
      - 'a='
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.31207