Debian: 'htdig' unauthorized gathering of data
Posted by LinuxSecurity.com Team   
Debian Using former versions of ht://Dig it was able to pass the parameter `-c' to the cgi program in order to use a different configuration file.

----------------------------------------------------------------------------
Debian Security Advisory DSA 080-1                       security@debian.org 
http://www.debian.org/security/                               Martin Schulze
October 17th, 2001
----------------------------------------------------------------------------

Package        : htdig
Vulnerability  : unauthorized gathering of data
Problem-Type   : remote DoS, local information retrieval
Debian-specific: no

Nergal reported a vulnerability in the htsearch program which is
distributed as part of the ht://Dig package, a indexing and searching
system for small domains or intranets.  Using former versions it was
able to pass the parameter `-c' to the cgi program in order to use a
different configuration file.

A malicious user could point htsearch to a file like `/dev/zero' and
let the server run in an endless loop, trying to read config
parameters.  If the user has write permission on the server he can
point the program to it and retrive any file readable by the webserver
user id.

This problem has been fixed in version of 3.1.5-2.1 for Debian
GNU/Linux 2.2.

We recommend that you upgrade your htdig package immediately.

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 2.2 alias potato
------------------------------------

  Source archives:

     http://security.debian.org/dists/stable/updates/main/source/htdig_3.1.5-2.0potato.1.diff.gz
      MD5 checksum: 4ad4dc342e31db65127cc58a8063f025
     http://security.debian.org/dists/stable/updates/main/source/htdig_3.1.5-2.0potato.1.dsc
      MD5 checksum: e59bfe00133e97ae7f071d3a8510eb35
     http://security.debian.org/dists/stable/updates/main/source/htdig_3.1.5.orig.tar.gz
      MD5 checksum: cbf4a0f2b703d9822db555a14dc96ed3

  Architecture independent components:

     http://security.debian.org/dists/stable/updates/main/binary-all/htdig-doc_3.1.5-2.0potato.1_all.deb
      MD5 checksum: 6c5c94f56ce3e02018864439bb24ac18

  Alpha architecture:

     http://security.debian.org/dists/stable/updates/main/binary-alpha/htdig_3.1.5-2.0potato.1_alpha.deb
      MD5 checksum: 412501d347af74566b170f5e485216c4

  ARM architecture:

     http://security.debian.org/dists/stable/updates/main/binary-arm/htdig_3.1.5-2.0potato.1_arm.deb
      MD5 checksum: 35e60b98022364b61be3d3c23b300782

  Intel ia32 architecture:

     http://security.debian.org/dists/stable/updates/main/binary-i386/htdig_3.1.5-2.0potato.1_i386.deb
      MD5 checksum: 77befd19641a294cb0a47b72aa15e91c

  Motorola 680x0 architecture:

     http://security.debian.org/dists/stable/updates/main/binary-m68k/htdig_3.1.5-2.0potato.1_m68k.deb
      MD5 checksum: 5dc1c696e9dcc86af834546201efec79

  PowerPC architecture:

     http://security.debian.org/dists/stable/updates/main/binary-powerpc/htdig_3.1.5-2.0potato.1_powerpc.deb
      MD5 checksum: 30a2cd56b561cf481bf4cdc595cda7ad

  Sun Sparc architecture:

     http://security.debian.org/dists/stable/updates/main/binary-sparc/htdig_3.1.5-2.0potato.1_sparc.deb
      MD5 checksum: ce101a18a7af6e6dde43bf2c0ec330b1


  These files will be moved into the stable distribution on its next
  revision.

----------------------------------------------------------------------------
For apt-get: deb  http://security.debian.org/ stable/updates main
For dpkg-ftp:  ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show ' and  http://packages.debian.org/