From owner-doc-jp@jp.freebsd.org  Wed May 10 09:58:52 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id JAA05058;
	Wed, 10 May 2000 09:58:52 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from po.cnet-sb.ne.jp (po.cnet-sb.ne.jp [210.227.100.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id JAA05053
	for <doc-jp@jp.freebsd.org>; Wed, 10 May 2000 09:58:51 +0900 (JST)
	(envelope-from yuhara@po.cnet-sb.ne.jp)
Received: from ludwig (ppp26.cnet-sb.ne.jp [210.227.100.156])
	by po.cnet-sb.ne.jp (8.8.7/8.8.7) with SMTP id JAA22012
	for <doc-jp@jp.freebsd.org>; Wed, 10 May 2000 09:58:45 +0900 (JST)
	(envelope-from yuhara@po.cnet-sb.ne.jp)
Date: Wed, 10 May 2000 10:02:08 +0900
From: shinichi yuhara <yuhara@po.cnet-sb.ne.jp>
To: doc-jp@jp.freebsd.org
Message-Id: <3918B510118.6CD8YUHARA@po.cnet-sb.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver 1.26.02
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: doc-jp 7356
Subject: [doc-jp 7356] Re: ANNOUNCE: FreeBSD Security Advisory: FreeBSD-SA-00:18.gnapster
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: yuhara@po.cnet-sb.ne.jp

$BEr86$G$9(B.

$B<h$j$"$($:(B,$B<+J,$N?H6a$J$3$H$@$C$?$N$G2a5n$NK]Lu$r;2>H$7$J$,(B
$B$i4JC1$KLu$7$F$_$^$7$?(B. $B=$@5$7$d$9$$$h$&$K86J8$ND>$0$7$?$KLu(B
$B$r:\$;$F$$$^$9(B.

=============================================================================
FreeBSD-SA-00:18                                           Security Advisory
                                                                FreeBSD, Inc.

$B%H%T%C%/(B:        gnapster port allows remote users to view
local files
$BJ,N`(B:            ports
$B%b%8%e!<%k(B:      gnapster
$B9pCNF|(B:          2000-05-09
$B2~D{<T(B:          $B@):n85$K$h$k=$@5(B
$B1F6AHO0O(B:        $B=$@5F|0JA0$N(BPorts collection.
$B=$@5F|(B:          2000-04-29
$B@):n85$N>uBV(B:    $B=$@5$5$l$?%P!<%8%g%s$,4{$K%j%j!<%9(B
FreeBSD$B$K8GM-$+(B: NO

I.   $BGX7J(B - Background

Gnapster is a client for the Napster file-sharing network.
Gnapster$B$O(BNapster$B%U%!%$%k6&M-%M%C%H%o!<%/$N%/%i%$%"%s%H$G$9(B.

II.  $BLdBj$N>\:Y(B - Problem Description

The gnapster port (version 1.3.8 and earlier) contains a vulnerability
which allows remote gnapster users to view any file on the local
system which is accessible to the user running gnapster. Gnapster does
not run with elevated privileges, so it is only the user's regular
filesystem access permissions which are involved.

gnapster$B$N(B1.3.8$B0JA0$N%W%m%0%i%`$G$O(Bgnapster$B#w5/F0$7$F$$$k%f!<(B
$B%6$N%m!<%+%k$KCV$$$F$"$kA4$F$N%U%!%$%k$r%M%C%H%o!<%/1[$7$N(B
gnapster$B%f!<%6$,FI$a$F$7$^$&$H8@$&4m81@-$,$"$j$^$9(B. 
gnapster$B$OFC8"$rM?$($i$l$F<B9T$5$l$F$$$k$o$1$G$O$J$$$N$G(B,$B$=(B
$B$NHO0O$O$O<B9T%f!<%6$,%"%/%;%9$r5vMF$5$l$F$$$k$@$1$G$G$9(B.

The gnapster port is not installed by default, nor is it "part of
FreeBSD" as such: it is part of the FreeBSD ports collection, which
contains over 3200 third-party applications in a ready-to-install
format. The ports collection shipped with FreeBSD 4.0 contains this
problem since it was discovered after the release.

gnapster $B$N(B port $B$O(B, $B%G%U%)%k%H$G%$%s%9%H!<%k$5$l$k$b$N$G$O(B
$B$J$/(B, FreeBSD $B%7%9%F%`$N0lIt$r9=@.$9$k$b$N$G$b$"$j$^$;$s(B.  
$B$=$l$O(B, 3200 $B$rD6$($k%5!<%I%Q!<%F%#@=$N%"%W%j%1!<%7%g%s$,$9(B
$B$0$K%$%s%9%H!<%k$G$-$k7A$G<}$a$i$l$F$$$k(B FreeBSD Ports
Collection $B$N0lIt$G$9(B.  $B%j%j!<%9$N8e$K8+$D$+$C$?$?$a$K(B
FreeBSD 4.0-RELEASE$B$K4^$^$l$k(B Ports Collection $B$K(B, $B$3$NLdBj(B
$B$K$h$k%;%-%e%j%F%#>e$N<eE@$,4^$^$l$F$$$^$9(B.


FreeBSD $B$G$O(B, $B$3$N$h$&$J%5!<%I%Q!<%F%#@=%"%W%j%1!<%7%g%s$N%;%-%e%j%F%#(B
$BLdBj$KBP$7$F(B, $BFC$K<gD%$9$k$3$H$O$"$j$^$;$s(B($BLuCm(B: ports $B$KF~$C$F$$$k$+$i(B
$B$H$$$C$F(B, FreeBSD $B$N3+H/<T$?$A$,$=$N%"%W%j%1!<%7%g%s$,0BA4$G$"$k$HI>2A(B
$B$7$?$o$1$G$O$"$j$^$;$s(B).

$B$?$@$7(B, $B%;%-%e%j%F%#LdBj$KBP$7$FBg$-$J1F6A$r;}$D$h$&$J(B ports $B$KBP$9$k(B
$B%;%-%e%j%F%#4F::$rDs6!$9$Y$/(B, $B8=:_EXNOCf$G$9(B. 


III. $B1F6AHO0O(B - Impact

Remote users can view files accessible to the user running the
gnapster client.
$B%j%b!<%H%f!<%6$,(Bgnapster$B%/%i%$%(%s%H$r5/F0$7$F$$$k%f!<%6$N%U%!(B
$B%$%k$r8+$k$3$H$,=PMh$^$9(B.

If you have not chosen to install the gnapster port/package, then your
system is not vulnerable to this problem.
$B$b$7(B,gnapster$B$N(Bport/packages$B$r%$%s%9%H!<%k$7$F$$$J$$$N$G$"(B
$B$l$P(B,$B$"$J$?$N%7%9%F%`$K%;%-%e%j%F%#>e$N<eE@$O$"$j$^$;$s(B.

IV.  $BBP1~:v(B - Workaround

Deinstall the gnapster port/package, if you you have installed it.
$B$b$7(B,$B4{$K%$%s%9%H!<%k$7$F$$$k$N$G$"$l$P(B,gnapster$B$N(B
port/package$B$r:o=|$7$F2<$5$$(B.

V.   $B=$@5=hCV(B - Solution

One of the following:
$BJ}K!$H$7$F$O(B:

1) Upgrade your entire ports collection and rebuild the gnapster port.
1) Ports Collection $BA4BN$r99?7$7$F(B, gnapster $B$N(B port $B$r:F%3(B
$B%s%Q%$%k$9$k(B.  


2) Reinstall a new package dated after the correction date, obtained from:
2) $B0J2<$N>l=j$+$i?7$7$$(B package $B$rF~<j$7$F%$%s%9%H!<%k$9$k(B.  

ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/audio/gnapster-1.3.9.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-stable/audio/gnapster-1.3.9.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-4-stable/audio/gnapster-1.3.9.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5-current/audio/gnapster-1.3.9.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-5-current/audio/gnapster-1.3.9.tgz

Note: it may be several days before the updated packages are available.
 $BCm(B: $B=$@5$5$l$?(B package $B$,8x3+$5$l$k$^$G(B, $B?tF|$+$+$k$+$bCN$l$^$;$s(B.  

3) download a new port skeleton for the gnapster port from:

http://www.freebsd.org/ports/

and use it to rebuild the port.

3) $B0J2<$N>l=j$+$i(B mtr $B$N(B $B?7$7$$(B port $B%9%1%k%H%s$r%@%&%s%m!<%I$7(B, 
   $B$=$l$rMxMQ$7$F(B mtr $B$N(B port $B$r:F%3%s%Q%$%k$9$k(B.  

http://www.freebsd.org/ports/

4) Use the portcheckout utility to automate option (3) above. The
portcheckout port is available in /usr/ports/devel/portcheckout or the
package can be obtained from:
4) portcheckout $B%f!<%F%#%j%F%#$r;H$&$H(B, $B>e5-(B (3) $B$r<+F0E*$K(B
   $B9T$J$&$3$H$,$G$-$^$9(B.  portcheckout $B$O(B,
   /usr/ports/devel/portcheckout $B$d(B, $B0J2<$N>l=j$+$iF~<j2DG=$G$9(B. 

ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/devel/portcheckout-1.0.tgz


