Vulnerabilities > CVE-2006-3619 - Directory Traversal vulnerability in Fastjar 0.93

047910
CVSS 2.6 - LOW
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
high complexity
fastjar
nessus

Summary

Directory traversal vulnerability in FastJar 0.93, as used in Gnu GCC 4.1.1 and earlier, and 3.4.6 and earlier, allows user-assisted attackers to overwrite arbitrary files via a .jar file containing filenames with "../" sequences.

Vulnerable Configurations

Part Description Count
Application
Fastjar
1

Nessus

  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2007-0473.NASL
    descriptionFrom Red Hat Security Advisory 2007:0473 : Updated gcc packages that fix a security issue and another bug are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix a reload internal compiler error with -fnon-call-exceptions option. All users of gcc should upgrade to these updated packages, which resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id67519
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67519
    titleOracle Linux 3 : gcc (ELSA-2007-0473)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Red Hat Security Advisory RHSA-2007:0473 and 
    # Oracle Linux Security Advisory ELSA-2007-0473 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67519);
      script_version("1.9");
      script_cvs_date("Date: 2019/10/25 13:36:06");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"RHSA", value:"2007:0473");
    
      script_name(english:"Oracle Linux 3 : gcc (ELSA-2007-0473)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Oracle Linux host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "From Red Hat Security Advisory 2007:0473 :
    
    Updated gcc packages that fix a security issue and another bug are now
    available.
    
    This update has been rated as having moderate security impact by the
    Red Hat Security Response Team.
    
    The gcc packages include C, C++, Java, Fortran 77, Objective C, and
    Ada 95 GNU compilers and related support libraries.
    
    Jurgen Weigert discovered a directory traversal flaw in fastjar. An
    attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)
    
    These updated packages also fix a reload internal compiler error with
    -fnon-call-exceptions option.
    
    All users of gcc should upgrade to these updated packages, which
    resolve these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2007-June/000183.html"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected gcc packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
      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:oracle:linux:cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-g77");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libf2c");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcj");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcj-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libobjc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libstdc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libstdc++-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:3");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/06/20");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Oracle Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "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);
    if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux");
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux");
    os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^3([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 3", "Oracle Linux " + 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 && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu);
    
    flag = 0;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"cpp-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"cpp-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-c++-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-c++-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-g77-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-g77-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-gnat-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-gnat-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-java-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-java-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"gcc-objc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"gcc-objc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libf2c-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libf2c-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libgcc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libgcc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libgcj-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libgcj-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libgcj-devel-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libgcj-devel-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libgnat-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libgnat-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libobjc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libobjc-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libstdc++-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libstdc++-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"libstdc++-devel-3.2.3-59")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"libstdc++-devel-3.2.3-59")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get());
      else security_note(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cpp / gcc / gcc-c++ / gcc-g77 / gcc-gnat / gcc-java / gcc-objc / etc");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20070501_GCC_ON_SL4.NASL
    descriptionJ&uuml;rgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619)
    last seen2020-06-01
    modified2020-06-02
    plugin id60164
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60164
    titleScientific Linux Security Update : gcc on SL4 i386/x86_64
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(60164);
      script_version("1.4");
      script_cvs_date("Date: 2019/10/25 13:36:16");
    
      script_cve_id("CVE-2006-3619");
    
      script_name(english:"Scientific Linux Security Update : gcc on SL4 i386/x86_64");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Scientific Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "J&uuml;rgen Weigert discovered a directory traversal flaw in fastjar.
    An attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)"
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind0705&L=scientific-linux-errata&T=0&P=307
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?f93df7b5"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/01");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/01");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Scientific Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "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) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
    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 (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"SL4", reference:"cpp-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-c++-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-g77-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-gnat-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-java-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"gcc-objc-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libf2c-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libgcc-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libgcj-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libgcj-devel-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libgnat-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libobjc-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libstdc++-3.4.6-8")) flag++;
    if (rpm_check(release:"SL4", reference:"libstdc++-devel-3.4.6-8")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get());
      else security_note(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2007-0220.NASL
    descriptionFrom Red Hat Security Advisory 2007:0220 : Updated gcc packages that fix a security issue and various bugs are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix several bugs, including : * two debug information generator bugs * two internal compiler errors In addition to this, protoize.1 and unprotoize.1 manual pages have been added to the package and __cxa_get_exception_ptr@@CXXABI_1.3.1 symbol has been added into libstdc++.so.6. For full details regarding all fixed bugs, refer to the package changelog as well as the specified list of bug reports from bugzilla. All users of gcc should upgrade to these updated packages, which contain backported patches to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id67475
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67475
    titleOracle Linux 4 : gcc (ELSA-2007-0220)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Red Hat Security Advisory RHSA-2007:0220 and 
    # Oracle Linux Security Advisory ELSA-2007-0220 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67475);
      script_version("1.7");
      script_cvs_date("Date: 2019/10/25 13:36:06");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"RHSA", value:"2007:0220");
    
      script_name(english:"Oracle Linux 4 : gcc (ELSA-2007-0220)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Oracle Linux host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "From Red Hat Security Advisory 2007:0220 :
    
    Updated gcc packages that fix a security issue and various bugs are
    now available.
    
    This update has been rated as having moderate security impact by the
    Red Hat Security Response Team.
    
    The gcc packages include C, C++, Java, Fortran 77, Objective C, and
    Ada 95 GNU compilers and related support libraries.
    
    Jurgen Weigert discovered a directory traversal flaw in fastjar. An
    attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)
    
    These updated packages also fix several bugs, including :
    
    * two debug information generator bugs
    
    * two internal compiler errors
    
    In addition to this, protoize.1 and unprotoize.1 manual pages have
    been added to the package and __cxa_get_exception_ptr@@CXXABI_1.3.1
    symbol has been added into libstdc++.so.6.
    
    For full details regarding all fixed bugs, refer to the package
    changelog as well as the specified list of bug reports from bugzilla.
    
    All users of gcc should upgrade to these updated packages, which
    contain backported patches to resolve these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2007-May/000153.html"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected gcc packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-g77");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libf2c");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcj");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgcj-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libgnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libobjc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libstdc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:libstdc++-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:4");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Oracle Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "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);
    if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux");
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux");
    os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^4([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 4", "Oracle Linux " + 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 && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu);
    
    flag = 0;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"cpp-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"cpp-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-c++-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-c++-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-g77-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-g77-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-gnat-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-gnat-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-java-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-java-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"gcc-objc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"gcc-objc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libf2c-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libf2c-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libgcc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libgcc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libgcj-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libgcj-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libgcj-devel-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libgcj-devel-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libgnat-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libgnat-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libobjc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libobjc-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libstdc++-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libstdc++-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"libstdc++-devel-3.4.6-8.0.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"libstdc++-devel-3.4.6-8.0.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get());
      else security_note(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cpp / gcc / gcc-c++ / gcc-g77 / gcc-gnat / gcc-java / gcc-objc / etc");
    }
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2010-122.NASL
    descriptionA vulnerability has been discovered and corrected in fastjar : Directory traversal vulnerability in the extract_jar function in jartool.c in FastJar 0.98 allows remote attackers to create or overwrite arbitrary files via a .. (dot dot) in a non-initial pathname component in a filename within a .jar archive, a related issue to CVE-2005-1080. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-3619 (CVE-2010-0831). Packages for 2008.0 and 2009.0 are provided as of the Extended Maintenance Program. Please visit this link to learn more: http://store.mandriva.com/product_info.php?cPath=149&amp;products_id=4 90 The updated packages have been patched to correct this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id47116
    published2010-06-23
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/47116
    titleMandriva Linux Security Advisory : fastjar (MDVSA-2010:122)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2010:122. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(47116);
      script_version("1.14");
      script_cvs_date("Date: 2019/08/02 13:32:53");
    
      script_cve_id("CVE-2010-0831");
      script_bugtraq_id(41006);
      script_xref(name:"MDVSA", value:"2010:122");
    
      script_name(english:"Mandriva Linux Security Advisory : fastjar (MDVSA-2010:122)");
      script_summary(english:"Checks rpm output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Mandriva Linux host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A vulnerability has been discovered and corrected in fastjar :
    
    Directory traversal vulnerability in the extract_jar function in
    jartool.c in FastJar 0.98 allows remote attackers to create or
    overwrite arbitrary files via a .. (dot dot) in a non-initial pathname
    component in a filename within a .jar archive, a related issue to
    CVE-2005-1080. NOTE: this vulnerability exists because of an
    incomplete fix for CVE-2006-3619 (CVE-2010-0831).
    
    Packages for 2008.0 and 2009.0 are provided as of the Extended
    Maintenance Program. Please visit this link to learn more:
    http://store.mandriva.com/product_info.php?cPath=149&amp;products_id=4
    90
    
    The updated packages have been patched to correct this issue."
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected fastjar package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:ND");
      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:mandriva:linux:fastjar");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2008.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2009.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2009.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2010.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2010/06/22");
      script_set_attribute(attribute:"plugin_publication_date", value:"2010/06/23");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/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);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2008.0", reference:"fastjar-0.95-1.1mdv2008.0", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2009.0", reference:"fastjar-0.95-3.1mdv2009.0", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2009.1", reference:"fastjar-0.97-1.1mdv2009.1", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2010.0", reference:"fastjar-0.98-1.1mdv2010.0", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1170.NASL
    descriptionJurgen Weigert discovered that upon unpacking JAR archives fastjar from the GNU Compiler Collection does not check the path for included files and allows to create or overwrite files in upper directories.
    last seen2020-06-01
    modified2020-06-02
    plugin id22712
    published2006-10-14
    reporterThis script is Copyright (C) 2006-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/22712
    titleDebian DSA-1170-1 : gcc-3.4 - missing sanity check
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Debian Security Advisory DSA-1170. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(22712);
      script_version("1.19");
      script_cvs_date("Date: 2019/08/02 13:32:19");
    
      script_cve_id("CVE-2006-3619");
      script_bugtraq_id(15669);
      script_xref(name:"DSA", value:"1170");
    
      script_name(english:"Debian DSA-1170-1 : gcc-3.4 - missing sanity check");
      script_summary(english:"Checks dpkg output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Jurgen Weigert discovered that upon unpacking JAR archives fastjar
    from the GNU Compiler Collection does not check the path for included
    files and allows to create or overwrite files in upper directories."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368397"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.debian.org/security/2006/dsa-1170"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the fastjar package.
    
    For the stable distribution (sarge) this problem has been fixed in
    version 3.4.3-13sarge1."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
      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:debian:debian_linux:gcc-3.4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.1");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2006/09/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2006/10/14");
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/12");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2006-2019 Tenable Network Security, Inc.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"3.1", prefix:"cpp-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"cpp-3.4-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"fastjar", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"g++-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"g77-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"g77-3.4-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gcc-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gcc-3.4-base", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gcc-3.4-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gcc-3.4-hppa64", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gcj-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gij-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gnat-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gnat-3.4-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gobjc-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gpc-2.1-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gpc-2.1-3.4-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"lib32gcc1", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"lib32stdc++6", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"lib64gcc1", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"lib64stdc++6", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libffi3", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libffi3-dev", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcc1", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcc2", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcj5", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcj5-awt", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcj5-common", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgcj5-dev", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libgnat-3.4", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-0", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-0-dbg", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-0-dev", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-0-pic", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-dbg", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-dev", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-doc", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"libstdc++6-pic", reference:"3.4.3-13sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"treelang-3.4", reference:"3.4.3-13sarge1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:deb_report_get());
      else security_note(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2007-0473.NASL
    descriptionUpdated gcc packages that fix a security issue and another bug are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix a reload internal compiler error with -fnon-call-exceptions option. All users of gcc should upgrade to these updated packages, which resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id25482
    published2007-06-12
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25482
    titleRHEL 3 : gcc (RHSA-2007:0473)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2007:0473. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(25482);
      script_version ("1.25");
      script_cvs_date("Date: 2019/10/25 13:36:12");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"RHSA", value:"2007:0473");
    
      script_name(english:"RHEL 3 : gcc (RHSA-2007:0473)");
      script_summary(english:"Checks the rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated gcc packages that fix a security issue and another bug are now
    available.
    
    This update has been rated as having moderate security impact by the
    Red Hat Security Response Team.
    
    The gcc packages include C, C++, Java, Fortran 77, Objective C, and
    Ada 95 GNU compilers and related support libraries.
    
    Jurgen Weigert discovered a directory traversal flaw in fastjar. An
    attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)
    
    These updated packages also fix a reload internal compiler error with
    -fnon-call-exceptions option.
    
    All users of gcc should upgrade to these updated packages, which
    resolve these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2006-3619"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2007:0473"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
      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:redhat:enterprise_linux:cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc-g77");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libf2c");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libgcj");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libgcj-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libgnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libobjc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libstdc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libstdc++-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:3");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/06/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2007/06/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.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) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! preg(pattern:"^3([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 3.x", "Red Hat " + 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$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2007:0473";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_NOTE,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL3", reference:"cpp-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"gcc-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"gcc-c++-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"gcc-g77-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"i386", reference:"gcc-gnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"s390", reference:"gcc-gnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"x86_64", reference:"gcc-gnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"gcc-java-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"gcc-objc-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libf2c-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libgcc-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libgcj-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libgcj-devel-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"i386", reference:"libgnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"s390", reference:"libgnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", cpu:"x86_64", reference:"libgnat-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libobjc-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libstdc++-3.2.3-59")) flag++;
      if (rpm_check(release:"RHEL3", reference:"libstdc++-devel-3.2.3-59")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_NOTE,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cpp / gcc / gcc-c++ / gcc-g77 / gcc-gnat / gcc-java / gcc-objc / etc");
      }
    }
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2007-0220.NASL
    descriptionUpdated gcc packages that fix a security issue and various bugs are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix several bugs, including : * two debug information generator bugs * two internal compiler errors In addition to this, protoize.1 and unprotoize.1 manual pages have been added to the package and __cxa_get_exception_ptr@@CXXABI_1.3.1 symbol has been added into libstdc++.so.6. For full details regarding all fixed bugs, refer to the package changelog as well as the specified list of bug reports from bugzilla. All users of gcc should upgrade to these updated packages, which contain backported patches to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id67041
    published2013-06-29
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67041
    titleCentOS 4 : gcc (CESA-2007:0220)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2007:0220 and 
    # CentOS Errata and Security Advisory 2007:0220 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67041);
      script_version("1.6");
      script_cvs_date("Date: 2019/10/25 13:36:03");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"RHSA", value:"2007:0220");
    
      script_name(english:"CentOS 4 : gcc (CESA-2007:0220)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated gcc packages that fix a security issue and various bugs are
    now available.
    
    This update has been rated as having moderate security impact by the
    Red Hat Security Response Team.
    
    The gcc packages include C, C++, Java, Fortran 77, Objective C, and
    Ada 95 GNU compilers and related support libraries.
    
    Jurgen Weigert discovered a directory traversal flaw in fastjar. An
    attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)
    
    These updated packages also fix several bugs, including :
    
    * two debug information generator bugs
    
    * two internal compiler errors
    
    In addition to this, protoize.1 and unprotoize.1 manual pages have
    been added to the package and __cxa_get_exception_ptr@@CXXABI_1.3.1
    symbol has been added into libstdc++.so.6.
    
    For full details regarding all fixed bugs, refer to the package
    changelog as well as the specified list of bug reports from bugzilla.
    
    All users of gcc should upgrade to these updated packages, which
    contain backported patches to resolve these issues."
      );
      # https://lists.centos.org/pipermail/centos-announce/2007-May/013699.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?2457cd65"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected gcc packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-g77");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libf2c");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcj");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcj-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libobjc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libstdc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libstdc++-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:4");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/29");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/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/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^4([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 4.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"cpp-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-c++-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-g77-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-gnat-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-java-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"gcc-objc-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libf2c-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libgcc-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libgcj-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libgcj-devel-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libgnat-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libobjc-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libstdc++-3.4.6-8")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"libstdc++-devel-3.4.6-8")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_NOTE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cpp / gcc / gcc-c++ / gcc-g77 / gcc-gnat / gcc-java / gcc-objc / etc");
    }
    
  • NASL familyVMware ESX Local Security Checks
    NASL idVMWARE_VMSA-2007-0006.NASL
    descriptionProblems addressed by these patches : I Arbitrary code execution and denial of service vulnerabilities This release fixes a security vulnerability that could allow a guest operating system user with administrative privileges to cause memory corruption in a host process, and thus potentially execute arbitrary code on the host. (CVE-2007-4496) This release fixes a denial of service vulnerability that could allow a guest operating system to cause a host process to become unresponsive or exit unexpectedly. (CVE-2007-4497) Thanks to Rafal Wojtczvk of McAfee for identifying and reporting these issues. II Hosted products DHCP security vulnerabilities addressed This release fixes several vulnerabilities in the DHCP server that could enable a specially crafted packets to gain system-level privileges. (CVE-2007-0061, CVE-2007-0062, CVE-2007-0063) Thanks to Neel Mehta and Ryan Smith of the IBM Internet Security Systems X-Force for discovering and researching these vulnerabilities. III Windows based hosted product vulnerability in IntraProcessLogging.dll and vielib.dll. This release fixes a security vulnerability that could allow a malicious remote user to exploit the library file IntraProcessLogging.dll to overwrite files in a system. (CVE-2007-4059) This release fixes a security vulnerability that could allow a malicious remote user to exploit the library file vielib.dll to overwrite files in a system. (CVE-2007-4155) Thanks to the Goodfellas Security Research Team for discovering and researching these vulnerabilities. IV Escalation of privileges on Windows hosted systems This release fixes a security vulnerability in which Workstation was starting registered Windows services in an insecure manner. This vulnerability could allow a malicious user to escalate user privileges. Thanks to Foundstone for discovering this vulnerability. V Potential denial of service using VMware Player This release fixes a problem that prevented VMware Player from launching. This problem was accompanied by the error message VMware Player unrecoverable error: (player) Exception 0xc0000005 (access violation) has occurred. VI ESX Service Console updates a. Service console package Samba, has been updated to address the following issues : Various bugs were found in NDR parsing, used to decode MS-RPC requests in Samba. A remote attacker could have sent carefully crafted requests causing a heap overflow, which may have led to the ability to execute arbitrary code on the server. (CVE-2007-2446) Unescaped user input parameters were being passed as arguments to /bin/sh. A remote, authenticated, user could have triggered this flaw and executed arbitrary code on the server. Additionally, this flaw could be triggered by a remote unauthenticated user if Samba was configured to use the non-default username map script option. (CVE-2007-2447) Thanks to the Samba developers, TippingPoint, and iDefense for identifying and reporting these issues. Note: These issues only affect the service console network, and are not remote vulnerabilities for ESX Server hosts that have been set up with the security best practices provided by VMware. http://www.vmware.com/resources/techresources/726 b. Updated bind package for the service console fixes a flaw with the way ISC BIND processed certain DNS query responses. ISC BIND (Berkeley Internet Name Domain) is an implementation of the DNS (Domain Name System) protocols. Under some circumstances, a malicious remote user could launch a Denial-of-Service attack on ESX Server hosts that had enabled DNSSEC validation. (CVE-2007-0494) Note: These issues only affect the service console network, and are not remote vulnerabilities for ESX Server hosts that have been set up with the security best practices provided by VMware. http://www.vmware.com/resources/techresources/726 c. This patch provides updated service console package krb5 update. The Common Vulnerabilities and Exposures project (cve.mitre.org) assigned the names CVE-2007-2442, CVE-2007-2443, and CVE-2007-2798 to these security issues. Thanks to Wei Wang of McAfee Avert Labs discovered these vulnerabilities. Note: The VMware service console does not provide the kadmind binary, and is not affected by these issues, but a update has been provided for completeness. d. Service console update for vixie-cron This patch provides an updated service console package vixie-cron. Cron is a standard UNIX daemon that runs specified programs at scheduled times. A denial of service issue was found in the way vixie-cron verified crontab file integrity. A local user with the ability to create a hardlink to /etc/crontab could potentially prevent vixie-cron from executing certain system cron jobs. (CVE-2007-1856) Thanks to Raphael Marichez for identifying this issue. e. Service console update for shadow-utils This patch provides an updated shadow-utils package. A new user
    last seen2020-06-01
    modified2020-06-02
    plugin id40370
    published2009-07-27
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40370
    titleVMSA-2007-0006 : Critical security updates for all supported versions of VMware ESX Server, VMware Server, VMware Workstation, VMware ACE, and VMware Player
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from VMware Security Advisory 2007-0006. 
    # The text itself is copyright (C) VMware Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(40370);
      script_version("1.24");
      script_cvs_date("Date: 2018/08/06 14:03:16");
    
      script_cve_id("CVE-2004-0813", "CVE-2006-1174", "CVE-2006-3619", "CVE-2006-4146", "CVE-2006-4600", "CVE-2007-0061", "CVE-2007-0062", "CVE-2007-0063", "CVE-2007-0494", "CVE-2007-1716", "CVE-2007-1856", "CVE-2007-2442", "CVE-2007-2443", "CVE-2007-2446", "CVE-2007-2447", "CVE-2007-2798", "CVE-2007-4059", "CVE-2007-4155", "CVE-2007-4496", "CVE-2007-4497");
      script_bugtraq_id(18111, 19832, 22231, 23520, 23972, 23973, 24195, 24196, 24197, 24198, 24653, 24655, 24657, 25110, 25131, 25729, 25731, 25732);
      script_xref(name:"VMSA", value:"2007-0006");
    
      script_name(english:"VMSA-2007-0006 : Critical security updates for all supported versions of VMware ESX Server, VMware Server, VMware Workstation, VMware ACE, and VMware Player");
      script_summary(english:"Checks esxupdate output for the patches");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote VMware ESX host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Problems addressed by these patches :
    
    I    Arbitrary code execution and denial of service vulnerabilities
    
         This release fixes a security vulnerability that could allow a
         guest operating system user with administrative privileges to cause
         memory corruption in a host process, and thus potentially execute
         arbitrary code on the host. (CVE-2007-4496)
    
         This release fixes a denial of service vulnerability that could
         allow a guest operating system to cause a host process to become
         unresponsive or exit unexpectedly. (CVE-2007-4497)
    
         Thanks to Rafal Wojtczvk of McAfee for identifying and reporting
         these issues.
    
    II   Hosted products DHCP security vulnerabilities addressed
    
         This release fixes several vulnerabilities in the DHCP server
         that could enable a specially crafted packets to gain system-level
         privileges. (CVE-2007-0061, CVE-2007-0062, CVE-2007-0063)
    
         Thanks to Neel Mehta and Ryan Smith of the IBM Internet Security
         Systems X-Force for discovering and researching these
         vulnerabilities.
    
    III  Windows based hosted product vulnerability in
         IntraProcessLogging.dll and vielib.dll.
    
         This release fixes a security vulnerability that could allow a
         malicious remote user to exploit the library file
         IntraProcessLogging.dll to overwrite files in a system.
         (CVE-2007-4059)
    
         This release fixes a security vulnerability that could allow a
         malicious remote user to exploit the library file vielib.dll to
         overwrite files in a system. (CVE-2007-4155)
    
         Thanks to the Goodfellas Security Research Team for discovering and
         researching these vulnerabilities.
    
    IV  Escalation of privileges on Windows hosted systems
    
         This release fixes a security vulnerability in which Workstation
         was starting registered Windows services in an insecure manner.
         This vulnerability could allow a malicious user to escalate user
         privileges.
    
         Thanks to Foundstone for discovering this vulnerability.
    
    V    Potential denial of service using VMware Player
    
         This release fixes a problem that prevented VMware Player from
         launching. This problem was accompanied by the error message VMware
         Player unrecoverable error: (player) Exception 0xc0000005 (access
         violation) has occurred.
    
    VI   ESX Service Console updates
    
    a.   Service console package Samba, has been updated to address the
         following issues :
    
         Various bugs were found in NDR parsing, used to decode MS-RPC
         requests in Samba. A remote attacker could have sent carefully
         crafted requests causing a heap overflow, which may have led to the
         ability to execute arbitrary code on the server. (CVE-2007-2446)
    
         Unescaped user input parameters were being passed as arguments to
         /bin/sh. A remote, authenticated, user could have triggered this
         flaw and executed arbitrary code on the server. Additionally, this
         flaw could be triggered by a remote unauthenticated user if Samba
         was configured to use the non-default username map script option.
         (CVE-2007-2447)
    
         Thanks to the Samba developers, TippingPoint, and iDefense for
         identifying and reporting these issues.
    
         Note: These issues only affect the service console network, and are
         not remote vulnerabilities for ESX Server hosts that have been set
         up with the security best practices provided by VMware.
         http://www.vmware.com/resources/techresources/726
    
    b.   Updated bind package for the service console fixes a flaw with the
         way ISC BIND processed certain DNS query responses.
    
         ISC BIND (Berkeley Internet Name Domain) is an implementation of
         the DNS (Domain Name System) protocols. Under some circumstances, a
         malicious remote user could launch a Denial-of-Service attack on
         ESX Server hosts that had enabled DNSSEC validation.
         (CVE-2007-0494)
    
         Note: These issues only affect the service console network, and are
         not remote vulnerabilities for ESX Server hosts that have been set
         up with the security best practices provided by VMware.
         http://www.vmware.com/resources/techresources/726
    
    c.   This patch provides updated service console package krb5 update.
    
         The Common Vulnerabilities and Exposures project (cve.mitre.org)
         assigned the names CVE-2007-2442, CVE-2007-2443, and CVE-2007-2798
         to these security issues.
    
         Thanks to Wei Wang of McAfee Avert Labs discovered these
         vulnerabilities.
    
         Note: The VMware service console does not provide the kadmind
         binary, and is not affected by these issues, but a update has been
         provided for completeness.
    
    d.   Service console update for vixie-cron
    
         This patch provides an updated service console package vixie-cron.
         Cron is a standard UNIX daemon that runs specified programs at
         scheduled times.
    
         A denial of service issue was found in the way vixie-cron verified
         crontab file integrity. A local user with the ability to create a
         hardlink to /etc/crontab could potentially prevent vixie-cron from
         executing certain system cron jobs. (CVE-2007-1856)
    
         Thanks to Raphael Marichez for identifying this issue.
    
    e.   Service console update for shadow-utils
    
         This patch provides an updated shadow-utils package.  A new
         user's mailbox, when created, could have random permissions for a
         short period. This could enable a local malicious user to
         read or modify the mailbox. (CVE-2006-1174)
    
    f.  Service console update for OpenLDAP
    
         This patch provides a updated OpenLDAP package. A flaw could
         allow users with selfwrite access to modify the distinguished
         name of any user, instead of being limited to modify only
         their own distinguished name. (CVE-2006-4600)
    
    g.   Service console update for PAM
    
         This patch provides an updated PAM package A vulnerability was
         found that could allow console users with access to certain device
         files to cause damage to recordable CD drives. Certain file
         permissions have now been modified to disallow access.
         (CVE-2004-0813)
    
         A flaw was found with console device permissions. It was possible
         for various console devices to retain ownership of the previoius
         console user after logging out, which could result in leakage of
         information to an unauthorized user. (CVE-2007-1716)
    
    h.   Service console update for GCC
    
         This patch provides security fixes for the service console GNU
         Compiler Collection (GCC) packages that include C, C++, Java,
         Fortran 77, Objective C, and Ada 95 GNU compilers and related
         support libraries.
    
         A flaw was found in the fastjar utility that could potentially
         allow a malicious user to create a JAR file which, if unpacked
         using fastjar, could write to any file that an authorized user had
         write access to. (CVE-2006-3619)
    
         Thanks to J&uuml;rgen Weigert for identifying this issue.
    
    i.   Service Console update for GDB
    
         This patch provides a security fix for the service console GNU
         debugger (GDB).  Various vulnerabilities were found in GDB. These
         vulnerabilities may allow a malicious user to deceive a user into
         loading debugging information into GDB, enabling the execution of
         arbitrary code with the privileges of the user. (CVE-2006-4146)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://lists.vmware.com/pipermail/security-announce/2007/000001.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply the missing patches.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Samba "username map script" Command Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'CANVAS');
      script_cwe_id(119, 189, 264, 399);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:2.0.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:2.1.3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:2.5.3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:2.5.4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:3.0.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:3.0.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:3.0.2");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2007/09/18");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/07/27");
      script_set_attribute(attribute:"vuln_publication_date", value:"2004/07/30");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
      script_family(english:"VMware ESX Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/VMware/release", "Host/VMware/version");
      script_require_ports("Host/VMware/esxupdate", "Host/VMware/esxcli_software_vibs");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("vmware_esx_packages.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/VMware/release")) audit(AUDIT_OS_NOT, "VMware ESX / ESXi");
    if (
      !get_kb_item("Host/VMware/esxcli_software_vibs") &&
      !get_kb_item("Host/VMware/esxupdate")
    ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    init_esx_check(date:"2007-09-18");
    flag = 0;
    
    
    if (esx_check(ver:"ESX 2.0.2", patch:"8")) flag++;
    
    if (esx_check(ver:"ESX 2.1.3", patch:"8")) flag++;
    
    if (esx_check(ver:"ESX 2.5.3", patch:"13")) flag++;
    
    if (esx_check(ver:"ESX 2.5.4", patch:"10")) flag++;
    
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001204")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001205")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001206")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001207")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001208")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001209")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001210")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001211")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-1001212")) flag++;
    if (esx_check(ver:"ESX 3.0.0", patch:"ESX-4809553")) flag++;
    
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001213")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001214")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001691")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001692")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001693")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001694")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-1001723")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-8253547")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-8258730")) flag++;
    if (esx_check(ver:"ESX 3.0.1", patch:"ESX-8567382")) flag++;
    
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001725")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001726")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001727")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001728")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001729")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001730")) flag++;
    if (esx_check(ver:"ESX 3.0.2", patch:"ESX-1001731")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:esx_report_get());
      else security_hole(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2008-066.NASL
    descriptionJurgen Weigert found a directory traversal vulnerability in fastjar versions prior to 0.93. This vulnerability allows user-assisted attackers to overwrite arbitrary files via a .jar file containing filename with ../ sequences. The updated packages have been patched to correct this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id36717
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/36717
    titleMandriva Linux Security Advisory : gcc (MDVSA-2008:066)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2008:066. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(36717);
      script_version ("1.13");
      script_cvs_date("Date: 2019/08/02 13:32:50");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"MDVSA", value:"2008:066");
    
      script_name(english:"Mandriva Linux Security Advisory : gcc (MDVSA-2008:066)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Jurgen Weigert found a directory traversal vulnerability in fastjar
    versions prior to 0.93. This vulnerability allows user-assisted
    attackers to overwrite arbitrary files via a .jar file containing
    filename with ../ sequences.
    
    The updated packages have been patched to correct this issue."
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-colorgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-doc-pdf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-gfortran");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcc-objc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gcj-tools");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64gcj7");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64gcj7-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64gcj7-static-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libffi4-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcc1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcj7");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcj7-base");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcj7-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcj7-src");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgcj7-static-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgfortran1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgnat1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmudflap0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmudflap0-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libobjc1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libstdc++6");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libstdc++6-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libstdc++6-static-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2007");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/03/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/04/23");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2019 Tenable Network Security, Inc.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/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);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-c++-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-colorgcc-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-cpp-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-doc-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-doc-pdf-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-gfortran-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-gnat-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-java-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-objc-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcc-objc++-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"gcj-tools-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64gcj7-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64gcj7-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64gcj7-static-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libffi4-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libgcc1-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libgcj7-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libgcj7-base-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libgcj7-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libgcj7-src-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libgcj7-static-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libgfortran1-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libgnat1-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libmudflap0-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libmudflap0-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libobjc1-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libstdc++6-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libstdc++6-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"libstdc++6-static-devel-4.1.1-3.1mdv2007.0", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get());
      else security_note(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2007-0473.NASL
    descriptionUpdated gcc packages that fix a security issue and another bug are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix a reload internal compiler error with -fnon-call-exceptions option. All users of gcc should upgrade to these updated packages, which resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id25501
    published2007-06-14
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25501
    titleCentOS 3 : gcc (CESA-2007:0473)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2007:0473 and 
    # CentOS Errata and Security Advisory 2007:0473 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(25501);
      script_version("1.16");
      script_cvs_date("Date: 2019/10/25 13:36:03");
    
      script_cve_id("CVE-2006-3619");
      script_xref(name:"RHSA", value:"2007:0473");
    
      script_name(english:"CentOS 3 : gcc (CESA-2007:0473)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated gcc packages that fix a security issue and another bug are now
    available.
    
    This update has been rated as having moderate security impact by the
    Red Hat Security Response Team.
    
    The gcc packages include C, C++, Java, Fortran 77, Objective C, and
    Ada 95 GNU compilers and related support libraries.
    
    Jurgen Weigert discovered a directory traversal flaw in fastjar. An
    attacker could create a malicious JAR file which, if unpacked using
    fastjar, could write to any files the victim had write access to.
    (CVE-2006-3619)
    
    These updated packages also fix a reload internal compiler error with
    -fnon-call-exceptions option.
    
    All users of gcc should upgrade to these updated packages, which
    resolve these issues."
      );
      # https://lists.centos.org/pipermail/centos-announce/2007-June/013891.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?c0dd85d5"
      );
      # https://lists.centos.org/pipermail/centos-announce/2007-June/013920.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?771ef93e"
      );
      # https://lists.centos.org/pipermail/centos-announce/2007-June/013921.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a89561c3"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected gcc packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:N/I:P/A:N");
      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:centos:centos:cpp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-c++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-g77");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-gnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-java");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:gcc-objc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libf2c");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcj");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgcj-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libgnat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libobjc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libstdc++");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libstdc++-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:3");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2007/06/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2007/06/14");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/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/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^3([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 3.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-3", reference:"cpp-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-c++-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-g77-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-gnat-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-java-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"gcc-objc-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libf2c-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libgcc-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libgcj-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libgcj-devel-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libgnat-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libobjc-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libstdc++-3.2.3-59")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"libstdc++-devel-3.2.3-59")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_NOTE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cpp / gcc / gcc-c++ / gcc-g77 / gcc-gnat / gcc-java / gcc-objc / etc");
    }
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200711-23.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200711-23 (VMware Workstation and Player: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in several VMware products. Neel Mehta and Ryan Smith (IBM ISS X-Force) discovered that the DHCP server contains an integer overflow vulnerability (CVE-2007-0062), an integer underflow vulnerability (CVE-2007-0063) and another error when handling malformed packets (CVE-2007-0061), leading to stack-based buffer overflows or stack corruption. Rafal Wojtczvk (McAfee) discovered two unspecified errors that allow authenticated users with administrative or login privileges on a guest operating system to corrupt memory or cause a Denial of Service (CVE-2007-4496, CVE-2007-4497). Another unspecified vulnerability related to untrusted virtual machine images was discovered (CVE-2007-5617). VMware products also shipped code copies of software with several vulnerabilities: Samba (GLSA-200705-15), BIND (GLSA-200702-06), MIT Kerberos 5 (GLSA-200707-11), Vixie Cron (GLSA-200704-11), shadow (GLSA-200606-02), OpenLDAP (CVE-2006-4600), PAM (CVE-2004-0813, CVE-2007-1716), GCC (CVE-2006-3619) and GDB (CVE-2006-4146). Impact : Remote attackers within a guest system could possibly exploit these vulnerabilities to execute code on the host system with elevated privileges or to cause a Denial of Service. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id28262
    published2007-11-20
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/28262
    titleGLSA-200711-23 : VMware Workstation and Player: Multiple vulnerabilities
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20070611_GCC_ON_SL3.NASL
    descriptionJ&uuml;rgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619)
    last seen2020-06-01
    modified2020-06-02
    plugin id60198
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60198
    titleScientific Linux Security Update : gcc on SL3.x i386/x86_64
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2007-0220.NASL
    descriptionUpdated gcc packages that fix a security issue and various bugs are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The gcc packages include C, C++, Java, Fortran 77, Objective C, and Ada 95 GNU compilers and related support libraries. Jurgen Weigert discovered a directory traversal flaw in fastjar. An attacker could create a malicious JAR file which, if unpacked using fastjar, could write to any files the victim had write access to. (CVE-2006-3619) These updated packages also fix several bugs, including : * two debug information generator bugs * two internal compiler errors In addition to this, protoize.1 and unprotoize.1 manual pages have been added to the package and __cxa_get_exception_ptr@@CXXABI_1.3.1 symbol has been added into libstdc++.so.6. For full details regarding all fixed bugs, refer to the package changelog as well as the specified list of bug reports from bugzilla. All users of gcc should upgrade to these updated packages, which contain backported patches to resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id25137
    published2007-05-02
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25137
    titleRHEL 4 : gcc (RHSA-2007:0220)

Oval

accepted2013-04-29T04:20:43.827-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 3
    ovaloval:org.mitre.oval:def:11782
  • commentCentOS Linux 3.x
    ovaloval:org.mitre.oval:def:16651
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 4
    ovaloval:org.mitre.oval:def:11831
  • commentCentOS Linux 4.x
    ovaloval:org.mitre.oval:def:16636
  • commentOracle Linux 4.x
    ovaloval:org.mitre.oval:def:15990
descriptionDirectory traversal vulnerability in FastJar 0.93, as used in Gnu GCC 4.1.1 and earlier, and 3.4.6 and earlier, allows user-assisted attackers to overwrite arbitrary files via a .jar file containing filenames with "../" sequences.
familyunix
idoval:org.mitre.oval:def:9617
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleDirectory traversal vulnerability in FastJar 0.93, as used in Gnu GCC 4.1.1 and earlier, and 3.4.6 and earlier, allows user-assisted attackers to overwrite arbitrary files via a .jar file containing filenames with "../" sequences.
version26

Redhat

advisories
  • bugzilla
    id218377
    titleg++ compile runs forever on test file with optimization and debug info
    oval
    OR
    • commentRed Hat Enterprise Linux must be installed
      ovaloval:com.redhat.rhba:tst:20070304026
    • AND
      • commentRed Hat Enterprise Linux 4 is installed
        ovaloval:com.redhat.rhba:tst:20070304025
      • OR
        • AND
          • commentgcc-c++ is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220001
          • commentgcc-c++ is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220002
        • AND
          • commentlibf2c is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220003
          • commentlibf2c is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220004
        • AND
          • commentgcc-gnat is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220005
          • commentgcc-gnat is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220006
        • AND
          • commentlibobjc is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220007
          • commentlibobjc is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220008
        • AND
          • commentlibgcj is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220009
          • commentlibgcj is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220010
        • AND
          • commentlibgnat is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220011
          • commentlibgnat is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220012
        • AND
          • commentlibstdc++-devel is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220013
          • commentlibstdc++-devel is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220014
        • AND
          • commentgcc-java is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220015
          • commentgcc-java is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220016
        • AND
          • commentgcc-objc is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220017
          • commentgcc-objc is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220018
        • AND
          • commentgcc is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220019
          • commentgcc is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220020
        • AND
          • commentlibgcj-devel is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220021
          • commentlibgcj-devel is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220022
        • AND
          • commentlibstdc++ is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220023
          • commentlibstdc++ is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220024
        • AND
          • commentcpp is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220025
          • commentcpp is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220026
        • AND
          • commentlibgcc is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220027
          • commentlibgcc is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220028
        • AND
          • commentgcc-g77 is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220029
          • commentgcc-g77 is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220030
        • AND
          • commentgcc-c++-ppc32 is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220031
          • commentgcc-c++-ppc32 is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220032
        • AND
          • commentgcc-ppc32 is earlier than 0:3.4.6-8
            ovaloval:com.redhat.rhsa:tst:20070220033
          • commentgcc-ppc32 is signed with Red Hat master key
            ovaloval:com.redhat.rhsa:tst:20070220034
    rhsa
    idRHSA-2007:0220
    released2007-05-01
    severityModerate
    titleRHSA-2007:0220: gcc security and bug fix update (Moderate)
  • rhsa
    idRHSA-2007:0473
rpms
  • cpp-0:3.4.6-8
  • gcc-0:3.4.6-8
  • gcc-c++-0:3.4.6-8
  • gcc-c++-ppc32-0:3.4.6-8
  • gcc-debuginfo-0:3.4.6-8
  • gcc-g77-0:3.4.6-8
  • gcc-gnat-0:3.4.6-8
  • gcc-java-0:3.4.6-8
  • gcc-objc-0:3.4.6-8
  • gcc-ppc32-0:3.4.6-8
  • libf2c-0:3.4.6-8
  • libgcc-0:3.4.6-8
  • libgcj-0:3.4.6-8
  • libgcj-devel-0:3.4.6-8
  • libgnat-0:3.4.6-8
  • libobjc-0:3.4.6-8
  • libstdc++-0:3.4.6-8
  • libstdc++-devel-0:3.4.6-8
  • cpp-0:3.2.3-59
  • gcc-0:3.2.3-59
  • gcc-c++-0:3.2.3-59
  • gcc-c++-ppc32-0:3.2.3-59
  • gcc-debuginfo-0:3.2.3-59
  • gcc-g77-0:3.2.3-59
  • gcc-gnat-0:3.2.3-59
  • gcc-java-0:3.2.3-59
  • gcc-objc-0:3.2.3-59
  • gcc-ppc32-0:3.2.3-59
  • libf2c-0:3.2.3-59
  • libgcc-0:3.2.3-59
  • libgcj-0:3.2.3-59
  • libgcj-devel-0:3.2.3-59
  • libgnat-0:3.2.3-59
  • libobjc-0:3.2.3-59
  • libstdc++-0:3.2.3-59
  • libstdc++-devel-0:3.2.3-59

Statements

contributorMark J Cox
lastmodified2006-09-19
organizationRed Hat
statementRed Hat is aware of this issue and is tracking it via the following bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198912 The Red Hat Security Response Team has rated this issue as having low security impact, a future update may address this flaw. More information regarding issue severity can be found here: http://www.redhat.com/security/updates/classification/