Materialized exploit
CVE-2018-8581
HIGH 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
high Verified
Source
Microsoft Exchange Server - SSRF Privilege Escalation
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-2018-8581 -u https://your-target
Template yaml
id: CVE-2018-8581
info:
name: Microsoft Exchange Server - SSRF Privilege Escalation
author: 0x_Akoko
severity: high
description: |
Microsoft Exchange Server contains an elevation of privilege caused by a vulnerability in the system, letting attackers escalate their privileges, exploit requires specific conditions not specified.
impact: |
Attackers can escalate privileges, potentially gaining full control over the affected system.
remediation: |
Apply the latest security updates and patches provided by Microsoft for Exchange Server.
reference:
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2018-8581
- https://dirkjanm.io/abusing-exchange-one-api-call-away-from-domain-admin/
- https://nvd.nist.gov/vuln/detail/CVE-2018-8581
- https://learn.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
cvss-score: 7.4
cve-id: CVE-2018-8581
epss-score: 0.27558
epss-percentile: 0.98121
cwe-id: CWE-918
metadata:
verified: true
max-request: 1
vendor: microsoft
product: exchange_server
shodan-query: http.title:"Outlook Web App" || http.title:"Outlook"
fofa-query: header="X-OWA-Version" || title="Outlook Web App"
tags: cve,cve2018,microsoft,exchange,owa,ssrf,privesc,version-detect,kev,vkev,vd
http:
- raw:
- |
GET /owa/ HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 3
matchers:
- type: dsl
dsl:
- 'len(exchver) > 0'
- compare_versions(exchver, ">= 14.0.0", "< 14.3.442.0") || compare_versions(exchver, ">= 15.0.0", "< 15.0.1473.3") || compare_versions(exchver, ">= 15.1.0", "< 15.1.1713.5") || compare_versions(exchver, ">= 15.2.0", "< 15.2.330.5")
condition: and
extractors:
- type: regex
name: exchver
part: header
group: 1
internal: true
regex:
- '(?i)X-OWA-Version: *([0-9]+\.[0-9]+\.[0-9]+(?:\.[0-9]+)?)'
- type: dsl
dsl:
- '"Exchange " + exchver'
# digest: 4a0a00473045022100bedabba3dda450902b5920518b842a0a47274b280ce97b6e75e1d264b24fcb41022014ea4baede00dbd942dd8a2674dcebb0ae6052ace7a0821ed5376b3789b54f84:922c64590222798bb761d5b6d8e72950