Rapid7 Vulnerability & Exploit Database

Microsoft Windows Contact File Format Arbitary Code Execution

Back to Search

Microsoft Windows Contact File Format Arbitary Code Execution

Disclosed
01/17/2019
Created
04/22/2019

Description

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Microsoft Windows. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The flaw is due to the processing of ".contact" files node param which takes an expected website value, however if an attacker references an executable file it will run that instead without warning instead of performing expected web navigation. This is dangerous and would be unexpected to an end user. Executable files can live in a sub-directory so when the ".contact" website link is clicked it traverses directories towards the executable and runs. Making matters worse is if the the files are compressed then downloaded "mark of the web" (MOTW) may potentially not work as expected with certain archive utilitys. The ".\" chars allow directory traversal to occur in order to run the attackers supplied executable sitting unseen in the attackers directory. This advisory is a duplicate issue that currently affects Windows .VCF files, and released for the sake of completeness as it affects Windows .contact files as well.

Author(s)

  • John Page (aka hyp3rlinx)
  • Brenner Little

Platform

Windows

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/fileformat/microsoft_windows_contact
msf exploit(microsoft_windows_contact) > show targets
    ...targets...
msf exploit(microsoft_windows_contact) > set TARGET < target-id >
msf exploit(microsoft_windows_contact) > show options
    ...show and set options...
msf exploit(microsoft_windows_contact) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;