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//), 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.99164 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: 490a004630440220363624fae5c6e65617c7b6607f01b7b5403f2b4e9aa78cb2976b5df98843b96102200545837304bfe1b4b13170f057bfff155c3340183c1952c02218899697c5d80b:922c64590222798bb761d5b6d8e72950