ID CVE-2010-0831
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.
References
Vulnerable Configurations
  • cpe:2.3:a:matthias_klose:fastjar:0.98
    cpe:2.3:a:matthias_klose:fastjar:0.98
CVSS
Base: 5.8 (as of 21-06-2010 - 10:28)
Impact:
Exploitability:
CWE CWE-22
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.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL PARTIAL
nessus via4
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2011-0025.NASL
    description 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.
    last seen 2019-01-16
    modified 2019-01-02
    plugin id 51523
    published 2011-01-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51523
    title RHEL 5 : gcc (RHSA-2011:0025)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201209-21.NASL
    description The 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 seen 2019-01-16
    modified 2018-07-11
    plugin id 62363
    published 2012-09-28
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62363
    title GLSA-201209-21 : fastjar: Directory traversal
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-953-1.NASL
    description 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.
    last seen 2019-01-16
    modified 2018-11-28
    plugin id 47109
    published 2010-06-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47109
    title Ubuntu 8.04 LTS / 9.04 / 9.10 / 10.04 LTS : fastjar vulnerability (USN-953-1)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20110113_GCC_ON_SL5_X.NASL
    description 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)
    last seen 2019-01-16
    modified 2018-12-31
    plugin id 60933
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=60933
    title Scientific Linux Security Update : gcc on SL5.x i386/x86_64
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2010-10640.NASL
    description The remote Fedora host is missing one or more security updates : gcc-4.4.4-10.fc12 : - Wed Jun 30 2010 Jakub Jelinek 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 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 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 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 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 297 lines in the Changelog] libtool-2.2.6-18.fc12.1 : - Wed Jun 30 2010 Jakub Jelinek 2.2.6-18.fc12.1 - rebuilt for gcc 4.4.4 - Thu Jan 21 2010 Jakub Jelinek 2.2.6-18 - rebuilt for gcc 4.4.3 - Wed Dec 2 2009 Karsten Hopp 2.2.6-17 - fix directory name used in libtool tarball - Wed Dec 2 2009 Karsten Hopp 2.2.6-16 - update to 2.2.6b, fixes CVE-2009-3736: libltdl may load and execute code from a library in the current directory 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.
    last seen 2019-01-16
    modified 2018-11-28
    plugin id 47612
    published 2010-07-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47612
    title Fedora 12 : gcc-4.4.4-10.fc12 / libtool-2.2.6-18.fc12.1 (2010-10640)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_FASTJAR-130927.NASL
    description This fastjar update fixes a directory traversal issue. (bnc#607043)
    last seen 2018-09-02
    modified 2013-11-07
    plugin id 70780
    published 2013-11-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70780
    title SuSE 11.2 / 11.3 Security Update : fastjar (SAT Patch Numbers 8376 / 8377)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2010-10415.NASL
    description - Wed Jun 30 2010 Jakub Jelinek 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 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 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 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 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.
    last seen 2019-01-16
    modified 2018-07-12
    plugin id 47598
    published 2010-07-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47598
    title Fedora 13 : gcc-4.4.4-10.fc13 (2010-10415)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2010-122.NASL
    description 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&products_id=4 90 The updated packages have been patched to correct this issue.
    last seen 2019-01-16
    modified 2019-01-02
    plugin id 47116
    published 2010-06-23
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47116
    title Mandriva Linux Security Advisory : fastjar (MDVSA-2010:122)
redhat via4
advisories
rhsa
id RHSA-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-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
refmap via4
bid 41006
confirm
gentoo GLSA-201209-21
mandriva MDVSA-2010:122
mlist
  • [oss-security] 20100608 Re: jar, fastjar directory traversal vulnerabilities
  • [oss-security] 20100608 jar, fastjar directory traversal vulnerabilities
osvdb 65467
secunia
  • 42892
  • 50786
vupen
  • ADV-2010-1553
  • ADV-2011-0121
Last major update 18-04-2013 - 22:59
Published 18-06-2010 - 14:30
Back to Top