Rapid7 Vulnerability & Exploit Database

Malicious Git HTTP Server For CVE-2017-1000117

Back to Search

Malicious Git HTTP Server For CVE-2017-1000117

Disclosed
08/10/2017
Created
05/30/2018

Description

This module exploits CVE-2017-1000117, which affects Git version 2.7.5 and lower. A submodule of the form 'ssh://' can be passed parameters from the username incorrectly. This can be used to inject commands to the operating system when the submodule is cloned. This module creates a fake git repository which contains a submodule containing the vulnerability. The vulnerability is triggered when the submodules are initialised.

Author(s)

  • timwr

Development

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/multi/http/git_submodule_command_exec
msf exploit(git_submodule_command_exec) > show targets
    ...targets...
msf exploit(git_submodule_command_exec) > set TARGET < target-id >
msf exploit(git_submodule_command_exec) > show options
    ...show and set options...
msf exploit(git_submodule_command_exec) > 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

;