Vulnerabilities > CVE-2016-3105 - Improper Access Control vulnerability in multiple products

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL

Summary

The convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git repository name.

Vulnerable Configurations

Part Description Count
OS
Debian
1
Application
Mercurial
83

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.

Nessus

  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_78ABC0220FEE11E69A1C0014A5A57822.NASL
    descriptionMercurial reports : CVE-2016-3105: Arbitrary code execution when converting Git repos
    last seen2020-06-01
    modified2020-06-02
    plugin id90845
    published2016-05-03
    reporterThis script is Copyright (C) 2016-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/90845
    titleFreeBSD : mercurial -- arbitrary code execution vulnerability (78abc022-0fee-11e6-9a1c-0014a5a57822)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-459.NASL
    descriptionBlake Burkhart discovered an arbitrary code execution flaw in Mercurial, a distributed version control system, when using the convert extension on Git repositories with specially crafted names. This flaw in particular affects automated code conversion services that allow arbitrary repository names. Patches are taken from the Jessie version. NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2016-05-09
    plugin id90943
    published2016-05-09
    reporterThis script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/90943
    titleDebian DLA-459-1 : mercurial security update
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2016-0011_MERCURIAL.NASL
    descriptionAn update of the mercurial package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121646
    published2019-02-07
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121646
    titlePhoton OS 1.0: Mercurial PHSA-2016-0011
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2016-609.NASL
    descriptionThis update for mercurial fixes the following issues : Security issue fixed : - CVE-2016-3105: Fixed arbitrary code execution whenusing the convert extension on Git repo. (boo#978391)
    last seen2020-06-05
    modified2016-05-20
    plugin id91279
    published2016-05-20
    reporterThis script is Copyright (C) 2016-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/91279
    titleopenSUSE Security Update : mercurial (openSUSE-2016-609)
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2016-123-01.NASL
    descriptionNew mercurial packages are available for Slackware 13.0, 13.1, 13.37, 14.0, 14.1, and -current to fix a security issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id90836
    published2016-05-03
    reporterThis script is Copyright (C) 2016 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/90836
    titleSlackware 13.0 / 13.1 / 13.37 / 14.0 / 14.1 / current : mercurial (SSA:2016-123-01)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-3570.NASL
    descriptionBlake Burkhart discovered an arbitrary code execution flaw in Mercurial, a distributed version control system, when using the convert extension on Git repositories with specially crafted names. This flaw in particular affects automated code conversion services that allow arbitrary repository names.
    last seen2020-06-01
    modified2020-06-02
    plugin id90929
    published2016-05-06
    reporterThis script is Copyright (C) 2016-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/90929
    titleDebian DSA-3570-1 : mercurial - security update
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201612-19.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201612-19 (Mercurial: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Mercurial. Please review the CVE identifier and bug reports referenced for details. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process. Workaround : There is no known workaround at this time.
    last seen2020-03-18
    modified2016-12-07
    plugin id95605
    published2016-12-07
    reporterThis script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95605
    titleGLSA-201612-19 : Mercurial: Multiple vulnerabilities
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2016-0011.NASL
    descriptionAn update of [apache-tomcat,mercurial] packages for PhotonOS has been released.
    last seen2019-02-21
    modified2019-02-07
    plugin id111845
    published2018-08-17
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=111845
    titlePhoton OS 1.0: Apache / Mercurial PHSA-2016-0011 (deprecated)