PoC Monitor
← All CVEs
CVE-2021-26857published 2 Mar 2021 23:55 UTCData: JSON · API

Microsoft Exchange Server 2010 Service Pack 3

Microsoft Exchange Server Remote Code Execution Vulnerability

Microsoft Exchange Server Remote Code Execution Vulnerability

First public PoC 1.7 daysafter publication · 4 Mar 2021
Public PoCs33 on GitHub
CVSS7.8high · scored by CNA · CWE-502
CISA KEV 3 Nov 2021246 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150+180+210+240CVE published2 Mar 2021 · t = 0First public PoC4 Mar 2021 · t+1.7dAdded to CISA KEV3 Nov 2021 · t+246d

First public PoC 1.7 days after publication; added to CISA KEV 246 days after publication. First PoC: Ahsanzia/Exchange-Exploit (created 4 Mar 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

3 PoCs · 1 not a PoC · 1 suspicious or fake

PoCs 3
RepositoryCreatedStarsAssessment
Ahsanzia/Exchange-Exploit 4 Mar 2021 +1.7 d 5 PoC via PoC Index
WiredPulse/Invoke-HAFNIUMCheck.ps1 4 Mar 2021 +2 d 3 PoC via PoC Index
sirpedrotavares/Proxylogon-exploit 11 Mar 2021 +8.7 d 111 PoC
Not a PoC 1
RepositoryCreatedStarsAssessment
Yt1g3r/CVE-2021-26855_SSRF 8 Mar 2021 +5.3 d 4 Not a PoC · unrelated
Suspicious or fake 1
RepositoryCreatedStarsAssessment
Immersive-Labs-Sec/ProxyLogon 16 Mar 2021 +13 d 3 Fake
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

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

PoC characteristics

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

GET /ecp/{var}

Key headers
Cookie: X-BEResource=localhost~1942062522 Cookie: X-BEResource=Admin@{var}:444/ecp/about.aspx?a=~1942062522; ASP.NET_SessionId={var}; msExchEcpCanary={var}
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Seen in
1 repo: sirpedrotavares/Proxylogon-exploit
Evidence
sirpedrotavares/Proxylogon-exploit/exploit.py:37 sirpedrotavares/Proxylogon-exploit/exploit.py:99

POST /ecp/{var}

Key headers
Cookie: X-BEResource={var}/autodiscover/autodiscover.xml?a=~1942062522; Cookie: X-BEResource=Admin@{var}:444/mapi/emsmdb?MailboxId=f26bc937-b7b3-4402-b890-96c46713e5d5@exchange.lab&a=~1942062522; Cookie: X-BEResource=Admin@{var}:444/ecp/proxyLogon.ecp?a=~1942062522; Cookie: X-BEResource=Admin@{var}:444/ecp/DDI/DDIService.svc/GetObject?schema=OABVirtualDirectory&msExchEcpCanary={var}&a=~1942062522; ASP.NET_SessionId={var}; msExchEcpCanary={var} Cookie: X-BEResource=Admin@{var}:444/ecp/DDI/DDIService.svc/SetObject?schema=OABVirtualDirectory&msExchEcpCanary={var}&a=~1942062522; ASP.NET_SessionId={var}; msExchEcpCanary={var} Cookie: X-BEResource=Admin@{var}:444/ecp/DDI/DDIService.svc/SetObject?schema=ResetOABVirtualDirectory&msExchEcpCanary={var}&a=~1942062522; ASP.NET_SessionId={var}; msExchEcpCanary={var}
Body markers
""<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"> ""<r at="Negotiate" ln="john"> "filter" "sort" "identity" "properties" in text/xml
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Seen in
1 repo: sirpedrotavares/Proxylogon-exploit
Evidence
sirpedrotavares/Proxylogon-exploit/exploit.py:43 sirpedrotavares/Proxylogon-exploit/exploit.py:62 sirpedrotavares/Proxylogon-exploit/exploit.py:81 sirpedrotavares/Proxylogon-exploit/exploit.py:114 sirpedrotavares/Proxylogon-exploit/exploit.py:137 sirpedrotavares/Proxylogon-exploit/exploit.py:155

Regex

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

GET /ecp/{var}
(?i)^/ecp/[^/?#]*(?:[?#].*)?$
POST /ecp/{var}
(?i)^/ecp/[^/?#]*(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /ecp/{var}
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-26857 Microsoft Microsoft Exchange Server 2010 Service Pack 3 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/ecp/"; http.header; content:"Cookie: X-BEResource=localhost~1942062522"; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-26857; classtype:web-application-attack; sid:9380789; rev:1;)
POST /ecp/{var}
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-26857 Microsoft Microsoft Exchange Server 2010 Service Pack 3 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ecp/"; http.header; content:"Cookie: X-BEResource="; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; http.header; content:"Cookie: X-BEResource=Admin@"; nocase; http.request_body; content:"|22||22|<Autodiscover xmlns=|22|http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006|22|>"; http.request_body; content:"|22||22|<r at=|22|Negotiate|22| ln=|22|john|22|>"; http.request_body; content:"|22|filter|22|"; http.request_body; content:"|22|sort|22|"; http.request_body; content:"|22|identity|22|"; http.request_body; content:"|22|properties|22|"; reference:url,poc.griffinguard.io/cve/CVE-2021-26857; classtype:web-application-attack; sid:9506063; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /ecp/{var}
title: Microsoft Microsoft Exchange Server 2010 Service Pack 3 exploit attempt (CVE-2021-26857)
id: gg-pocmon-cve-2021-26857-9380789
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-26857. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-26857
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/ecp/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.26857
POST /ecp/{var}
title: Microsoft Microsoft Exchange Server 2010 Service Pack 3 exploit attempt (CVE-2021-26857)
id: gg-pocmon-cve-2021-26857-9506063
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-26857. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-26857
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ecp/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.26857