PoC Monitor
← All CVEs
CVE-2022-41040published 3 Oct 2022 00:00 UTCData: JSON · API

Microsoft Exchange Server 2013 Cumulative Update 23

Microsoft Exchange Server Elevation of Privilege Vulnerability

Microsoft Exchange Server Elevation of Privilege Vulnerability

First public PoC 13 h beforebefore publication · 2 Oct 2022
Public PoCs109 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CNA · CWE-918
CISA KEV 30 Sep 20223 days before after publication · ransomware use known

Timeline

Days relative to CVE publication
-4-2t=0+2+4+6+8Added to CISA KEV30 Sep 2022 · t−3dFirst public PoC2 Oct 2022 · t−13hCVE published3 Oct 2022 · t = 0

First public PoC 13 h before publication; added to CISA KEV 3 days before publication. First PoC: numanturle/CVE-2022-41040 (created 2 Oct 2022, found by us: backfilled).

PoC repositories

Found on GitHub.

9 PoCs · 1 pending · 2 informational · 1 not a PoC

PoCs 9
RepositoryCreatedStarsAssessment
Ph33rr/Exploit 26 Jul 2021 −1.2 y 11 PoC older repo: PoC date unknown, not used for the first PoC
numanturle/CVE-2022-41040 2 Oct 2022 −13 h 19 PoC
r3dcl1ff/CVE-2022-41040 4 Oct 2022 +1.6 d 5 PoC
d3duct1v/CVE-2022-41040 6 Oct 2022 +3.1 d 5 PoC
kljunowsky/CVE-2022-41040-POC 9 Oct 2022 +6.6 d 90 PoC
ITPATJIDR/CVE-2022-41040 14 Oct 2022 +12 d 1 PoC
TaroballzChen/CVE-2022-41040-metasploit-ProxyNotShell 20 Oct 2022 +17 d 35 PoC
testanull/ProxyNotShell-PoC 17 Nov 2022 +45 d 413 PoC
0-Gram/CVE-2022-41040 23 Nov 2024 +2.1 y 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
trhacknon/CVE-2022-41040-metasploit-ProxyNotShell unknown 0 Pending · repository unavailable (HTTP 404)
Informational 2
RepositoryCreatedStarsAssessment
CentarisCyber/CVE-2022-41040_Mitigation 3 Oct 2022 +18 h 0 Informational · detection
Flags · score 15
  • owner account created less than 30 days before the repo

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

rjsudlow/proxynotshell-IOC-Checker 9 Oct 2022 +6.9 d 5 Informational · detection
Flags · score 15
  • no network code found (normal for a local exploit)

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

Not a PoC 1
RepositoryCreatedStarsAssessment
CyprianAtsyor/LetsDefend-CVE-2022-41082-Exploitation-Attempt 16 May 2025 +2.6 y 0 Not a PoC · unrelated

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 9 PoC repos

GET /autodiscover/autodiscover.json

Query
aa..{}/owa/?= Email=autodiscover/autodiscover.json?a.. Protocol=Autodiscoverv1 {}Protocol=Powershell aa@{}/owa/?= Email=autodiscover/autodiscover.json?a@ Email=aa@autodiscover/autodiscover.json?a.. Email=aa@autodiscover/autodiscover.json?a@ @URL/= Email=autodiscover/autodiscover.json?@URL @mail.xxx/BACKENDAPI?= Email=autodiscover/autodiscover.json?@mail.xxx
Key headers
Accept: */* Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Language: en Accept-Language: en-US,en;q=0.9
PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
3 repos: Ph33rr/Exploit, d3duct1v/CVE-2022-41040, numanturle/CVE-2022-41040
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:41 Ph33rr/Exploit/CVE-2022-41040.py:42 Ph33rr/Exploit/CVE-2022-41040.py:43 Ph33rr/Exploit/CVE-2022-41040.py:44 Ph33rr/Exploit/CVE-2022-41040.py:45 d3duct1v/CVE-2022-41040/scanner.py:49

POST /mapi/nspi

Key headers
Accept: */* Accept-Language: en
Body markers
<?xml version='1.0' encoding='utf-8'?>\x0d\x0a <soap:Envelope\x0d\x0a xmlns:soap='http://schemas.xmlsoap.org/soap/envelo in text/xml
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
2 repos: Ph33rr/Exploit, TaroballzChen/CVE-2022-41040-metasploit-ProxyNotShell
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:69 TaroballzChen/CVE-2022-41040-metasploit-ProxyNotShell/microsoft_exchange_server_proxynotshell_ssrf.py:74

GET /autodiscover/autodiscover.json/v1.0/aa..{var}/owa/

Query
Email=autodiscover/autodiscover.json?a.. Protocol=Autodiscoverv1 Protocol=Powershell
Key headers
Accept: */* Accept-Language: en
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
1 repo: Ph33rr/Exploit
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:39

GET /autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json

Query
a..@{}= Protocol=Autodiscoverv1 Protocol=Powershell
Key headers
Accept: */* Accept-Language: en
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
1 repo: Ph33rr/Exploit
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:46

GET /autodiscover/autodiscover.json/v1.0/aa@{var}

Query
Protocol=Autodiscoverv1
Key headers
Accept: */* Accept-Language: en
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
1 repo: Ph33rr/Exploit
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:38

GET /autodiscover/autodiscover.json/v1.0/aa@{var}/owa/

Query
Email=autodiscover/autodiscover.json?a@ Protocol=Autodiscoverv1 Protocol=Powershell
Key headers
Accept: */* Accept-Language: en
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 pp9520
Seen in
1 repo: Ph33rr/Exploit
Evidence
Ph33rr/Exploit/CVE-2022-41040.py:40

Regex

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

GET /autodiscover/autodiscover.json
(?i)^/autodiscover/autodiscover\.json\?(?:.*&)?aa\.\.\{\}/owa/\?=.*Email=autodiscover/autodiscover\.json\?a\.\..*Protocol=Autodiscoverv1.*\{\}Protocol=Powershell.*aa@\{\}/owa/\?=.*Email=autodiscover/autodiscover\.json\?a@.*Email=aa@autodiscover/autodiscover\.json\?a\.\..*Email=aa@autodiscover/autodiscover\.json\?a@.*@URL/=.*Email=autodiscover/autodiscover\.json\?@URL.*@mail\.xxx/BACKENDAPI\?=.*Email=autodiscover/autodiscover\.json\?@mail\.xxx
POST /mapi/nspi
(?i)^/mapi/nspi(?:[?#].*)?$
GET /autodiscover/autodiscover.json/v1.0/aa..{var}/owa/
(?i)^/autodiscover/autodiscover\.json/v1\.0/aa\.\.[^/?#]*/owa/\?(?:.*&)?Email=autodiscover/autodiscover\.json\?a\.\..*Protocol=Autodiscoverv1.*Protocol=Powershell
GET /autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json
(?i)^/autodiscover/autodiscover\.json/v1\.0/aa@autodiscover/autodiscover\.json\?(?:.*&)?a\.\.@\{\}=.*Protocol=Autodiscoverv1.*Protocol=Powershell
GET /autodiscover/autodiscover.json/v1.0/aa@{var}
(?i)^/autodiscover/autodiscover\.json/v1\.0/aa@[^/?#]*\?(?:.*&)?Protocol=Autodiscoverv1

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /autodiscover/autodiscover.json
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-41040 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:"aa..{}/owa/?="; http.uri; content:"Email=autodiscover/autodiscover.json?a.."; http.uri; content:"Protocol=Autodiscoverv1"; http.uri; content:"{}Protocol=Powershell"; http.uri; content:"aa@{}/owa/?="; http.uri; content:"Email=autodiscover/autodiscover.json?a@"; http.uri; content:"Email=aa@autodiscover/autodiscover.json?a.."; http.uri; content:"Email=aa@autodiscover/autodiscover.json?a@"; http.uri; content:"@URL/="; http.uri; content:"Email=autodiscover/autodiscover.json?@URL"; http.uri; content:"@mail.xxx/BACKENDAPI?="; http.uri; content:"Email=autodiscover/autodiscover.json?@mail.xxx"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.9"; nocase; http.header; content:"Accept-Language: en"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.9"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-41040; classtype:web-application-attack; sid:9403702; rev:1;)
POST /mapi/nspi
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-41040 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/mapi/nspi"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.request_body; content:"<?xml version='1.0' encoding='utf-8'?>|5c|x0d|5c|x0a <soap:Envelope|5c|x0d|5c|x0a xmlns:soap='http://schemas.xmlsoap.org/soap/envelo"; reference:url,poc.griffinguard.io/cve/CVE-2022-41040; classtype:web-application-attack; sid:9637191; rev:1;)
GET /autodiscover/autodiscover.json/v1.0/aa..{var}/owa/
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-41040 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/autodiscover/autodiscover.json/v1.0/aa.."; http.uri; content:"/owa/"; http.uri; content:"Email=autodiscover/autodiscover.json?a.."; http.uri; content:"Protocol=Autodiscoverv1"; http.uri; content:"Protocol=Powershell"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-41040; classtype:web-application-attack; sid:9880079; rev:1;)
GET /autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-41040 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json"; http.uri; content:"a..@{}="; http.uri; content:"Protocol=Autodiscoverv1"; http.uri; content:"Protocol=Powershell"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-41040; classtype:web-application-attack; sid:9046326; rev:1;)
GET /autodiscover/autodiscover.json/v1.0/aa@{var}
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-41040 Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/autodiscover/autodiscover.json/v1.0/aa@"; http.uri; content:"Protocol=Autodiscoverv1"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-41040; classtype:web-application-attack; sid:9323714; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /autodiscover/autodiscover.json
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2022-41040)
id: gg-pocmon-cve-2022-41040-9403702
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-41040. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2022-41040
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json'
    cs-uri-query|contains|all:
      - 'aa..{}/owa/?='
      - 'Email=autodiscover/autodiscover.json?a..'
      - 'Protocol=Autodiscoverv1'
      - '{}Protocol=Powershell'
      - 'aa@{}/owa/?='
      - 'Email=autodiscover/autodiscover.json?a@'
      - 'Email=aa@autodiscover/autodiscover.json?a..'
      - 'Email=aa@autodiscover/autodiscover.json?a@'
      - '@URL/='
      - 'Email=autodiscover/autodiscover.json?@URL'
      - '@mail.xxx/BACKENDAPI?='
      - 'Email=autodiscover/autodiscover.json?@mail.xxx'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2022.41040
POST /mapi/nspi
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2022-41040)
id: gg-pocmon-cve-2022-41040-9637191
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-41040. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2022-41040
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/mapi/nspi'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2022.41040
GET /autodiscover/autodiscover.json/v1.0/aa..{var}/owa/
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2022-41040)
id: gg-pocmon-cve-2022-41040-9880079
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-41040. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2022-41040
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json/v1.0/aa..'
      - '/owa/'
    cs-uri-query|contains|all:
      - 'Email=autodiscover/autodiscover.json?a..'
      - 'Protocol=Autodiscoverv1'
      - 'Protocol=Powershell'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2022.41040
GET /autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2022-41040)
id: gg-pocmon-cve-2022-41040-9046326
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-41040. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2022-41040
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json/v1.0/aa@autodiscover/autodiscover.json'
    cs-uri-query|contains|all:
      - 'a..@{}='
      - 'Protocol=Autodiscoverv1'
      - 'Protocol=Powershell'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2022.41040
GET /autodiscover/autodiscover.json/v1.0/aa@{var}
title: Microsoft Microsoft Exchange Server 2013 Cumulative Update 23 exploit attempt (CVE-2022-41040)
id: gg-pocmon-cve-2022-41040-9323714
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-41040. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2022-41040
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/autodiscover/autodiscover.json/v1.0/aa@'
    cs-uri-query|contains|all:
      - 'Protocol=Autodiscoverv1'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2022.41040