Vulnerabilities > CVE-2010-0831 - Path Traversal vulnerability in Matthias Klose Fastjar 0.98

047910
CVSS 5.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
matthias-klose
CWE-22
nessus

Summary

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.

Vulnerable Configurations

Part Description Count
Application
Matthias_Klose
1

Common Attack Pattern Enumeration and Classification (CAPEC)

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

Nessus

  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2011-0025.NASL
    descriptionUpdated gcc packages that fix two security issues and several compiler bugs are now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having low security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The gcc packages include C, C++, Java, Fortran, Objective C, and Ada 95 GNU compilers, along with related support libraries. The libgcj package provides fastjar, an archive tool for Java Archive (JAR) files. Two directory traversal flaws were found in the way fastjar extracted JAR archive files. If a local, unsuspecting user extracted a specially crafted JAR file, it could cause fastjar to overwrite arbitrary files writable by the user running fastjar. (CVE-2010-0831, CVE-2010-2322) This update also fixes the following bugs : * The option -print-multi-os-directory in the gcc --help output is not in the gcc(1) man page. This update applies an upstream patch to amend this. (BZ#529659) * An internal assertion in the compiler tried to check that a C++ static data member is external which resulted in errors. This was because when the compiler optimizes C++ anonymous namespaces the declarations were no longer marked external as everything on anonymous namespaces is local to the current translation. This update corrects the assertion to resolve this issue. (BZ#503565, BZ#508735, BZ#582682) * Attempting to compile certain .cpp files could have resulted in an internal compiler error. This update resolves this issue. (BZ#527510) * PrintServiceLookup.lookupPrintServices with an appropriate DocFlavor failed to return a list of printers under gcj. This update includes a backported patch to correct this bug in the printer lookup service. (BZ#578382) * GCC would not build against xulrunner-devel-1.9.2. This update removes gcjwebplugin from the GCC RPM. (BZ#596097) * When a SystemTap generated kernel module was compiled, gcc reported an internal compiler error and gets a segmentation fault. This update applies a patch that, instead of crashing, assumes it can point to anything. (BZ#605803) * There was a performance issue with libstdc++ regarding all objects derived from or using std::streambuf because of lock contention between threads. This patch ensures reload uses the same value from _S_global for the comparison, _M_add_reference () and _M_impl member of the class. (BZ#635708) All gcc users should upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id51523
    published2011-01-14
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/51523
    titleRHEL 5 : gcc (RHSA-2011:0025)
    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-2011:0025. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(51523);
      script_version ("1.19");
      script_cvs_date("Date: 2019/10/25 13:36:15");
    
      script_cve_id("CVE-2010-0831", "CVE-2010-2322");
      script_bugtraq_id(41006, 41009);
      script_xref(name:"RHSA", value:"2011:0025");
    
      script_name(english:"RHEL 5 : gcc (RHSA-2011:0025)");
      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 two security issues and several compiler
    bugs are now available for Red Hat Enterprise Linux 5.
    
    The Red Hat Security Response Team has rated this update as having low
    security impact. Common Vulnerability Scoring System (CVSS) base
    scores, which give detailed severity ratings, are available for each
    vulnerability from the CVE links in the References section.
    
    The gcc packages include C, C++, Java, Fortran, Objective C, and Ada
    95 GNU compilers, along with related support libraries. The libgcj
    package provides fastjar, an archive tool for Java Archive (JAR)
    files.
    
    Two directory traversal flaws were found in the way fastjar extracted
    JAR archive files. If a local, unsuspecting user extracted a specially
    crafted JAR file, it could cause fastjar to overwrite arbitrary files
    writable by the user running fastjar. (CVE-2010-0831, CVE-2010-2322)
    
    This update also fixes the following bugs :
    
    * The option -print-multi-os-directory in the gcc --help output is not
    in the gcc(1) man page. This update applies an upstream patch to amend
    this. (BZ#529659)
    
    * An internal assertion in the compiler tried to check that a C++
    static data member is external which resulted in errors. This was
    because when the compiler optimizes C++ anonymous namespaces the
    declarations were no longer marked external as everything on anonymous
    namespaces is local to the current translation. This update corrects
    the assertion to resolve this issue. (BZ#503565, BZ#508735, BZ#582682)
    
    * Attempting to compile certain .cpp files could have resulted in an
    internal compiler error. This update resolves this issue. (BZ#527510)
    
    * PrintServiceLookup.lookupPrintServices with an appropriate DocFlavor
    failed to return a list of printers under gcj. This update includes a
    backported patch to correct this bug in the printer lookup service.
    (BZ#578382)
    
    * GCC would not build against xulrunner-devel-1.9.2. This update
    removes gcjwebplugin from the GCC RPM. (BZ#596097)
    
    * When a SystemTap generated kernel module was compiled, gcc reported
    an internal compiler error and gets a segmentation fault. This update
    applies a patch that, instead of crashing, assumes it can point to
    anything. (BZ#605803)
    
    * There was a performance issue with libstdc++ regarding all objects
    derived from or using std::streambuf because of lock contention
    between threads. This patch ensures reload uses the same value from
    _S_global for the comparison, _M_add_reference () and _M_impl member
    of the class. (BZ#635708)
    
    All gcc users should upgrade to these updated packages, which contain
    backported patches to correct these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2010-0831"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2010-2322"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2011:0025"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      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: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-gfortran");
      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:gcc-objc++");
      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:libgcj-src");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libgfortran");
      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:libmudflap");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libmudflap-devel");
      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:5");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2010/06/18");
      script_set_attribute(attribute:"patch_publication_date", value:"2011/01/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2011/01/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) 2011-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:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 5.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-2011:0025";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          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:"RHEL5", cpu:"i386", reference:"cpp-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"cpp-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"cpp-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-c++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-c++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-c++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-gfortran-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-gfortran-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-gfortran-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-gnat-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-gnat-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-java-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-java-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-java-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-objc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-objc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-objc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"gcc-objc++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"gcc-objc++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"gcc-objc++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libgcc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libgcj-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libgcj-devel-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"libgcj-src-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"libgcj-src-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"libgcj-src-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libgfortran-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"libgnat-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"libgnat-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libmudflap-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libmudflap-devel-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libobjc-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libstdc++-4.1.2-50.el5")) flag++;
      if (rpm_check(release:"RHEL5", reference:"libstdc++-devel-4.1.2-50.el5")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          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-gfortran / 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 familyFedora Local Security Checks
    NASL idFEDORA_2010-10415.NASL
    description - Wed Jun 30 2010 Jakub Jelinek <jakub at redhat.com> 4.4.4-10 - update from gcc-4_4-branch - PRs fortran/43841, fortran/43843, tree-optimization/44683 - fix qualified-id as template argument handling (#605761, PR c++/44587) - -Wunused-but-set-* static_cast fix (PR c++/44682) - VTA backports - PRs debug/44610, debug/44668, debug/44694 - unswitching fixes (PR middle-end/43866) - Thu Jun 24 2010 Jakub Jelinek <jakub at redhat.com> 4.4.4-9 - update from gcc-4_4-branch - PRs bootstrap/44426, bootstrap/44544, c++/44627, fortran/44536, libgcj/44216, target/39690, target/43740, target/44261, target/44481, target/44534, target/44615, testsuite/32843, testsuite/43739, tree-optimization/44508 - VTA backports - PRs debug/43650, debug/44181, debug/44247 - -Wunused-but-set-* ->*/.* fix (PR c++/44619) - undeprecate #ident and #sccs (#606069) - fixup dates in generated man pages even for fastjar and gcc/ man pages - don
    last seen2020-06-01
    modified2020-06-02
    plugin id47598
    published2010-07-06
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/47598
    titleFedora 13 : gcc-4.4.4-10.fc13 (2010-10415)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2010-10415.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(47598);
      script_version("1.13");
      script_cvs_date("Date: 2019/08/02 13:32:31");
    
      script_cve_id("CVE-2010-0831", "CVE-2010-2322");
      script_bugtraq_id(41006, 41009);
      script_xref(name:"FEDORA", value:"2010-10415");
    
      script_name(english:"Fedora 13 : gcc-4.4.4-10.fc13 (2010-10415)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "  - Wed Jun 30 2010 Jakub Jelinek <jakub at redhat.com>
        4.4.4-10
    
        - update from gcc-4_4-branch
    
        - PRs fortran/43841, fortran/43843,
          tree-optimization/44683
    
        - fix qualified-id as template argument handling
          (#605761, PR c++/44587)
    
        - -Wunused-but-set-* static_cast fix (PR c++/44682)
    
        - VTA backports
    
        - PRs debug/44610, debug/44668, debug/44694
    
        - unswitching fixes (PR middle-end/43866)
    
        - Thu Jun 24 2010 Jakub Jelinek <jakub at redhat.com>
          4.4.4-9
    
        - update from gcc-4_4-branch
    
        - PRs bootstrap/44426, bootstrap/44544, c++/44627,
          fortran/44536, libgcj/44216, target/39690,
          target/43740, target/44261, target/44481,
          target/44534, target/44615, testsuite/32843,
          testsuite/43739, tree-optimization/44508
    
      - VTA backports
    
        - PRs debug/43650, debug/44181, debug/44247
    
        - -Wunused-but-set-* ->*/.* fix (PR c++/44619)
    
        - undeprecate #ident and #sccs (#606069)
    
        - fixup dates in generated man pages even for fastjar
          and gcc/ man pages
    
        - don't realign stack on x86/x86-64 just because a
          DECL_ALIGN was set too high by expansion code
          (#603924, PR target/44542)
    
      - don't allow side-effects in inline-asm memory operands
        unless < or > is present in operand's constraint
        (#602359, PR middle-end/44492)
    
      - Fri Jun 11 2010 Jakub Jelinek <jakub at redhat.com>
        4.4.4-8
    
        - update from gcc-4_4-branch
    
        - fix demangler (PR other/43838)
    
        - VTA backports
    
        - further var-tracking speedup (#598310, PR debug/41371)
    
        - for typedefs in non-template classes adjust underlying
          type to emit proper debug info (#601893)
    
      - fix up fastjar directory traversal bugs (CVE-2010-0831)
    
        - Tue Jun 8 2010 Jakub Jelinek <jakub at redhat.com>
          4.4.4-7
    
        - update from gcc-4_4-branch
    
        - PRs c++/43555, fortran/42900, fortran/44360,
          libfortran/41169, libgcj/38251, libobjc/36610,
          libstdc++/32499, pch/14940, rtl-optimization/39580,
          target/44075, target/44169, target/44199
    
      - VTA backports
    
        - PRs debug/44367, debug/44375, rtl-optimization/44013,
          tree-optimization/44182
    
      - speed up var-tracking (#598310, PR debug/41371)
    
        - -Wunused-but-set-* bugfixes
    
        - PRs c++/44361, c++/44362, c++/44412, c++/44443,
          c++/44444
    
        - fix -mno-fused-madd -mfma4 on i?86/x86_64 (PR
          target/44338)
    
        - use GCJ_PROPERTIES=jdt.compiler.useSingleThread=true
          when building classes with ecj1 (#524155)
    
      - Tue May 25 2010 Jakub Jelinek <jakub at redhat.com>
        4.4.4-5
    
        - update from gcc-4_4-branch
    
        - PRs bootstrap/43870, debug/44205, target/43733,
          target/44074, target/44202, target/44245,
          tree-optimization/43845
    
      - fix cv-qual issue with function types (#593750, PR
        c++/44193)
    
    [plus 24 lines in the Changelog]
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=594497"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2010-July/043729.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?31e45ee9"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected gcc 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:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:gcc");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:13");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2010/06/18");
      script_set_attribute(attribute:"patch_publication_date", value:"2010/06/25");
      script_set_attribute(attribute:"plugin_publication_date", value:"2010/07/06");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      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:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^13([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 13.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC13", reference:"gcc-4.4.4-10.fc13")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "gcc");
    }
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-953-1.NASL
    descriptionDan Rosenberg discovered that fastjar incorrectly handled file paths containing
    last seen2020-06-01
    modified2020-06-02
    plugin id47109
    published2010-06-22
    reporterUbuntu Security Notice (C) 2010-2019 Canonical, Inc. / NASL script (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/47109
    titleUbuntu 8.04 LTS / 9.04 / 9.10 / 10.04 LTS : fastjar vulnerability (USN-953-1)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-953-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(47109);
      script_version("1.10");
      script_cvs_date("Date: 2019/09/19 12:54:26");
    
      script_cve_id("CVE-2010-0831");
      script_xref(name:"USN", value:"953-1");
    
      script_name(english:"Ubuntu 8.04 LTS / 9.04 / 9.10 / 10.04 LTS : fastjar vulnerability (USN-953-1)");
      script_summary(english:"Checks dpkg output for updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Ubuntu host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Dan Rosenberg discovered that fastjar incorrectly handled file paths
    containing '..' when unpacking archives. If a user or an automated
    system were tricked into unpacking a specially crafted jar file,
    arbitrary files could be overwritten with user privileges.
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/953-1/"
      );
      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_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:fastjar");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:10.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:8.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:9.04");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:9.10");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2010/06/18");
      script_set_attribute(attribute:"patch_publication_date", value:"2010/06/21");
      script_set_attribute(attribute:"plugin_publication_date", value:"2010/06/22");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2010-2019 Canonical, Inc. / NASL script (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! preg(pattern:"^(8\.04|9\.04|9\.10|10\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 8.04 / 9.04 / 9.10 / 10.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"8.04", pkgname:"fastjar", pkgver:"2:0.95-1ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"fastjar", pkgver:"2:0.97-3ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.10", pkgname:"fastjar", pkgver:"2:0.98-1ubuntu0.9.10.1")) flag++;
    if (ubuntu_check(osver:"10.04", pkgname:"fastjar", pkgver:"2:0.98-1ubuntu0.10.04.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "fastjar");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20110113_GCC_ON_SL5_X.NASL
    descriptionTwo directory traversal flaws were found in the way fastjar extracted JAR archive files. If a local, unsuspecting user extracted a specially crafted JAR file, it could cause fastjar to overwrite arbitrary files writable by the user running fastjar. (CVE-2010-0831, CVE-2010-2322) This update also fixes the following bugs : - The option -print-multi-os-directory in the gcc --help output is not in the gcc(1) man page. This update applies an upstream patch to amend this. (BZ#529659) - An internal assertion in the compiler tried to check that a C++ static data member is external which resulted in errors. This was because when the compiler optimizes C++ anonymous namespaces the declarations were no longer marked external as everything on anonymous namespaces is local to the current translation. This update corrects the assertion to resolve this issue. (BZ#503565, BZ#508735, BZ#582682) - Attempting to compile certain .cpp files could have resulted in an internal compiler error. This update resolves this issue. (BZ#527510) - PrintServiceLookup.lookupPrintServices with an appropriate DocFlavor failed to return a list of printers under gcj. This update includes a backported patch to correct this bug in the printer lookup service. (BZ#578382) - GCC would not build against xulrunner-devel-1.9.2. This update removes gcjwebplugin from the GCC RPM. (BZ#596097) - When a SystemTap generated kernel module was compiled, gcc reported an internal compiler error and gets a segmentation fault. This update applies a patch that, instead of crashing, assumes it can point to anything. (BZ#605803) - There was a performance issue with libstdc++ regarding all objects derived from or using std::streambuf because of lock contention between threads. This patch ensures reload uses the same value from _S_global for the comparison, _M_add_reference () and _M_impl member of the class. (BZ#635708)
    last seen2020-06-01
    modified2020-06-02
    plugin id60933
    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/60933
    titleScientific Linux Security Update : gcc on SL5.x 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(60933);
      script_version("1.6");
      script_cvs_date("Date: 2019/10/25 13:36:19");
    
      script_cve_id("CVE-2010-0831", "CVE-2010-2322");
    
      script_name(english:"Scientific Linux Security Update : gcc on SL5.x 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:
    "Two directory traversal flaws were found in the way fastjar extracted
    JAR archive files. If a local, unsuspecting user extracted a specially
    crafted JAR file, it could cause fastjar to overwrite arbitrary files
    writable by the user running fastjar. (CVE-2010-0831, CVE-2010-2322)
    
    This update also fixes the following bugs :
    
      - The option -print-multi-os-directory in the gcc --help
        output is not in the gcc(1) man page. This update
        applies an upstream patch to amend this. (BZ#529659)
    
      - An internal assertion in the compiler tried to check
        that a C++ static data member is external which resulted
        in errors. This was because when the compiler optimizes
        C++ anonymous namespaces the declarations were no longer
        marked external as everything on anonymous namespaces is
        local to the current translation. This update corrects
        the assertion to resolve this issue. (BZ#503565,
        BZ#508735, BZ#582682)
    
      - Attempting to compile certain .cpp files could have
        resulted in an internal compiler error. This update
        resolves this issue. (BZ#527510)
    
      - PrintServiceLookup.lookupPrintServices with an
        appropriate DocFlavor failed to return a list of
        printers under gcj. This update includes a backported
        patch to correct this bug in the printer lookup service.
        (BZ#578382)
    
      - GCC would not build against xulrunner-devel-1.9.2. This
        update removes gcjwebplugin from the GCC RPM.
        (BZ#596097)
    
      - When a SystemTap generated kernel module was compiled,
        gcc reported an internal compiler error and gets a
        segmentation fault. This update applies a patch that,
        instead of crashing, assumes it can point to anything.
        (BZ#605803)
    
      - There was a performance issue with libstdc++ regarding
        all objects derived from or using std::streambuf because
        of lock contention between threads. This patch ensures
        reload uses the same value from _S_global for the
        comparison, _M_add_reference () and _M_impl member of
        the class. (BZ#635708)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=503565"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=508735"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=527510"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=529659"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=578382"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=582682"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=596097"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=605803"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=635708"
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1102&L=scientific-linux-errata&T=0&P=1613
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?098be901"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:P");
    
      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:"2011/01/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/01");
      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:"SL5", reference:"cpp-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-c++-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-gfortran-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-gnat-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-java-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-objc-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"gcc-objc++-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgcc-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgcj-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgcj-devel-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgcj-src-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgfortran-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libgnat-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libmudflap-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libmudflap-devel-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libobjc-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libstdc++-4.1.2-50.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"libstdc++-devel-4.1.2-50.el5")) 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 familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201209-21.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201209-21 (fastjar: Directory traversal) Two directory traversal vulnerabilities have been discovered in fastjar. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could entice a user to open a specially crafted JAR file, possibly resulting in the creation or truncation of arbitrary files. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id62363
    published2012-09-28
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/62363
    titleGLSA-201209-21 : fastjar: Directory traversal
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2010-10640.NASL
    descriptionThe remote Fedora host is missing one or more security updates : gcc-4.4.4-10.fc12 : - Wed Jun 30 2010 Jakub Jelinek <jakub at redhat.com> 4.4.4-10 - update from gcc-4_4-branch - PRs fortran/43841, fortran/43843, tree-optimization/44683 - fix qualified-id as template argument handling (#605761, PR c++/44587) - -Wunused-but-set-* static_cast fix (PR c++/44682) - VTA backports - PRs debug/44610, debug/44668, debug/44694 - unswitching fixes (PR middle-end/43866) - Thu Jun 24 2010 Jakub Jelinek <jakub at redhat.com> 4.4.4-9 - update from gcc-4_4-branch - PRs bootstrap/44426, bootstrap/44544, c++/44627, fortran/44536, libgcj/44216, target/39690, target/43740, target/44261, target/44481, target/44534, target/44615, testsuite/32843, testsuite/43739, tree-optimization/44508 - VTA backports - PRs debug/43650, debug/44181, debug/44247 - -Wunused-but-set-* ->*/.* fix (PR c++/44619) - undeprecate #ident and #sccs (#606069) - fixup dates in generated man pages even for fastjar and gcc/ man pages - don
    last seen2020-06-01
    modified2020-06-02
    plugin id47612
    published2010-07-07
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/47612
    titleFedora 12 : gcc-4.4.4-10.fc12 / libtool-2.2.6-18.fc12.1 (2010-10640)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_FASTJAR-130927.NASL
    descriptionThis fastjar update fixes a directory traversal issue. (bnc#607043)
    last seen2020-06-05
    modified2013-11-07
    plugin id70780
    published2013-11-07
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70780
    titleSuSE 11.2 / 11.3 Security Update : fastjar (SAT Patch Numbers 8376 / 8377)

Redhat

advisories
rhsa
idRHSA-2011:0025
rpms
  • cpp-0:4.1.2-50.el5
  • gcc-0:4.1.2-50.el5
  • gcc-c++-0:4.1.2-50.el5
  • gcc-debuginfo-0:4.1.2-50.el5
  • gcc-gfortran-0:4.1.2-50.el5
  • gcc-gnat-0:4.1.2-50.el5
  • gcc-java-0:4.1.2-50.el5
  • gcc-objc++-0:4.1.2-50.el5
  • gcc-objc-0:4.1.2-50.el5
  • libgcc-0:4.1.2-50.el5
  • libgcj-0:4.1.2-50.el5
  • libgcj-devel-0:4.1.2-50.el5
  • libgcj-src-0:4.1.2-50.el5
  • libgfortran-0:4.1.2-50.el5
  • libgnat-0:4.1.2-50.el5
  • libmudflap-0:4.1.2-50.el5
  • libmudflap-devel-0:4.1.2-50.el5
  • libobjc-0:4.1.2-50.el5
  • libstdc++-0:4.1.2-50.el5
  • libstdc++-devel-0:4.1.2-50.el5