Materialized exploit
CVE-2024-21410
CRITICAL KEV1 public exploit(s) for this CVE, 1 materialized with their code.
For defensive research only. Only test on systems you own or have written authorization for. Unauthorized access is illegal.
Nuclei
critical Verified
Source
Microsoft Exchange Server - NTLM Relay Privilege Elevation
By projectdiscovery
How to test this exploit
The Nuclei template IS the test: an executable detection rule. Install nuclei, then run it against a target you control.
nuclei -id CVE-2024-21410 -u https://your-target
Template yaml
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.60833
epss-percentile: 0.9917
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: 4a0a0047304502201f2ccccfb4a09860a2dedd642eddbfe8104598b9a88d26ae1cb9b77d14744f79022100dfd43aeb58829cf6bc3594d9e9d52ffa0744ea76ab229c86cb4e350353e60d5e:922c64590222798bb761d5b6d8e72950