44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
id: ms-exchange-user-enum
|
|
|
|
info:
|
|
name: Microsoft Exchange Autodiscover - User Enumeration
|
|
author: righettod
|
|
severity: info
|
|
description: |
|
|
Microsoft Exchange (on premise) is prone to a user enumeration via the ActiveSync protocol using the AutodiscoverV2 endpoint.
|
|
reference:
|
|
- https://www.msxfaq.de/exchange/autodiscover/autodiscover_v2.htm
|
|
- https://github.com/righettod/toolbox-pentest-web/blob/master/docs/4-HINTS_ARCHIVED.md#user-enumeration-techniques-for-microsoft-exchange
|
|
classification:
|
|
cpe: cpe:2.3:a:microsoft:exchange_server:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
vendor: microsoft
|
|
product: exchange_server
|
|
shodan-query: http.title:outlook exchange
|
|
tags: ms-exchange,microsoft,misconfig,enum
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/autodiscover/autodiscover.json?Protocol=ActiveSync&Email={{rand_text_alpha(6)}}%40oast.pro&RedirectCount=1"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "/autodiscover/autodiscover.json?Email="
|
|
|
|
- type: status
|
|
status:
|
|
- 302
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: header
|
|
group: 1
|
|
regex:
|
|
- '(?i)Email=([A-Za-z0-9@%.-_]+)'
|
|
# digest: 4a0a0047304502200d0006ee68ab690e84729fdfc68f9eab2d66b563edf70015d0fae2f5a25d01930221009767904dbefcbe76aa59d4e7037505aa4083b6e74b368f53091059d80c18cb06:922c64590222798bb761d5b6d8e72950 |