Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70966 - app-arch/unarj: Filename Handling Buffer Overflow - CAN-2004-0947
Summary: app-arch/unarj: Filename Handling Buffer Overflow - CAN-2004-0947
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B2 [glsa] jaervosz
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-12 07:53 UTC by Luke Macken (RETIRED)
Modified: 2004-12-02 21:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
unarj-overflow.diff (unarj-overflow.diff,1.49 KB, patch)
2004-11-12 08:00 UTC, solar (RETIRED)
no flags Details | Diff
unarj-path.diff (unarj-path.diff,2.97 KB, patch)
2004-11-12 08:01 UTC, solar (RETIRED)
no flags Details | Diff
overflow.arj (overflow.arj,2.06 KB, application/octet-stream)
2004-11-19 06:52 UTC, solar (RETIRED)
no flags Details
path.arj (path.arj,143 bytes, application/octet-stream)
2004-11-19 06:53 UTC, solar (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macken (RETIRED) gentoo-dev 2004-11-12 07:53:12 UTC
TITLE:
UNARJ Filename Handling Buffer Overflow Vulnerability

SECUNIA ADVISORY ID:
SA13177

VERIFY ADVISORY:
http://secunia.com/advisories/13177/

CRITICAL:
Moderately critical

IMPACT:
System access

WHERE:
From remote

SOFTWARE:
UNARJ 2.x
http://secunia.com/product/4036/

DESCRIPTION:
A vulnerability has been reported in UNARJ, which potentially can be exploited by malicious people to compromise a user's system.

The vulnerability is caused due to a boundary error within the handling of long filenames in archives. This can be exploited to cause a buffer overflow by tricking a user into opening a malicious archive with a specially crafted path.

Successful exploitation may allow execution of arbitrary code.

SOLUTION:
The vendor reports that UNARJ is just a demonstration product and should not be used on production systems.

The vendor recommends users to use ARJ instead.

PROVIDED AND/OR DISCOVERED BY:
First reported in a Fedora advisory.

ORIGINAL ADVISORY:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138468
Comment 1 solar (RETIRED) gentoo-dev 2004-11-12 08:00:38 UTC
Created attachment 43787 [details, diff]
unarj-overflow.diff

patch #1
Comment 2 solar (RETIRED) gentoo-dev 2004-11-12 08:01:12 UTC
Created attachment 43788 [details, diff]
unarj-path.diff

patch #2
Comment 3 solar (RETIRED) gentoo-dev 2004-11-12 08:40:49 UTC
patches come from Ludwig Nussel <ludwig.nussel.@suse.de>
Comment 4 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-11-12 23:27:21 UTC
Solar this is unmaintained will you patch?
Comment 5 solar (RETIRED) gentoo-dev 2004-11-14 19:48:50 UTC
Using commit message:
------------------------------------------------------------------------------
security bump - CAN-2004-0947 - bug 70966
------------------------------------------------------------------------------

Old:
unarj-2.63a-r1 
KEYWORDS="x86 ppc sparc alpha arm amd64"

New 
unarj-2.63a-r2 
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~amd64"

Arch maintainers you can do the Hokey-Pokey and turn your arch around.
Comment 6 Jochen Maes (RETIRED) gentoo-dev 2004-11-14 23:48:01 UTC
stable on ppc
Comment 7 Gustavo Zacarias (RETIRED) gentoo-dev 2004-11-15 05:21:40 UTC
sparc stable.
Comment 8 Bryan Østergaard (RETIRED) gentoo-dev 2004-11-16 01:23:15 UTC
Stable on alpha.
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2004-11-16 02:54:39 UTC
stable on amd64
Comment 10 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-11-16 23:33:51 UTC
x86 please mark stable.
Comment 11 Olivier Crete (RETIRED) gentoo-dev 2004-11-18 07:27:26 UTC
sorry for the delay.. its there
Comment 12 solar (RETIRED) gentoo-dev 2004-11-19 06:52:27 UTC
Created attachment 44273 [details]
overflow.arj

solar@simple a $ unarj overflow.arj 
UNARJ (Demo version) 2.63 Copyright (c) 1991-2000 ARJ Software, Inc.

Processing archive: overflow.arj
Archive created: 2004-11-08 12:28:06, modified: 2004-11-08 12:30:28

Bad header
Comment 13 solar (RETIRED) gentoo-dev 2004-11-19 06:53:21 UTC
Created attachment 44274 [details]
path.arj

solar@simple a $ unarj path.arj 
UNARJ (Demo version) 2.63 Copyright (c) 1991-2000 ARJ Software, Inc.

Processing archive: path.arj
Archive created: 2004-11-09 13:23:52, modified: 2004-11-09 13:23:52
Filename       Original Compressed Ratio DateTime modified CRC-32   AttrBTPMGVX

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

FOO		      4 	 4 1.000 04-10-13 11:00:04 7E3265A8	 B+0   

------------ ---------- ---------- ----- -----------------
     1 files	      4 	 4 1.000 04-11-09 13:23:52
Comment 14 solar (RETIRED) gentoo-dev 2004-11-19 06:53:55 UTC
Two POC arj's for testing.
Comment 15 solar (RETIRED) gentoo-dev 2004-11-19 06:55:07 UTC
arch arm remains.. SpankY poke poke.
Comment 16 Thierry Carrez (RETIRED) gentoo-dev 2004-11-19 14:30:38 UTC
GLSA 200411-29
arm should mark stable to benefit from GLSA