From owner-doc-jp@jp.freebsd.org  Sun Apr 16 22:15:53 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA33054;
	Sun, 16 Apr 2000 22:15:53 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from sv01.geocities.co.jp (sv01.geocities.co.jp [210.153.89.155])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id WAA33048
	for <doc-jp@jp.freebsd.org>; Sun, 16 Apr 2000 22:15:52 +0900 (JST)
	(envelope-from hrs@geocities.co.jp)
Received: from mail.geocities.co.jp (mail.geocities.co.jp [210.153.89.137]) by sv01.geocities.co.jp (8.9.3+3.2W/3.7W) with ESMTP id WAA20536 for <doc-jp@jp.freebsd.org>; Sun, 16 Apr 2000 22:15:52 +0900 (JST)
Received: from mail.hrs.jp (sutkmax1-ppp07.ed.kagu.sut.ac.jp [133.31.177.9]) by mail.geocities.co.jp (1.3G-GeocitiesJ-3.3) with ESMTP id WAA08397 for <doc-jp@jp.freebsd.org>; Sun, 16 Apr 2000 22:15:50 +0900 (JST)
Message-Id: <200004161315.WAA08397@mail.geocities.co.jp>
Received: from localhost (alph.hrs.jp [192.168.0.10])
	by mail.hrs.jp (8.9.3/3.7W/DomainMaster) with ESMTP id VAA11646
	for <doc-jp@jp.freebsd.org>; Sun, 16 Apr 2000 21:56:46 +0900 (JST)
	(envelope-from hrs@hrs.jp)
To: doc-jp@jp.freebsd.org
In-Reply-To: <200004102058.NAA07113@freefall.freebsd.org>
References: <200004102058.NAA07113@freefall.freebsd.org>
X-Mailer: Mew version 1.94 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Sun, 16 Apr 2000 21:56:44 +0900
From: Hiroki Sato <hrs@geocities.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 165
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: doc-jp 7290
Subject: [doc-jp 7290] Re: ANNOUNCE: FreeBSD Security Advisory: FreeBSD-SA-00:11.ircii
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: hrs@geocities.co.jp

$B:4F#!wEl5~M}2JBg3X$G$9!#(B

 $BCY$/$J$j$^$7$?$,!"(BSA-00:11.ircii $B$NK]Lu$G$9!#(B

 $B%X%C%@$N!V>pJsDs6!!W$O(B credits $B$NLu$G$9!#(B
 $B=i=P$@$H;W$$$^$9$N$G!"B>$KNI$$Lu0F$,$"$l$P0U8+$/$@$5$$!#(B

====================================

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

  Subject: ANNOUNCE: FreeBSD Security Advisory: FreeBSD-SA-00:11.ircii
  From: FreeBSD Security Officer <security-officer@freebsd.org>
  Date: Mon, 10 Apr 2000 13:58:54 -0700 (PDT)
  Message-Id: <200004102058.NAA07113@freefall.freebsd.org>
  X-Sequence: announce-jp 413

 $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$,(B
 $B;29M$N$?$a$KDs6!$9$k$b$N$G(B, $BK]Lu<T$*$h$S(B doc-jp $B$O(B $B$=$NFbMF$K$D$$$F(B
 $B$$$+$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:11                                           Security Advisory
                                                                FreeBSD, Inc.

$B%H%T%C%/(B:	ircII port contains a remote overflow

$BJ,N`(B:           ports
$B%b%8%e!<%k(B:     ircII
$B9pCNF|(B:         2000-04-10
$B>pJsDs6!(B:	Derek Callaway <super@UDEL.EDU> (BugTraq $B$h$j(B)
		"bladi" <bladi@EUSKALNET.NET> (BugTraq $B$h$j(B)
$B1F6AHO0O(B:       $B=$@5F|0JA0$N(B Ports collection 
$B=$@5F|(B:         2000-03-19
FreeBSD $B$K8GM-$+(B:   NO

I.   $BGX7J(B - Background

ircII is a popular text-mode IRC client.

ircII $B$O?M5$$N$"$k%F%-%9%H%b!<%I$N(B IRC $B%/%i%$%"%s%H$G$9(B.  

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

ircII version 4.4 contained a remotely-exploitable buffer overflow in
the /DCC CHAT command which allows remote users to execute arbitrary
code as the client user.

ircII $B%P!<%8%g%s(B 4.4 $B$N(B /DCC CHAT $B%3%^%s%I$K$O(B, $B%j%b!<%H$+$i0-MQ$5$l$k(B
$B4m81@-$N$"$k%P%C%U%!%*!<%P%U%m!<LdBj$,4^$^$l$F$$$^$9(B.  $B$3$l$r0-MQ$9$k(B
$B$3$H$G(B, $B%j%b!<%H%f!<%6$O%/%i%$%"%s%H%f!<%6$N8"8B$GG$0U$N%3!<%I$r(B
$B<B9T$9$k$3$H$,2DG=$G$9(B.  

The bug was originally reported in 1997 in a much older version of
ircII, but was apparently not corrected at the time, and the problem
was recently rediscovered independently. Development on the version of
ircII previously in ports ceased several years ago, and has been taken
up by a new group who have fixed this problem (and possibly
others). FreeBSD now provides this new version of ircII.

$B$3$N%P%0$O(B 1997 $BG/$K(B, $B5l%P!<%8%g%s$N(B ircII $B$G=i$a$FJs9p$5$l$^$7$?(B.  
$B$7$+$7(B, $B$=$N;~$K=$@5$5$l$J$+$C$?$N$+(B, $B:G6a$K$J$C$FF1$8LdBj$,(B
$B$=$l$H$OFHN)$K:FH/8+$5$l$^$7$?(B.  $B$=$NEv;~(B ports $B$KB8:_$7$F$$$?(B
$B%P!<%8%g%s$N(B ircII $B$O(B, $B3+H/$,?tG/A0$+$iDd;_$7$F$*$j(B, $B8=:_$O(B, 
$BH/8+$5$l$?LdBj(B($B$H(B, $BB>$N5?$o$7$$ItJ,(B)$B$r2r7h$7$??M!9$K$h$C$FJ]<i$,(B
$BB3$1$i$l$F$$$^$9(B.  $B8=:_(B FreeBSD $B$,Ds6!$7$F$$$k$N$O(B, $B$3$N=$@5$5$l$?(B
$B%P!<%8%g%s$N(B ircII $B$G$9(B.  

The ircII 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. FreeBSD 4.0 did not ship with the ircII package available
because this vulnerability was reported to us late in the release
cycle and it was not possible to upgrade the port in time.

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.

ircII $B$N(B port $B$O(B, $B%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$O(B, 3200 $B$r(B
$BD6$($k%5!<%I%Q!<%F%#@=$N%"%W%j%1!<%7%g%s$,$9$0$K%$%s%9%H!<%k$G$-$k7A$G(B
$B<}$a$i$l$F$$$k(B FreeBSD Ports Collection $B$N0lIt$G$9(B.  FreeBSD 4.0 $B$K$O(B, 
$B=$@5$5$l$?(B ircII package $B$O4^$^$l$F$$$^$;$s(B.  $B$3$l$O(B, $B$3$N%;%-%e%j%F%#>e$N(B
$B<eE@$,Js9p$5$l$?$N$,%j%j!<%9;~E@$h$j8e$G$"$C$?$3$H$+$i(B, $B%j%j!<%9$K(B
$B4V$K9g$o$;$F(B ircII port $B$r99?7$9$k$3$H$,$G$-$J$+$C$?$?$a$G$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$K2?$+$r<gD%$9$k$3$H$O$"$j$^$;$s(B($BLuCm(B: Ports Collection $B$K(B
$BF~$C$F$$$k$+$i$H$$$C$F(B, FreeBSD $B$N3+H/<T$?$A$,$=$N%"%W%j%1!<%7%g%s$,(B
$B0BA4$G$"$k$HI>2A$7$?$o$1$G$O$"$j$^$;$s(B). $B$?$@$7(B, $B%;%-%e%j%F%#LdBj$K(B
$BBP$7$FBg$-$J1F6A$r;}$D$h$&$J(B ports $B$KBP$9$k%;%-%e%j%F%#4F::$rDs6!$9$Y$/(B,
$B8=:_EXNOCf$G$9(B. 

III. $B1F6AHO0O(B - Impact

A remote user can cause arbitrary code to be executed on the local
system as the user running ircII.

$B%j%b!<%H%f!<%6$O(B, ircII $B$r<B9T$7$F$$$k%f!<%68"8B$G(B
$B%m!<%+%k%7%9%F%`>e$NG$0U$N%3!<%I$r<B9T$9$k$3$H$,2DG=$G$9(B.   

If you have not chosen to install the ircII port/package, then your
system is not known to be vulnerable to this problem, although there
are several other IRC clients which are derived from ircII including
Epic and BitchX. At this time it is unknown whether other clients are
vulnerable to this problem.

ircII $B$N(B port $B$b$7$/$O(B package $B$r%$%s%9%H!<%k$7$F$$$J$1$l$P(B, $B$=$N(B
$B%7%9%F%`$K$3$NLdBj$K$h$k%;%-%e%j%F%#>e$N<eE@$O$"$j$^$;$s(B.  $B$7$+$7B>$K$b(B
Epic $B$d(B BitchX $B$r4^$`(B ircII $BM3Mh$N(B IRC $B%/%i%$%"%s%H$,$$$/$D$+B8:_$7$^$9(B.
$B8=;~E@$G$O(B, $B$3$NLdBj$K$h$k%;%-%e%j%F%#>e$N<eE@$,(B, $B$3$l$i(B ircII $BM3Mh$N(B
IRC $B%/%i%$%"%s%H$KB8:_$9$k$+$I$&$+L@$i$+$K$5$l$F$$$^$;$s(B.  

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

Remove the ircII port, if you you have installed it.

ircII $B$N(B port $B$,%$%s%9%H!<%k$5$l$F$$$k>l9g$K$O(B, $B$=$l$r:o=|$7$F$/$@$5$$(B.  

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

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

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

2) Reinstall a new package dated after the correction date, obtained from:

2) $B0J2<$N>l=j$+$i(B, $B=$@5F|$h$j8e$K:n@.$5$l$??7$7$$(B package $B$rF~<j$7$F(B
   $B:F%$%s%9%H!<%k$9$k(B.

ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/irc/ircII-4.4S.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/irc/ircII-4.4S.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-3-stable/irc/ircII-4.4S.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5-current/irc/ircII-4.4S.tgz
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/alpha/packages-5-current/irc/ircII-4.4S.tgz

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

and use it to rebuild the port.

3) $B0J2<$N>l=j$+$i(B ircII $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 ircII $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

