Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!

TUCoPS :: Linux :: Apps A-M :: hack1269.htm

cvstrac - OpenPKG Security Advisory (cvstrac) OpenPKG-SA-2004.036
[OpenPKG-SA-2004.036] OpenPKG Security Advisory (cvstrac)

Hash: SHA1


OpenPKG Security Advisory                            The OpenPKG Project                    
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

Dependent Packages:  none

  As reported on BugTraq [1], Richard Ngo discovered a vulnerability
  in the CVS repository web browsing tool CVSTrac [2]. If properly
  exploited an attacker can execute arbitrary code on the CVSTrac host
  with the privileges of the associated web server.

  Please check whether you are affected by running "/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].

  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> bin
  ftp> cd release/2.1/UPD
  ftp> get cvstrac-1.1.3-2.1.1.src.rpm
  ftp> bye
  $ /bin/openpkg rpm -v --checksig cvstrac-1.1.3-2.1.1.src.rpm
  $ /bin/openpkg rpm --rebuild cvstrac-1.1.3-2.1.1.src.rpm
  $ su -
  # /bin/openpkg rpm -Fvh /RPM/PKG/cvstrac-1.1.3-2.1.1.*.rpm

  Although simply upgrading the affected CVSTrac installation
  does remove the vulnerability in question, the existing CVSTrac
  configuration should be corrected on the underlying SQLite level as
  well. Repeat the following for all project databases:

  $ /bin/sqlite /var/cvstrac/.db
  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:

  $ /bin/sqlite /var/cvstrac/.db
  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.

  [1] /0

For security reasons, this advisory was digitally signed with the
OpenPGP public key "OpenPKG " (ID 63C4CB9F) of the
OpenPKG project which you can retrieve from and
hkp:// Follow the instructions on 
for details on how to verify the integrity of this advisory.

Comment: OpenPKG  


TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2015 AOH