2022-05-05 18:13:11 +00:00
|
|
|
id: ms-exchange-server
|
2021-03-03 19:09:10 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Microsoft Exchange Server Detect
|
2021-08-19 20:44:42 +00:00
|
|
|
author: pikpikcu,dhiyaneshDK
|
2021-03-03 19:09:10 +00:00
|
|
|
severity: info
|
2021-08-20 12:34:08 +00:00
|
|
|
description: Check for Exchange Server CVEs CVE-2021-26855, CVE-2021-26857, CVE-2021-26858 and CVE-2021-27065, using Outlook Web App path data.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/GossiTheDog/scanning/blob/main/http-vuln-exchange.nse
|
2021-08-19 20:44:42 +00:00
|
|
|
tags: microsoft,exchange,tech
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-03-04 05:15:16 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-03-03 19:09:10 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/owa/auth/logon.aspx"
|
|
|
|
|
2021-08-19 20:44:42 +00:00
|
|
|
matchers-condition: or
|
2021-03-03 19:09:10 +00:00
|
|
|
matchers:
|
2022-05-05 18:13:11 +00:00
|
|
|
- type: regex
|
|
|
|
part: header
|
|
|
|
regex:
|
|
|
|
- "(?i)(X-Owa-Version:)"
|
2021-03-04 05:15:16 +00:00
|
|
|
|
2021-03-03 19:09:10 +00:00
|
|
|
- type: regex
|
2022-05-05 18:13:11 +00:00
|
|
|
part: body
|
2021-03-03 19:09:10 +00:00
|
|
|
regex:
|
2022-05-05 18:13:11 +00:00
|
|
|
- "/owa/auth/[0-9.]+/"
|
2021-03-04 15:01:21 +00:00
|
|
|
|
2021-08-19 20:44:42 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '<title>Exchange Log In</title>'
|
|
|
|
- '<title>Microsoft Exchange - Outlook Web Access</title>'
|
|
|
|
|
2021-03-03 19:09:10 +00:00
|
|
|
extractors:
|
|
|
|
- type: kval
|
|
|
|
kval:
|
2022-05-05 18:13:11 +00:00
|
|
|
- x_owa_version
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "/owa/auth/([0-9.]+)/"
|