OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-web Date: 06-Aug-2004 17:37:45
Branch: HEAD Handle: 2004080616374500
Added files:
openpkg-web/security OpenPKG-SA-2004.036-cvstrac.txt
Log:
introduce SA-2004.036-cvstrac, no CAN available
Summary:
Revision Changes Path
1.1 +103 -0 openpkg-web/security/OpenPKG-SA-2004.036-cvstrac.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-web/security/OpenPKG-SA-2004.036-cvstrac.txt
============================================================================
$ cvs diff -u -r0 -r1.1 OpenPKG-SA-2004.036-cvstrac.txt
--- /dev/null 2004-08-06 17:37:45 +0200
+++ OpenPKG-SA-2004.036-cvstrac.txt 2004-08-06 17:37:45 +0200
@@ -0,0 +1,103 @@
+________________________________________________________________________
+
+OpenPKG Security Advisory The OpenPKG Project
+http://www.openpkg.org/security.html http://www.openpkg.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
+OpenPKG-SA-2004.036 06-Aug-2004
+________________________________________________________________________
+
+Package: cvstrac
+Vulnerability: arbitrary code execution
+OpenPKG Specific: no
+
+Affected Releases: Affected Packages: Corrected Packages:
+OpenPKG CURRENT <= cvstrac-1.1.3-20040505 >= cvstrac-1.1.3-20040806
+OpenPKG 2.1 <= cvstrac-1.1.3-2.1.0 >= cvstrac-1.1.3-2.1.1
+OpenPKG 2.0 <= cvstrac-1.1.2-2.0.0 >= cvstrac-1.1.2-2.0.1
+
+Affected Releases: Dependent Packages:
+OpenPKG CURRENT None
+OpenPKG 2.1 None
+OpenPKG 2.0 None
+
+Description:
+ As posted to BugTraq [1], Richard Ngo discovered a vulnerability in
+ CVSTrac [2]. If properly exploited an attacker could execute arbitrary
+ code on the CVSTrac host with the privileges of the associated web server.
+
+ Please check whether you are affected by running "<prefix>/bin/openpkg
+ rpm -q cvstrac". If you have the "cvstrac" package installed and its
+ version is affected (see above), we recommend that you immediately
+ upgrade it (see Solution) [3][4].
+
+Solution:
+ Select the updated source RPM appropriate for your OpenPKG release
+ [5][6] and fetch it from the OpenPKG FTP service [7][8] or a mirror
+ location. Verify its integrity [9], build a corresponding binary
+ RPM from it [3] and update your OpenPKG installation by applying the
+ binary RPM [4]. For the most recent release OpenPKG 2.1, perform the
+ following operations to permanently fix the security problem (for
+ other releases adjust accordingly).
+
+ $ ftp ftp.openpkg.org
+ ftp> bin
+ ftp> cd release/2.1/UPD
+ ftp> get cvstrac-1.1.3-2.1.1.src.rpm
+ ftp> bye
+ $ <prefix>/bin/openpkg rpm -v --checksig cvstrac-1.1.3-2.1.1.src.rpm
+ $ <prefix>/bin/openpkg rpm --rebuild cvstrac-1.1.3-2.1.1.src.rpm
+ $ su -
+ # <prefix>/bin/openpkg rpm -Fvh <prefix>/RPM/PKG/cvstrac-1.1.3-2.1.1.*.rpm
+
+Addendum:
+ Although simply upgrading the affected CVSTrac installation does remove
+ the vulnerability in question, the existing CVSTrac configuration can be
+ corrected as well. Repeat the following for all project databases:
+
+ $ <prefix>/bin/sqlite <prefix>/var/cvstrac/<project>.db
+ SQLite version 2.8.14
+ Enter ".help" for instructions
+ sqlite> select value from config where name="filediff";
+ rcsdiff -q -r%V1 -r%V2 -u '%F'
+ sqlite> select value from config where name="filelist";
+ co -q -p%V '%F' | diff -c /dev/null -
+ sqlite> .exit
+
+Any commands using version or file replacements (%V, %V1, %V2, %F) but
+lacking single quotes (') around them should be corrected:
+
+ $ <prefix>/bin/sqlite <prefix>/var/cvstrac/<project>.db
+ SQLite version 2.8.14
+ Enter ".help" for instructions
+ sqlite> update config
+ ...> set value="rcsdiff -q -r'%V1' -r'%V2' -u '%F'"
+ ...> where name="filediff";
+ sqlite> update config
+ ...> set value="co -q -p '%V' '%F' | diff -c /dev/null -"
+ ...> where name="filelist";
+ sqlite> .exit
+
+An identical result can be achieved by logging in to the CVSTrac project
+pages as the user 'setup'. Select 'Diff Programs' from the 'Setup Menu',
+and then review both HTML input fields for missing single quotes as shown.
+________________________________________________________________________
+
+References:
+ [1] http://www.securityfocus.com/archive/1/370955/2004-08-03/2004-08-09/0
+ [2] http://www.cvstrac.org/
+ [3] http://www.openpkg.org/tutorial.html#regular-source
+ [4] http://www.openpkg.org/tutorial.html#regular-binary
+ [5] ftp://ftp.openpkg.org/release/2.1/UPD/cvstrac-1.1.3-2.1.1.src.rpm
+ [6] ftp://ftp.openpkg.org/release/2.0/UPD/cvstrac-1.1.2-2.0.1.src.rpm
+ [7] ftp://ftp.openpkg.org/release/2.1/UPD/
+ [8] ftp://ftp.openpkg.org/release/2.0/UPD/
+ [9] http://www.openpkg.org/security.html#signature
+________________________________________________________________________
+
+For security reasons, this advisory was digitally signed with the
+OpenPGP public key "OpenPKG <[EMAIL PROTECTED]>" (ID 63C4CB9F) of the
+OpenPKG project which you can retrieve from http://pgp.openpkg.org and
+hkp://pgp.openpkg.org. Follow the instructions on http://pgp.openpkg.org/
+for details on how to verify the integrity of this advisory.
+________________________________________________________________________
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]