From owner-doc-jp-work@jp.FreeBSD.org Sat Apr 17 04:11:56 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i3GJBun18251;
	Sat, 17 Apr 2004 04:11:56 +0900 (JST)
	(envelope-from owner-doc-jp-work@jp.FreeBSD.org)
Received: from smtp.eos.ocn.ne.jp (eos.ocn.ne.jp [211.6.83.117])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i3GJBu918246
	for <doc-jp-work@jp.FreeBSD.org>; Sat, 17 Apr 2004 04:11:56 +0900 (JST)
	(envelope-from hrs@FreeBSD.org)
Received: from delta.allbsd.org (p29143-adsao12honb4-acca.tokyo.ocn.ne.jp [219.161.182.143])
	by smtp.eos.ocn.ne.jp (Postfix) with ESMTP id 5ADEC23E2
	for <doc-jp-work@jp.FreeBSD.org>; Sat, 17 Apr 2004 04:11:55 +0900 (JST)
Received: from localhost (alph.allbsd.org [192.168.0.10])
	by delta.allbsd.org (8.12.9p2/8.12.9) with ESMTP id i3GJBQA2046013
	for <doc-jp-work@jp.FreeBSD.org>; Sat, 17 Apr 2004 04:11:32 +0900 (JST)
	(envelope-from hrs@FreeBSD.org)
Message-Id: <20040417.041024.57449685.hrs@eos.ocn.ne.jp>
To: doc-jp-work@jp.FreeBSD.org
From: Hiroki Sato <hrs@FreeBSD.org>
In-Reply-To: <200404151914.i3FJEE96004431@freefall.freebsd.org>
References: <200404151914.i3FJEE96004431@freefall.freebsd.org>
X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530  FFD7 4F2C D3D8 2793 CF2D
X-Mailer: Mew version 4.0.64 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Multipart/Signed; protocol="application/pgp-signature";
 micalg=pgp-sha1;
 boundary="--Security_Multipart0(Sat_Apr_17_04_10_24_2004_212)--"
Content-Transfer-Encoding: 7bit
Reply-To: doc-jp-work@jp.FreeBSD.org
Precedence: list
Date: Sat, 17 Apr 2004 04:10:24 +0900
X-Sequence: doc-jp-work 850
Subject: [doc-jp-work 850] Re: ANNOUNCE: [FreeBSD-Announce] FreeBSD Security Advisory
 FreeBSD-SA-04:07.cvs
Sender: owner-doc-jp-work@jp.FreeBSD.org
X-Originator: hrs@FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040413

----Security_Multipart0(Sat_Apr_17_04_10_24_2004_212)--
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sat_Apr_17_04_10_24_2004_737)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Sat_Apr_17_04_10_24_2004_737)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

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

 04:07 $B$G$9!#(B

--
| $B:4F#(B $B9-@8!wEl5~M}2JBg3X(B


----Next_Part(Sat_Apr_17_04_10_24_2004_737)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="04:07"


FreeBSD $B%;%-%e%j%F%#4+9p(B $BF|K\8lHG(B
=============================================================================
FreeBSD-SA-04:07.cvs (2004-04-15)
 * CVS path validation errors
=============================================================================

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

  Subject: ANNOUNCE: [FreeBSD-Announce] FreeBSD Security Advisory FreeBSD-SA-04:07.cvs
  From: FreeBSD Security Advisories <security-advisories@freebsd.org>
  Date: Thu, 15 Apr 2004 12:14:14 -0700
  Message-Id: <200404151914.i3FJEE96004431@freefall.freebsd.org>
  X-Sequence: announce-jp 1225

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

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

 $BF|K\8lLu$*$h$S%_%i!<%5%$%HMxMQ$N>\:Y$K$D$$$F$O!"J8Kv$N!V(BA. FreeBSD
 $B%;%-%e%j%F%#4+9p(B $BF|K\8lHG$K$D$$$F!W$r$4Mw$/$@$5$$!#(B


                                     [$BK]Lu<T(B: $B:4F#(B $B9-@8(B <hrs@jp.FreeBSD.org>]
--($B$3$3$+$i(B)

=============================================================================
FreeBSD-SA-04:07.cvs                                        Security Advisory
                                                          The FreeBSD Project

$B%H%T%C%/(B:	CVS $B$N%Q%9L>8!::$K$*$1$k%(%i!<(B
		(CVS path validation errors)

$BJ,N`(B:		contrib
$B%b%8%e!<%k(B:	contrib_cvs
$B9pCNF|(B:		2004-04-15
$B%/%l%8%C%H(B:	Sebastian Krahmer <krahmer@suse.de>
                Derek Robert Price <derek@ximbiot.com>
$B1F6AHO0O(B:	4.10-RELEASE $B$h$jA0$N!"$9$Y$F$N%P!<%8%g%s$N(B FreeBSD
$B=$@5F|(B:		2004-04-15 15:35:26 UTC (RELENG_4, 4.10-BETA)
                2004-04-15 15:42:50 UTC (RELENG_5_2, 5.2.1-RELEASE-p5)
                2004-04-15 15:59:05 UTC (RELENG_4_9, 4.9-RELEASE-p18)
                2004-04-15 15:59:54 UTC (RELENG_4_8, 4.8-RELEASE-p5)
CVE Name:       CAN-2004-0180
FreeBSD $B$K8GM-$+(B:	NO

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit
<URL:http://www.freebsd.org/security/>.

$B>e5-$N9`L\$d%;%-%e%j%F%#%V%i%s%A!"0J2<$N3F@a$D$$$F$N@bL@$J$I!"(B
FreeBSD $B%;%-%e%j%F%#4+9p$K$D$$$F$N0lHLE*$J>pJs$O!"(B
<URL:http://www.freebsd.org/security/> $B$r$4Mw$/$@$5$$!#(B


I.   $BGX7J(B - Background

The Concurrent Versions System (CVS) is a version control system.  It
may be used to access a repository locally, or to access a `remote
repository' using a number of different methods.  When accessing a
remote repository, the target machine runs the CVS server to fulfill
client requests.

Concurrent Versions System (CVS) $B$O!"%P!<%8%g%s4IM}%7%9%F%`$N0l$D$G$9!#(B
CVS $B$r;H$&$H!"%j%]%8%H%j(B ($BLuCm(B: CVS $B$G4IM}$5$l$k%G!<%?$NJ]4I>l=j$N(B
$B$3$H(B) $B$K%m!<%+%k$+$i%"%/%;%9$7$?$j!"$"$k$$$O%j%b!<%H$+$i$5$^$6$^$J(B
$BJ}K!$r;H$C$F%"%/%;%9$9$k$3$H$,$G$-$^$9!#%j%b!<%H$N%j%]%8%H%j$K(B
$B%"%/%;%9$9$k>l9g!"%/%i%$%"%s%H$+$i$NMW5a$r=hM}$9$k$?$a$K!"%"%/%;%9@h$N(B
$B%^%7%s$G$O(B CVS $B%5!<%P$,<B9T$5$l$^$9!#(B


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

Two programming errors were discovered in which path names handled by
CVS were not properly validated.  In one case, the CVS client accepts
absolute path names from the server when determining which files to
update.  In another case, the CVS server accepts relative path names
from the client when determining which files to transmit, including
those containing references to parent directories (`../').

CVS $B$N%Q%9L>$r=hM}$9$kItJ,$K!"%Q%9L>$N8!::$,@5$7$/$*$3$J$o$l$F$$$J$$$H$$$&(B
$B%W%m%0%i%`$N8m$j$,!"(B2 $B%+=jH/8+$5$l$^$7$?!#$R$H$D$O!"(B
$B99?7$9$Y$-%U%!%$%k$r(B CVS $B%/%i%$%"%s%H$,H=JL$9$k:]$K!"(B
$B%5!<%P$+$iAw$i$l$F$/$k@dBP%Q%9L>$r<uM}$7$F$7$^$&$H$$$&$b$N!"(B
$B$b$&$R$H$D$O!"E>Aw$9$Y$-%U%!%$%k$r(B CVS $B%5!<%P$,H=JL$9$k:]$K!"(B
$B%/%i%$%"%s%H$+$iAw$i$l$F$/$k!V(B../$B!W(B($B?F%G%#%l%/%H%j$X$N;2>H(B) $B$r4^$`(B
$BAjBP%Q%9L>$r<uM}$7$F$7$^$&$H$$$&$b$N$G$9!#(B


III. $B1F6AHO0O(B - Impact

These programming errors generally only have a security impact when
dealing with remote CVS repositories.

$BDL>o!"$3$l$i$N%W%m%0%i%`>e$N8m$j$O!"%j%b!<%H$N(B CVS $B%j%]%8%H%j$r(B
$B07$&>l9g$K$N$_!"%;%-%e%j%F%#>e$NLdBj$H$J$j$^$9!#(B

A malicious CVS server may cause a CVS client to overwrite arbitrary
files on the client's system.

$B0-0U$r;}$C$?(B CVS $B%5!<%P$O!"(BCVS $B%/%i%$%"%s%H$r0-MQ$7$F!"%/%i%$%"%s%H(B
$B%7%9%F%`>e$NG$0U$N%U%!%$%k$r>e=q$-$9$k$3$H$,$G$-$k2DG=@-$,$"$j$^$9!#(B

A CVS client may request RCS files from a remote system other than
those in the repository specified by $CVSROOT.  These RCS files need
not be part of any CVS repository themselves.

CVS $B%/%i%$%"%s%H$r;H$C$F!"%j%b!<%H%7%9%F%`>e$N(B $CVSROOT $B$G;XDj$5$l$?(B
$B%j%]%8%H%j0J30$N>l=j$KJ]B8$5$l$?(B RCS $B%U%!%$%k$rMW5a$9$k$3$H$,$G$-$k(B
$B2DG=@-$,$"$j$^$9!#$3$N(B RCS $B%U%!%$%k$K$O!"(BCVS $B%j%]%8%H%j$HL54X78$N(B
$B>l=j$KB8:_$9$k$b$N$b4^$^$l$^$9!#(B


IV.  $B2sHrJ}K!(B - Workaround

Disable remote CVS repository operations.

$B%j%b!<%H$+$i$N(B CVS $B%j%]%8%H%jA`:n$rL58z$K$7$F$/$@$5$$!#(B


V.   $B2r7h:v(B - Solution

Perform one of the following:

$B<!$N$$$:$l$+$R$H$D$K=>$C$F$/$@$5$$!#(B

1) Upgrade your vulnerable system to 4-STABLE; or to the RELENG_5_2,
RELENG_4_9, or RELENG_4_8 security branch dated after the correction
date.

1) $B<eE@$r;}$C$?(B FreeBSD $B%7%9%F%`$r:G?7$N(B 4-STABLE $B$K99?7$9$k$+!"(B
   $B$"$k$$$O=$@5F|0J9_$N(B RELENG_5_2, RELENG_4_9, RELENG_4_8
   $B%;%-%e%j%F%#%V%i%s%A$N$$$:$l$+$K%"%C%W%0%l!<%I$9$k!#(B

2) To patch your present system:
2) $B8=:_$N%7%9%F%`$K=$@5%Q%C%A$rE,MQ$9$k!#(B

The following patches have been verified to apply to FreeBSD 4.8,
4.9, 5.1, and 5.2 systems.

$B0J2<$N=$@5%Q%C%A$O!"(BFreeBSD 4.8, FreeBSD 4.9, FreeBSD 5.1,
FreeBSD 5.2 $B$N3F%7%9%F%`$KE,MQ2DG=$J$3$H$,3NG'$5$l$F$$$k$b$N$G$9!#(B

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.
a) $B0J2<$N>l=j$+$i=$@5%Q%C%A$r%@%&%s%m!<%I$7!"(BPGP $B%f!<%F%#%j%F%#$r;H$C$F(B
   PGP $B=pL>$r3NG'$7$^$9!#(B

# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-04:07/cvs.patch
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-04:07/cvs.patch.asc

b) Execute the following commands as root:
b) root $B8"8B$G<!$N%3%^%s%I$r<B9T$7$^$9!#(B

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/gnu/usr.bin/cvs
# make obj && make depend && make && make install

($BLuCm(B: /path/to/patch $B$NItJ,$O=$@5%Q%C%A$N%Q%9L>$KCV$-49$($F$/$@$5$$(B)


VI.  $B=$@5$N>\:Y(B - Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

FreeBSD $B$K$*$$$F:#2s=$@5$5$l$?3F%U%!%$%k$N%j%S%8%g%sHV9f$O!"0J2<$N$H$*$j$G$9!#(B

Branch                                                           Revision
$B%V%i%s%A(B                                                         $B%j%S%8%g%s(B
  Path
  $B%Q%9L>(B
- -------------------------------------------------------------------------
RELENG_4
  src/contrib/cvs/src/client.c                                    1.2.2.7
  src/contrib/cvs/src/modules.c                               1.1.1.5.2.4
RELENG_5_2
  src/UPDATING                                                 1.282.2.13
  src/sys/conf/newvers.sh                                       1.56.2.12
  src/contrib/cvs/src/client.c                                   1.10.4.1
  src/contrib/cvs/src/modules.c                               1.1.1.8.6.2
RELENG_4_9
  src/UPDATING                                              1.73.2.89.2.6
  src/sys/conf/newvers.sh                                   1.44.2.32.2.6
  src/contrib/cvs/src/client.c                                1.2.2.6.4.1
  src/contrib/cvs/src/modules.c                           1.1.1.5.2.3.4.1
RELENG_4_8
  src/UPDATING                                             1.73.2.80.2.21
  src/sys/conf/newvers.sh                                  1.44.2.29.2.19
  src/contrib/cvs/src/client.c                                1.2.2.6.2.1
  src/contrib/cvs/src/modules.c                           1.1.1.5.2.3.2.1
- -------------------------------------------------------------------------

VII. $B;29M;qNA(B - References

http://ccvs.cvshome.org/servlets/NewsItemView?newsID=102

A.   FreeBSD $B%;%-%e%j%F%#4+9p(B $BF|K\8lHG$K$D$$$F(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$9!#2a5n$NF|K\8lHG%;%-%e%j%F%#4+9p$O(B

 http://www.FreeBSD.org/ja/security/

$B$K$^$H$a$i$l$F$$$^$9!#(B

$B$?$@$7K]Lu<T$*$h$S(B doc-jp $B$O!"$=$NFbMF$K$D$$$F$$$+$J$kJ]>Z$b(B
$B$$$?$7$^$;$s$N$G$4Cm0U$/$@$5$$!#F|K\8lLu$K$D$$$F$N$40U8+!"$4MWK>!"(B
$B$*Ld$$9g$o$;Ey$O(B doc-jp@jp.FreeBSD.org $B$^$G$*4j$$$7$^$9!#(B

$B$3$N4+9p$NCf$G>R2p$5$l$F$$$k(B WWW $B%5%$%H(B http://www.FreeBSD.org/ $B$*$h$S(B
FTP $B%5%$%H(B ftp://ftp.FreeBSD.org/ $B$K$O(B, $BF|K\$N%_%i!<%5%$%H$,B8:_$7$^$9!#(B
$B%M%C%H%o!<%/$N:.;($r4KOB$9$k$?$a!"$^$:$O%_%i!<%5%$%H$NMxMQ$r(B
$B9MN8$9$k$h$&$*4j$$$7$^$9!#(B

$BF|K\$N%_%i!<%5%$%H$rMxMQ$9$k$K$O!"(B
http://www.FreeBSD.org/ $B$r(B http://www.jp.FreeBSD.org/www.freebsd.org/ $B$K!"(B
ftp://ftp.FreeBSD.org/ $B$r(B ftp://ftp.jp.FreeBSD.org/ $B$K!"(B
$B$=$l$>$lCV$-49$($F$/$@$5$$!#(B

$BB>$NCO0h$r4^$`%_%i!<%5%$%H$K4X$9$k>\:Y$O(B

 http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/mirrors.html ($B1QJ8(B)
 http://www.FreeBSD.org/doc/ja_JP.eucJP/books/handbook/mirrors.html ($BF|K\8lLu(B)

$B$K$^$H$a$i$l$F$$$^$9!#(B

$hrs: announce-jp/FreeBSD-SA/04:07,v 1.2 2004/04/16 19:08:04 hrs Exp $

----Next_Part(Sat_Apr_17_04_10_24_2004_737)----

----Security_Multipart0(Sat_Apr_17_04_10_24_2004_212)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAgC+iTyzT2CeTzy0RAkz6AKC3uWYWvcKpFuqGaucvkt+lq8HGzwCff9o2
s+q3yRe9oUuotmMEdrSfDSw=
=TXhA
-----END PGP SIGNATURE-----

----Security_Multipart0(Sat_Apr_17_04_10_24_2004_212)----
