Vulnerabilities > CVE-2014-6394 - Path Traversal vulnerability in multiple products

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
fedoraproject
apple
joyent
CWE-22
nessus

Summary

visionmedia send before 0.8.4 for Node.js uses a partial comparison for verifying whether a directory is within the document root, which allows remote attackers to access restricted directories, as demonstrated using "public-restricted" under a "public" directory.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2014-11289.NASL
    descriptionWhen relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory. For example, static(_dirname +
    last seen2020-03-17
    modified2014-09-29
    plugin id77934
    published2014-09-29
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/77934
    titleFedora 21 : nodejs-send-0.3.0-4.fc21 (2014-11289)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2014-11289.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(77934);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-6394");
      script_bugtraq_id(70100);
      script_xref(name:"FEDORA", value:"2014-11289");
    
      script_name(english:"Fedora 21 : nodejs-send-0.3.0-4.fc21 (2014-11289)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "When relying on the root option to restrict file access it may be
    possible for an application consumer to escape out of the restricted
    directory and access files in a similarly named directory. For
    example, static(_dirname + '/public') would allow access to _dirname +
    '/public-restricted'.
    
    https://nodesecurity.io/advisories/send-directory-traversal
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=1146063"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2014-September/139415.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?f135a7a3"
      );
      # https://nodesecurity.io/advisories/send-directory-traversal
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.npmjs.com/advisories/send-directory-traversal"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected nodejs-send package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:nodejs-send");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:21");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2014/09/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/09/29");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^21([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 21.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC21", reference:"nodejs-send-0.3.0-4.fc21")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "nodejs-send");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2014-11421.NASL
    descriptionWhen relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory. For example, static(_dirname +
    last seen2020-03-17
    modified2014-10-06
    plugin id78050
    published2014-10-06
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/78050
    titleFedora 20 : nodejs-send-0.3.0-4.fc20 (2014-11421)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2014-11421.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(78050);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-6394");
      script_bugtraq_id(70100);
      script_xref(name:"FEDORA", value:"2014-11421");
    
      script_name(english:"Fedora 20 : nodejs-send-0.3.0-4.fc20 (2014-11421)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "When relying on the root option to restrict file access it may be
    possible for an application consumer to escape out of the restricted
    directory and access files in a similarly named directory. For
    example, static(_dirname + '/public') would allow access to _dirname +
    '/public-restricted'.
    
    https://nodesecurity.io/advisories/send-directory-traversal
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=1146063"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2014-October/140020.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?9c152695"
      );
      # https://nodesecurity.io/advisories/send-directory-traversal
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.npmjs.com/advisories/send-directory-traversal"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected nodejs-send package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:nodejs-send");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:20");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2014/09/25");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/10/06");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^20([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 20.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC20", reference:"nodejs-send-0.3.0-4.fc20")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "nodejs-send");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2014-11495.NASL
    descriptionWhen relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory. For example, static(_dirname +
    last seen2020-03-17
    modified2014-10-06
    plugin id78052
    published2014-10-06
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/78052
    titleFedora 19 : nodejs-send-0.3.0-4.fc19 (2014-11495)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2014-11495.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(78052);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-6394");
      script_bugtraq_id(70100);
      script_xref(name:"FEDORA", value:"2014-11495");
    
      script_name(english:"Fedora 19 : nodejs-send-0.3.0-4.fc19 (2014-11495)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "When relying on the root option to restrict file access it may be
    possible for an application consumer to escape out of the restricted
    directory and access files in a similarly named directory. For
    example, static(_dirname + '/public') would allow access to _dirname +
    '/public-restricted'.
    
    https://nodesecurity.io/advisories/send-directory-traversal
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=1146063"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2014-October/139938.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?57bf6cc5"
      );
      # https://nodesecurity.io/advisories/send-directory-traversal
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.npmjs.com/advisories/send-directory-traversal"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected nodejs-send package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:nodejs-send");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2014/09/25");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/10/06");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^19([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 19.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC19", reference:"nodejs-send-0.3.0-4.fc19")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "nodejs-send");
    }
    
  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_XCODE_7_0.NASL
    descriptionThe version of Apple Xcode installed on the remote Mac OS X host is prior to 7.0. It is, therefore, affected by the multiple vulnerabilities : - A memory leak issue exists in file d1_srtp.c related to the DTLS SRTP extension handling and specially crafted handshake messages. An attacker can exploit this to cause denial of service condition. (CVE-2014-3513) - A man-in-the-middle (MitM) information disclosure vulnerability, known as POODLE, exists due to the way SSL 3.0 handles padding bytes when decrypting messages encrypted using block ciphers in cipher block chaining (CBC) mode. A MitM attacker can decrypt a selected byte of a cipher text in as few as 256 tries if they are able to force a victim application to repeatedly send the same data over newly created SSL 3.0 connections. (CVE-2014-3566) - A memory leak issue exists in file t1_lib.c related to session ticket handling. An attacker can exploit this to cause denial of service condition. (CVE-2014-3567) - An error exists related to the build configuration process and the
    last seen2020-05-06
    modified2015-10-02
    plugin id86245
    published2015-10-02
    reporterThis script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/86245
    titleApple Xcode < 7.0 (Mac OS X) (POODLE)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include('compat.inc');
    
    if (description)
    {
      script_id(86245);
      script_version("1.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/05");
    
      script_cve_id(
        "CVE-2014-3513",
        "CVE-2014-3566",
        "CVE-2014-3567",
        "CVE-2014-3568",
        "CVE-2014-6394",
        "CVE-2015-0248",
        "CVE-2015-0251",
        "CVE-2015-3185",
        "CVE-2015-5909",
        "CVE-2015-5910"
      );
      script_bugtraq_id(
        70100,
        70574,
        70584,
        70585,
        70586,
        74259,
        74260,
        75965
      );
      script_xref(name:"APPLE-SA", value:"APPLE-SA-2015-09-16-2");
      script_xref(name:"CERT", value:"577193");
    
      script_name(english:"Apple Xcode < 7.0 (Mac OS X) (POODLE)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote Mac OS X host has an application installed that is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The version of Apple Xcode installed on the remote Mac OS X host is
    prior to 7.0. It is, therefore, affected by the multiple
    vulnerabilities :
    
      - A memory leak issue exists in file d1_srtp.c related to
        the DTLS SRTP extension handling and specially crafted
        handshake messages. An attacker can exploit this to 
        cause denial of service condition. (CVE-2014-3513)
    
      - A man-in-the-middle (MitM) information disclosure
        vulnerability, known as POODLE, exists due to the way
        SSL 3.0 handles padding bytes when decrypting messages
        encrypted using block ciphers in cipher block chaining
        (CBC) mode. A MitM attacker can decrypt a selected byte
        of a cipher text in as few as 256 tries if they are able
        to force a victim application to repeatedly send the
        same data over newly created SSL 3.0 connections.
        (CVE-2014-3566)
    
      - A memory leak issue exists in file t1_lib.c related to
        session ticket handling. An attacker can exploit this to 
        cause denial of service condition. (CVE-2014-3567)
    
      - An error exists related to the build configuration
        process and the 'no-ssl3' build option that allows
        servers and clients to process insecure SSL 3.0
        handshake messages. (CVE-2014-3568)
    
      - A directory traversal vulnerability exists in send.js
        due to improper sanitization of user-supplied input.
        A remote, unauthenticated attacker can exploit this, via
        a specially crafted request, to access arbitrary files
        outside of the restricted path. (CVE-2014-6394)
    
      - A denial of service vulnerability exists in the
        mod_dav_svn and svnserve servers of Apache Subversion. A
        remote, unauthenticated attacker can exploit this, via a
        crafted combination of parameters, to cause the current
        process to abort through a failed assertion.
        (CVE-2015-0248)
    
      - A flaw exists in the mod_dav_svn server of Apache
        Subversion. A remote, authenticated attacker can exploit
        this, via a crafted HTTP request sequence, to spoof an
        'svn:author' property value. (CVE-2015-0251)
    
      - A flaw exists in the Apache HTTP Server due to the
        ap_some_auth_required() function in file request.c not
        properly handling Require directive associations. A
        remote, unauthenticated attacker can exploit this to
        bypass access restrictions, by leveraging a module that
        relies on the 2.2 API behavior. (CVE-2015-3185)
    
      - A flaw exists in the IDE Xcode server due to improper
        restriction of access to the repository email lists. A
        remote, unauthenticated attacker can exploit this to
        access sensitive build information, by leveraging
        incorrect notification delivery. (CVE-2015-5909)
    
      - A flaw exists in the IDE Xcode server due to the
        transmission of server information in cleartext. A
        remote, man-in-the-middle attacker can exploit this to
        access sensitive information. (CVE-2015-5910)");
      script_set_attribute(attribute:"see_also", value:"https://support.apple.com/en-ca/HT205217");
      # http://lists.apple.com/archives/security-announce/2015/Sep/msg00002.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9042c568");
      script_set_attribute(attribute:"see_also", value:"https://www.imperialviolet.org/2014/10/14/poodle.html");
      script_set_attribute(attribute:"see_also", value:"https://www.openssl.org/~bodo/ssl-poodle.pdf");
      script_set_attribute(attribute:"see_also", value:"https://tools.ietf.org/html/draft-ietf-tls-downgrade-scsv-00");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to Apple Xcode version 7.0, which is available for OS X version 10.10.4 (Yosemite) or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2014-6394");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"vuln_publication_date",value:"2014/10/14");
      script_set_attribute(attribute:"patch_publication_date",value:"2015/09/16");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/10/02");
    
      script_set_attribute(attribute:"plugin_type",value:"local");
      script_set_attribute(attribute:"cpe",value:"cpe:/a:apple:xcode");
      script_set_attribute(attribute:"in_the_news", value:"true");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"MacOS X Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("macosx_xcode_installed.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version", "installed_sw/Apple Xcode");
    
      exit(0);
    }
    
    include('vcf.inc');
    
    get_kb_item_or_exit('Host/local_checks_enabled');
    
    os = get_kb_item('Host/MacOSX/Version');
    if (empty_or_null(os))
      audit(AUDIT_OS_NOT, 'macOS or Mac OS X');
    
    app_info = vcf::get_app_info(app:'Apple Xcode');
    
    constraints = [
      { 'fixed_version' : '7.0' }
    ];
    
    vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);