From owner-doc-jp@jp.freebsd.org  Fri Jul 14 01:53:16 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA18231;
	Fri, 14 Jul 2000 01:53:16 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from smtp02.246.ne.jp (smtp02.246.ne.jp [210.253.192.36])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with SMTP id BAA18224
	for <doc-jp@jp.freebsd.org>; Fri, 14 Jul 2000 01:53:11 +0900 (JST)
	(envelope-from y-koga@jp.FreeBSD.org)
Received: (qmail 12140 invoked by alias); 14 Jul 2000 01:53:10 +0900
Message-ID: <20000713165310.12139.qmail@smtp.246.ne.jp>
Received: (qmail 12117 invoked from network); 14 Jul 2000 01:53:08 +0900
Received: from tp4hr010.246.ne.jp (HELO localhost) (210.253.193.10)
  by smtp.246.ne.jp with SMTP; 14 Jul 2000 01:53:08 +0900
To: doc-jp@jp.freebsd.org
In-Reply-To: <20000705231442.2469737BCB2@hub.freebsd.org>
References: <20000705231442.2469737BCB2@hub.freebsd.org>
X-Mailer: Mew version 1.94.2 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Fri, 14 Jul 2000 01:49:26 +0900
From: Koga Youichirou <y-koga@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: doc-jp 7551
Subject: [doc-jp 7551] Re: ANNOUNCE: FreeBSD Ports Security Advisory:
 FreeBSD-SA-00:32.bitchx
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: y-koga@jp.freebsd.org

$B;D$k$O!"(BFreeBSD-SA-00:33 $B$@$1!#(B

BEGIN------------------- $B$3$3$+$i(B ------------------------
 $B$3$N%a!<%k$O(B, announce-jp $B$KN.$l$?(B

  Subject: ANNOUNCE: FreeBSD Ports Security Advisory: FreeBSD-SA-00:32.bitchx
  From: FreeBSD Security Advisories <security-advisories@freebsd.org>
  Date: Wed,  5 Jul 2000 16:14:42 -0700 (PDT)
  Message-Id: <20000705231442.2469737BCB2@hub.freebsd.org>
  X-Sequence: announce-jp 472

 $B$rF|K\8lLu$7$?$b$N$G$9(B. 

 $B86J8$O(B PGP $B=pL>$5$l$F$$$^$9$,(B, $B$3$NF|K\8lLu$O(B PGP $B=pL>$5$l$F$$$^$;$s(B. 
 $B%Q%C%AEy$NFbMF$,2~cb$5$l$F$$$J$$$3$H$r3NG'$9$k$?$a$K(B PGP $B$N%A%'%C%/$r(B
 $B9T$J$&$K$O(B, $B86J8$r;2>H$7$F$/$@$5$$(B. 

 $BF|K\8lLu$O(B FreeBSD $BF|K\8l%I%-%e%a%s%F!<%7%g%s%W%m%8%'%/%H(B(doc-jp)$B$,;29M$N(B
 $B$?$a$KDs6!$9$k$b$N$G(B, doc-jp $B$O(B $B$=$NFbMF$K$D$$$F$$$+$J$kJ]>Z$b$$$?$7$^$;$s(B.
 $BF|K\8lLu$K$D$$$F$N$*Ld$$9g$o$;$O(B doc-jp@jp.FreeBSD.org $B$^$G$*4j$$$7$^$9(B.

--($B$3$3$+$i(B)
=============================================================================
FreeBSD-SA-00:32                                           Security Advisory
                                                                FreeBSD, Inc.

$B%H%T%C%/(B:	bitchx port contains client-side vulnerability

$BJ,N`(B:		ports
$B%b%8%e!<%k(B:	bitchx
$B9pCNF|(B:		2000-07-05
$B1F6AHO0O(B:	Ports Collection
$B=$@5F|(B:		2000-07-03
$B%Y%s%@$N%9%F!<%?%9(B:	$B%Q%C%A8x3+:Q(B
FreeBSD $B$K8GM-$+(B:	NO

I.   $BGX7J(B - Background

BitchX is a popular IRC client.

bitchx $B$O?M5$$N$"$k(B IRC $B%/%i%$%"%s%H%W%m%0%i%`$G$9(B. 

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

The bitchx client incorrectly parses string-formatting operators
included as part of channel invitation messages sent by remote IRC
users. This can cause the local client to crash, and may possibly
present the ability to execute arbitrary code as the local user.

bitchx $B%/%i%$%"%s%H$O(B, $B%j%b!<%H$N(B IRC $B%f!<%6$+$iAw$i$l$k%A%c%M%k>7BT%a(B
$B%C%;!<%8$K4^$^$l$k(B string-formatting operators $B$N%Q!<%:$,E,@Z$K9T$J$o(B
$B$l$^$;$s(B. $B$3$l$K$h$j(B, $B%m!<%+%k%/%i%$%"%s%H$r%/%i%C%7%e$5$;$?$j(B, $B$*$=$i(B
$B$/%m!<%+%k%f!<%68"8B$GG$0U$N%3!<%I$r<B9T$5$;$k$3$H$,2DG=$G$9(B. 

The bitchx 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 3400 third-party applications in a ready-to-install
format. The ports collections shipped with FreeBSD 4.0 and 3.5 contain
this problem since it was discovered after the release.

bitchx $B$N(B port $B$O%G%U%)%k%H$G%$%s%9%H!<%k$5$l$k$b$N$G$O$J$/(B, FreeBSD 
$B%7%9%F%`$N0lIt$r9=@.$9$k$b$N$G$b$"$j$^$;$s(B. $B$=$l$i$O(B, 3400 $B$rD6$($k%5(B
$B!<%I%Q!<%F%#@=$N%"%W%j%1!<%7%g%s$,$9$0$K%$%s%9%H!<%k$G$-$k7A$G<}$a$i$l(B
$B$F$$$k(B FreeBSD Ports Collection $B$N0lIt$G$9(B. FreeBSD 4.0 $B$*$h$S(B FreeBSD
3.5 $B$H$H$b$K=P2Y$5$l$?(B ports $B%3%l%/%7%g%s$O(B, $B%j%j!<%98e$KLdBj$,8+$D$+(B
$B$C$?$?$a$K$3$NLdBj$r4^$s$G$$$^$9(B.

FreeBSD makes no claim about the security of these third-party
applications, although an effort is underway to provide a security
audit of the most security-critical ports.

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$K2?$+$r<gD%$9$k$3$H$O$"$j$^$;$s(B ($BLuCm(B: Ports
Collection $B$KF~$C$F$$$k$+$i$H$$$C$F(B, FreeBSD $B$N3+H/<T$?$A$,$=$N%"%W%j(B
$B%1!<%7%g%s$,0BA4$G$"$k$HI>2A$7$?$o$1$G$O$"$j$^$;$s(B). $B$?$@$7(B, $B%;%-%e%j(B
$B%F%#LdBj$KBP$7$FBg$-$J1F6A$r;}$D$h$&$J(B ports $B$KBP$9$k%;%-%e%j%F%#4F::(B
$B$rDs6!$9$Y$/(B, $B8=:_EXNOCf$G$9(B. 

III. $B1F6AHO0O(B - Impact

Remote IRC users can cause the local client to crash, and possibly
execute code as the local user.

$B%j%b!<%H$N(B IRC $B%f!<%6$,(B, $B%m!<%+%k$N%/%i%$%"%s%H$r%/%i%C%7%e$5$;$k$3$H(B
$B$,2DG=$G$9(B. $B$=$7$F(B, $B$*$=$i$/%m!<%+%k%f!<%6$N8"8B$G%3!<%I$r<B9T$9$k$3$H(B
$B$,2DG=$G$9(B. 

If you have not chosen to install the bitchx port/package, then
your system is not vulnerable to this problem.

bitchx $B$N(B port/package $B$r%$%s%9%H!<%k$7$F$$$J$1$l$P(B, $B$=$N%7%9%F%`$K$3(B
$B$NLdBj$K$D$$$F$N%;%-%e%j%F%#>e$N<eE@$O$"$j$^$;$s(B.

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

Issue the following bitchx command (e.g. as part of a startup script):

/ignore * invites

which will disable processing of channel invitation messages.

$B0J2<$N(B bitchx $B%3%^%s%I$r<B9T$7$F(B, $B%A%c%M%k$N>7BT%a%C%;!<%8$N=hM}$rL58z(B
$B$K$9$k(B. 

/ignore * invites

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

One of the following:

$B0J2<$N$$$:$l$+$r9T$J$C$F$/$@$5$$(B. 

1) Upgrade your entire ports collection and rebuild the bitchx port.

1) Ports Collection $BA4BN$r99?7$7$F(B, Canna $B$N(B port $B$r:F%3%s%Q%$%k$9$k(B.

2) Deinstall the old package and install a new package dated after the
correction date, obtained from:

2) $B8E$$(B package $B$r%"%s%$%s%9%H!<%k$7(B, $B=$@5F|0J9_$N?7$7$$(B package $B$r%$(B 
$B%s%9%H!<%k$9$k(B. $B?7$7$$%Q%C%1!<%8$O(B, $B0J2<$N>l=j$+$iF~<j2DG=$G$9(B. 

ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/irc/bitchx-1.0c16.tar.gz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-stable/irc/bitchx-1.0c16.tar.gz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-4-stable/irc/bitchx-1.0c16.tar.gz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5-current/irc/bitchx-1.0c16.tar.gz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-5-current/irc/bitchx-1.0c16.tar.gz

NOTE: It may be several days before updated packages are available. Be
sure to check the file creation date on the package, because the
version number of the software has not changed.

$BCm0U(B: $B99?7$5$l$?(B packages $B$,Ds6!$5$l$k$^$G?tF|$+$+$k$+$b$7$l$^$;$s(B. $B99(B
$B?7$5$l$F$b$=$N%=%U%H%&%'%"$N%P!<%8%g%sHV9f$OJQ$o$j$^$;$s$N$G(B, $B$=$N(B 
package $B$N%U%!%$%k$N:n@.F|$rI,$:3NG'$9$k$h$&$K$7$F$/$@$5$$(B. 

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

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

and use it to rebuild the port.

3) $B0J2<$N>l=j$+$i(B bitchx $B$N?7$7$$(B port $B%9%1%k%H%s$r%@%&%s%m!<%I$7(B, $B$=(B
$B$l$r;HMQ$7$F(B bitchx $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;HMQ$9$k$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

END--------------------- $B$3$3$^$G(B ------------------------
----
$B$3$,$h$&$$$A$m$&(B
