Exploit database

Vulnerability

CVE-2017-1000117

Vulnerability details

Score
8.8
Severity
high

CVSS 3.0 · NVD

Vector string

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL can result in any program that exists on the victim's machine being executed. Such a URL could be placed in the .gitmodules file of a malicious project, and an unsuspecting victim could be tricked into running "git clone --recurse-submodules" to trigger the vulnerability.

CVE Program

Exploit source choices

3 sources
Malicious Git HTTP Server For CVE-2017-1000117
MSF-multi--http--git_submodule_command_execMetasploitUnix / remote

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.

2017-08-10git_submodule_command_exec.rb
chu1337/cve-2017-1000117
GH-826865cb009af47ffe1372537e504dd6GitHubUnofficial GitHub source

chu1337/cve-2017-1000117 source repository

2017-12-033 files · 0 stars