CVE Vulnerabilities

CVE-2017-1000117

URL Redirection to Untrusted Site ('Open Redirect')

Published: Oct 05, 2017 | Modified: Nov 07, 2023
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
6.3 IMPORTANT
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM

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 victims 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.

Weakness

A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks.

Affected Software

Name Vendor Start Version End Version
Git Git-scm * 2.7.5 (including)
Git Git-scm 2.8.0 (including) 2.8.0 (including)
Git Git-scm 2.8.0-rc0 (including) 2.8.0-rc0 (including)
Git Git-scm 2.8.0-rc1 (including) 2.8.0-rc1 (including)
Git Git-scm 2.8.0-rc2 (including) 2.8.0-rc2 (including)
Git Git-scm 2.8.0-rc3 (including) 2.8.0-rc3 (including)
Git Git-scm 2.8.1 (including) 2.8.1 (including)
Git Git-scm 2.8.2 (including) 2.8.2 (including)
Git Git-scm 2.8.3 (including) 2.8.3 (including)
Git Git-scm 2.8.4 (including) 2.8.4 (including)
Git Git-scm 2.8.5 (including) 2.8.5 (including)
Git Git-scm 2.9.0 (including) 2.9.0 (including)
Git Git-scm 2.9.0-rc0 (including) 2.9.0-rc0 (including)
Git Git-scm 2.9.0-rc1 (including) 2.9.0-rc1 (including)
Git Git-scm 2.9.0-rc2 (including) 2.9.0-rc2 (including)
Git Git-scm 2.9.1 (including) 2.9.1 (including)
Git Git-scm 2.9.2 (including) 2.9.2 (including)
Git Git-scm 2.9.3 (including) 2.9.3 (including)
Git Git-scm 2.9.4 (including) 2.9.4 (including)
Git Git-scm 2.10.0 (including) 2.10.0 (including)
Git Git-scm 2.10.0-rc0 (including) 2.10.0-rc0 (including)
Git Git-scm 2.10.0-rc1 (including) 2.10.0-rc1 (including)
Git Git-scm 2.10.0-rc2 (including) 2.10.0-rc2 (including)
Git Git-scm 2.10.1 (including) 2.10.1 (including)
Git Git-scm 2.10.2 (including) 2.10.2 (including)
Git Git-scm 2.10.3 (including) 2.10.3 (including)
Git Git-scm 2.11.0 (including) 2.11.0 (including)
Git Git-scm 2.11.0-rc0 (including) 2.11.0-rc0 (including)
Git Git-scm 2.11.0-rc1 (including) 2.11.0-rc1 (including)
Git Git-scm 2.11.0-rc2 (including) 2.11.0-rc2 (including)
Git Git-scm 2.11.0-rc3 (including) 2.11.0-rc3 (including)
Git Git-scm 2.11.1 (including) 2.11.1 (including)
Git Git-scm 2.11.2 (including) 2.11.2 (including)
Git Git-scm 2.12.0 (including) 2.12.0 (including)
Git Git-scm 2.12.0-rc0 (including) 2.12.0-rc0 (including)
Git Git-scm 2.12.0-rc1 (including) 2.12.0-rc1 (including)
Git Git-scm 2.12.0-rc2 (including) 2.12.0-rc2 (including)
Git Git-scm 2.12.1 (including) 2.12.1 (including)
Git Git-scm 2.12.2 (including) 2.12.2 (including)
Git Git-scm 2.12.3 (including) 2.12.3 (including)
Git Git-scm 2.13.0 (including) 2.13.0 (including)
Git Git-scm 2.13.0-rc0 (including) 2.13.0-rc0 (including)
Git Git-scm 2.13.0-rc1 (including) 2.13.0-rc1 (including)
Git Git-scm 2.13.0-rc2 (including) 2.13.0-rc2 (including)
Git Git-scm 2.13.1 (including) 2.13.1 (including)
Git Git-scm 2.13.2 (including) 2.13.2 (including)
Git Git-scm 2.13.3 (including) 2.13.3 (including)
Git Git-scm 2.13.4 (including) 2.13.4 (including)
Git Git-scm 2.14.0 (including) 2.14.0 (including)
Git Git-scm 2.14.0-rc0 (including) 2.14.0-rc0 (including)
Git Git-scm 2.14.0-rc1 (including) 2.14.0-rc1 (including)
Red Hat Enterprise Linux 6 RedHat git-0:1.7.1-9.el6_9 *
Red Hat Enterprise Linux 7 RedHat git-0:1.8.3.1-12.el7_4 *
Red Hat Mobile Application Platform 4.5 RedHat fh-system-dump-tool-0:1.0.0-5.el7 *
Red Hat Mobile Application Platform 4.5 RedHat fping-0:3.10-4.el7map *
Red Hat Mobile Application Platform 4.5 RedHat nagios-0:4.0.8-8.el7map *
Red Hat Mobile Application Platform 4.5 RedHat nagios-plugins-0:2.0.3-3.el7map *
Red Hat Mobile Application Platform 4.5 RedHat perl-Crypt-CBC-0:2.33-2.el7map *
Red Hat Mobile Application Platform 4.5 RedHat perl-Crypt-DES-0:2.05-20.el7map *
Red Hat Mobile Application Platform 4.5 RedHat perl-Net-SNMP-0:6.0.1-7.el7map *
Red Hat Mobile Application Platform 4.5 RedHat phantomjs-0:1.9.7-3.el7map *
Red Hat Mobile Application Platform 4.5 RedHat python-meld3-0:0.6.10-1.el7map *
Red Hat Mobile Application Platform 4.5 RedHat qstat-0:2.11-13.20080912svn311.el7map *
Red Hat Mobile Application Platform 4.5 RedHat radiusclient-ng-0:0.5.6-9.el7map *
Red Hat Mobile Application Platform 4.5 RedHat redis-0:2.8.21-2.el7map *
Red Hat Mobile Application Platform 4.5 RedHat rhmap-fh-openshift-templates-0:4.5.0-11.el7 *
Red Hat Mobile Application Platform 4.5 RedHat rhmap-mod_authnz_external-0:3.3.1-7.el7map *
Red Hat Mobile Application Platform 4.5 RedHat sendEmail-0:1.56-2.el7 *
Red Hat Mobile Application Platform 4.5 RedHat ssmtp-0:2.64-14.el7map *
Red Hat Mobile Application Platform 4.5 RedHat supervisor-0:3.1.3-3.el7map *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-git29-git-0:2.9.3-3.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-git29-git-0:2.9.3-3.el7 *
Git Ubuntu devel *
Git Ubuntu trusty *
Git Ubuntu xenial *
Git Ubuntu zesty *

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • Use a list of approved URLs or domains to be used for redirection.
  • When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.
  • For example, ID 1 could map to “/login.asp” and ID 2 could map to “http://www.example.com/". Features such as the ESAPI AccessReferenceMap [REF-45] provide this capability.
  • Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls.
  • Many open redirect problems occur because the programmer assumed that certain inputs could not be modified, such as cookies and hidden form fields.

References