支持本站 — 捐款将帮助我们持续运营

目标:1000 元,已筹:752

75.2%

POC详情: ae77a2cfe5e44228014c43c755a809fb86979d25

来源
关联漏洞
标题:Microsoft Exchange Server 代码问题漏洞 (CVE-2021-26855)
描述:Microsoft Exchange Server是美国微软(Microsoft)公司的一套电子邮件服务程序。它提供邮件存取、储存、转发,语音邮件,邮件过滤筛选等功能。 Microsoft Exchange Server 安全漏洞。攻击者可构造恶意HTTP请求,并通过Exchange Server进行身份验证。进而扫描内网,获取用户敏感信息。以下产品和版本受到影响:Microsoft Exchange Server 2013 Cumulative Update 23,Microsoft Exchange
描述
PoC exploit code for CVE-2021-26855
介绍
# CVE-2021-26855-PoC
PoC exploit code for CVE-2021-26855. 

Original code was developed by https://github.com/GreyOrder. 

----------
CVE-2021-26855 ssrf simple use of golang exercises
Affected version

    Exchange Server 2013 is less than CU23
    Exchange Server 2016 is less than CU18
    Exchange Server 2019 is less than CU7

Conditions of use

This vulnerability is different from previous exchange vulnerabilities. This vulnerability does not require a user identity that can log in. It can obtain internal user resources without authorization. It can be used with CVE-2021-27065 to implement remote command execution.

Vulnerability trigger requirements

    Vulnerability in the target server
    The target exchange server must be a load balancing server, that is, two or more servers are used at the same time
    The target email address. Note that the address needs to be an email address in the domain instead of an email address. There is a difference between the two. After testing, it is not the case, as long as it is the correct email address, except in special circumstances
    The attacker must also identify the Fully Qualified Domain Name (FQDN) of the internal Exchange server. In fact, only the server host name is required, because the host name can be resolved within the domain.

Among the above four items, FQDN can be captured by ntlm type2 message; email addresses can be directly enumerated. An additional explanation for FQDN, because I only use ntlm type2 to capture system information, the FQDN obtained by the tool by default is the currently accessed machine, so the vulnerability cannot be directly triggered. You need to manually judge based on the FQDN name and use -n to replace other exchanges. Server host name.
Instructions for use

To exploit this vulnerability, it is more convenient to use a scripting language such as ruby ​​python. It is written in golang to learn golang, so this small tool can only be regarded as a semi-finished product and will be updated when there is time.

This tool currently supports the following functions:

    Vulnerability detection (just simply check whether it can be hit, and it cannot be used for detection)
    User enumeration
    Simple mail id and subject reading
    Mail download (upgraded, now a standard eml file)
    Read the contacts saved by the user (note that it is not global, only the contacts saved by the target)
    Folder specified, not arbitrary, please refer to https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/distinguishedfolderid for details

For other uses, please modify the xml content yourself.

usage:

go run CVE-2021-26855-PoC.go -h <target ip>

  -h string required, target address or domain name
  
  -U string Optional, need to enumerate user list
  
  -d optional, download mail
  
  -l Optional, list the mailing list
  
  -n string is optional, you need to specify FQND to fill in
  
  -t string Optional, request delay time (default "1")
  
  -u string Optional, specify the target (default "administrator")
  
  -c is optional, read the contacts saved by the current user, not all
  
  -f string Optional, specify the folder to view (default "inbox")
文件快照

[4.0K] /data/pocs/ae77a2cfe5e44228014c43c755a809fb86979d25 ├── [ 14K] CVE-2021-26855-PoC.go └── [3.1K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。