(Gentoo Issues Fix) unarj Input Validation Bug May Let Remote Users Create Files on the Target User's System
|
|
SecurityTracker Alert ID: 1012287 |
|
SecurityTracker URL: http://securitytracker.com/id/1012287
|
|
CVE Reference:
CAN-2004-1027
(Links to External Site)
|
Date: Nov 19 2004
|
Impact:
Modification of system information, Modification of user information
|
Fix Available: Yes Vendor Confirmed: Yes
|
Version(s): 2.65; possibly other versions
|
Description:
An input validation vulnerability was reported in unarj. A remote user can create a malicious archive that, when expanded by a target user, will write arbitrary files on the target user's system.
doubles reported that a remote user can create a specially crafted archive that contains files with the '../' directory traversal characters in the path. When the target user expands the archive using the unarj 'x' command parameter, files on the target user's system may be created or potentially overwritten with the privileges of the target user.
From testing on version 2.43, it appears that files can be created using directory traversal characters but not overwritten.
|
Impact:
A remote user can create an archive that, when expanded by the target user, will create files on the target user's system with the privileges of the target user.
[Editor's note: It is not clear whether this flaw allows file overwriting. Some users claim so, others dispute the claim. Our testing of version 2.43 showed that only file creation was possible with that particular version.]
|
Solution:
Gentoo has released a fix and indicates that all unarj users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/unarj-2.63a-r2"
|
Cause:
Access control error, Input validation error
|
Underlying OS:
Linux (Gentoo)
|
|
Message History:
This archive entry is a follow-up to the message listed below.
|
Source Message Contents
|
Date: Fri, 19 Nov 2004 23:28:31 +0100
Subject: [gentoo-announce] [ GLSA 200411-29 ] unarj: Long filenames buffer overflow and a path
|
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCCB7FA056050E6E0CDDD099D
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200411-29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Severity: Normal
Title: unarj: Long filenames buffer overflow and a path traversal
vulnerability
Date: November 19, 2004
Bugs: #70966
ID: 200411-29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Synopsis
========
unarj contains a buffer overflow and a directory traversal
vulnerability. This could lead to overwriting of arbitrary files or
the execution of arbitrary code.
Background
==========
unarj is an ARJ archive decompressor.
Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-arch/unarj < 2.63a-r2 >= 2.63a-r2
Description
===========
unarj has a bounds checking vulnerability within the handling of long
filenames in archives. It also fails to properly sanitize paths when
extracting an archive (if the "x" option is used to preserve paths).
Impact
======
An attacker could trigger a buffer overflow or a path traversal by
enticing a user to open an archive containing specially-crafted path
names, potentially resulting in the overwrite of files or execution of
arbitrary code with the permissions of the user running unarj.
Workaround
==========
There is no known workaround at this time.
Resolution
==========
All unarj users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/unarj-2.63a-r2"
References
==========
[ 1 ] CAN-2004-0947
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0947
[ 2 ] CAN-2004-1027
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1027
Availability
============
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
http://security.gentoo.org/glsa/glsa-200411-29.xml
Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.
License
=======
Copyright 2004 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).
The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.
--------------enigCCB7FA056050E6E0CDDD099D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBnnOPvcL1obalX08RAsDtAJ44n7sSw4HMaFxndkDULufQy4ETtwCffeqI
wBHzXNZtC/RXn6HlaIhwB1A=
=eqG/
-----END PGP SIGNATURE-----
--------------enigCCB7FA056050E6E0CDDD099D--
|
|