2023-11-16 11:14:28 +00:00
|
|
|
id: ms-exchange-user-enum
|
2023-11-10 11:15:56 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Microsoft Exchange Autodiscover - User Enumeration
|
|
|
|
author: righettod
|
|
|
|
severity: info
|
2023-11-12 10:54:07 +00:00
|
|
|
description: |
|
|
|
|
Microsoft Exchange (on premise) is prone to a user enumeration via the ActiveSync protocol using the AutodiscoverV2 endpoint.
|
2023-11-10 11:15:56 +00:00
|
|
|
reference:
|
|
|
|
- https://www.msxfaq.de/exchange/autodiscover/autodiscover_v2.htm
|
2023-11-12 10:54:07 +00:00
|
|
|
- https://github.com/righettod/toolbox-pentest-web/blob/master/docs/4-HINTS_ARCHIVED.md#user-enumeration-techniques-for-microsoft-exchange
|
2023-11-10 11:15:56 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-11-12 10:54:07 +00:00
|
|
|
verified: true
|
|
|
|
shodan-query: http.title:outlook exchange
|
|
|
|
tags: ms-exchange,microsoft,misconfig,enum
|
2023-11-10 11:15:56 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2023-11-12 10:54:07 +00:00
|
|
|
- "{{BaseURL}}/autodiscover/autodiscover.json?Protocol=ActiveSync&Email={{rand_text_alpha(6)}}%40oast.pro&RedirectCount=1"
|
2023-11-10 11:15:56 +00:00
|
|
|
|
|
|
|
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@%.-]+)'
|
2023-11-16 11:20:36 +00:00
|
|
|
# digest: 4a0a004730450220157a8246cb8b744f75657d89aab28e8396568f5ba1a3d6c8df45c25b02ba702e022100e7dad779c33286d39fa72a325c65a68f87d8433d566bf41f8bfcd817abb67b9d:922c64590222798bb761d5b6d8e72950
|