Lucene search
K

Microsoft Office - 'Composite Moniker Remote Code Execution

🗓️ 09 Jan 2018 00:00:00Reported by Rich WarrenType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 275 Views

Microsoft Office - 'Composite Moniker Remote Code Execution. Proof of Concept exploit for CVE-2017-8570, demonstrating the Packager.dll file-dropping trick and Yara rule for detection

Related
Code
ReporterTitlePublishedViews
Family
Gitee
Exploit for CVE-2017-8570
17 Aug 201707:56
gitee
Gitee
Exploit for CVE-2017-8570
27 Mar 201817:36
gitee
Gitee
Exploit for CVE-2017-8570
27 Mar 201817:12
gitee
Gitee
Exploit for CVE-2017-8570
29 Aug 201717:54
gitee
0day.today
Microsoft Office - Composite Moniker Remote Code Execution Exploit
9 Mar 201800:00
zdt
GithubExploit
Exploit for CVE-2017-8570
9 Jan 201819:09
githubexploit
GithubExploit
Exploit for CVE-2017-8570
24 Jul 201718:35
githubexploit
GithubExploit
Exploit for CVE-2017-8570
13 Aug 201702:37
githubexploit
GithubExploit
Exploit for CVE-2017-8570
8 Apr 201810:07
githubexploit
GithubExploit
Exploit for Code Injection in Microsoft
13 Sep 201715:24
githubexploit
Rows per page
## What?

This repo contains a Proof of Concept exploit for CVE-2017-8570, a.k.a the "Composite Moniker" vulnerability. This demonstrates using the Packager.dll trick to drop an sct file into the %TEMP% directory, and then execute it using the primitive that the vulnerability provides.

Download: https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/44263.zip

## Why?

A few reasons.

1. I wanted to see if it was possible to use the [Packager.dll file-dropping trick](https://securingtomorrow.mcafee.com/mcafee-labs/dropping-files-temp-folder-raises-security-concerns/) to exploit this vulnerability.
2. As far as I'm aware, all other public exploits for CVE-2017-8570 are actually exploiting the "Script Moniker" variant of CVE-2017-0199 and are not actually composite moniker exploits.
3. Raise awareness of exploitation techniques used in the wild, and help defenders to detect exploitation attempts.

## How to run

Simply run the script, providing an Sct file to execute, and an output name for your RTF file:

    python packager_composite_moniker.py -s calc.sct -o example.rtf
    [+] RTF file written to: example.rtf


## Detection

I have included a Yara rule to detect attempts to exploit this vulnerability via RTF.

## References

- https://justhaifei1.blogspot.co.uk/2017/07/bypassing-microsofts-cve-2017-0199-patch.html
- https://securingtomorrow.mcafee.com/mcafee-labs/dropping-files-temp-folder-raises-security-concerns/
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8570

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

09 Jan 2018 00:00Current
8.2High risk
Vulners AI Score8.2
CVSS 3.17.8
CVSS 29.3
EPSS0.94216
SSVC
275