Microsoft Exchange Server is affected by an elevation-of-privilege vulnerability (CVE-2024-21410, CISA KEV) involving NTLM relay and Extended Protection for Authentication (EPA) gaps. There is no safe unauthenticated remote PoC that proves the relay condition without participating in an NTLM authentication flow, so this template is VERSION-BASED: it fingerprints Exchange via Outlook Web App (/owa/auth/logon.aspx), extracts the build (X-OWA-Version or /owa/auth/<build>/), and flags builds below the February 2024 security-update floor published by MSRC (Exchange 2016 CU23 < 15.1.2507.37; Exchange 2019 < 15.2.1544.4). Note: for some CU23 deployments, EPA must also be enabled; build alone is necessary but not always sufficient. A match means the host appears to be an unpatched Exchange build in the affected range.
id: CVE-2024-21410
info:
name: Microsoft Exchange Server - NTLM Relay Privilege Elevation
author: ritikchaddha
severity: critical
description: |
Microsoft Exchange Server is affected by an elevation-of-privilege vulnerability (CVE-2024-21410, CISA KEV) involving NTLM relay and Extended Protection for Authentication (EPA) gaps. There is no safe unauthenticated remote PoC that proves the relay condition without participating in an NTLM authentication flow, so this template is VERSION-BASED: it fingerprints Exchange via Outlook Web App (/owa/auth/logon.aspx), extracts the build (X-OWA-Version or /owa/auth/<build>/), and flags builds below the February 2024 security-update floor published by MSRC (Exchange 2016 CU23 < 15.1.2507.37; Exchange 2019 < 15.2.1544.4). Note: for some CU23 deployments, EPA must also be enabled; build alone is necessary but not always sufficient. A match means the host appears to be an unpatched Exchange build in the affected range.
impact: |
An attacker who can relay NTLM credentials can elevate privileges on the Exchange server, potentially leading to domain compromise.
remediation: |
Install the February 2024 Exchange Security Update (or later) and enable Extended Protection for Authentication per Microsoft guidance for CVE-2024-21410.
reference:
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-21410
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://microsoft.github.io/CSS-Exchange/Security/Extended-Protection/
- https://learn.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates
- https://nvd.nist.gov/vuln/detail/CVE-2024-21410
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-21410
epss-score: 0.1824
epss-percentile: 0.97801
cwe-id: CWE-287
cpe: cpe:2.3:a:microsoft:exchange_server:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: microsoft
product: exchange_server
shodan-query:
- http.title:"Outlook"
- http.component:"outlook web app"
- "X-OWA-Version"
fofa-query:
- title="Outlook"
- app="Microsoft-Exchange"
tags: cve,cve2024,microsoft,owa,kev,passive,vkev
http:
- method: GET
path:
- "{{BaseURL}}/owa/auth/logon.aspx"
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'status_code == 200 || status_code == 302'
- 'contains_any(to_lower(response), "x-owa-version", "/owa/auth/")'
- type: dsl
dsl:
- 'compare_versions(exchange_version, "< 15.1.2507.37") && compare_versions(exchange_version, ">= 15.1.0")'
- 'compare_versions(exchange_version, "< 15.2.1544.4") && compare_versions(exchange_version, ">= 15.2.0")'
condition: or
extractors:
- type: kval
name: exchange_version
kval:
- x_owa_version
internal: true
- type: regex
name: exchange_version
part: body
group: 1
regex:
- '/owa/auth/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/'
internal: true
- type: dsl
dsl:
- exchange_version
# digest: 4a0a0047304502206a9b4090cf4fb5793ed20c371b810b799394b96faa8f25f6d1e9a6eee7500938022100c3e2f99f71ea3c1b47ddb91b477f21271c8839008c8f0d1e7e5c406e0c3391a5:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.