Debian Security Advisory DSA 447-1                     security@debian.org 
Debian -- Security Information                              Matt Zimmerman
February 22nd, 2004                      Debian -- Debian security FAQ 
- --------------------------------------------------------------------------

Package        : hsftp
Vulnerability  : format string
Problem-Type   : remote
Debian-specific: no
CVE Id         : CAN-2004-0159

During an audit, Ulf Harnhammar discovered a format string
vulnerability in hsftp.  This vulnerability could be exploited by an
attacker able to create files on a remote server with carefully
crafted names, to which a user would connect using hsftp.  When the
user requests a directory listing, particular bytes in memory could be
overwritten, potentially allowing arbitrary code to be executed with
the privileges of the user invoking hsftp.

Note that while hsftp is installed setuid root, it only uses these
privileges to acquire locked memory, and then relinquishes them.

For the current stable distribution (woody) this problem has been
fixed in version 1.11-1woody1.

For the unstable distribution (sid), this problem will be fixed soon.

We recommend that you update your hsftp package.

Upgrade Instructions
- --------------------

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 3.0 alias woody
- --------------------------------

  Source archives:

      
      Size/MD5 checksum:      595 9cefb21b2527ae0bf6cf813edd470320
      
      Size/MD5 checksum:     1850 9a62d6a8ca1b885e78b84d23978af15d
      
      Size/MD5 checksum:    50859 0b9d3eff1b9fcc2ab44a970c3535f777

  Alpha architecture:

      
      Size/MD5 checksum:    19582 a7ae51d2bc5102f8a92a8d5e640ab198

  ARM architecture:

      
      Size/MD5 checksum:    17410 bf432d578eb24f94ae423a38a8380f7c

  Intel IA-32 architecture:

      
      Size/MD5 checksum:    17106 b638f3ab3bd577a8c287a77b57933ea1

  Intel IA-64 architecture:

      
      Size/MD5 checksum:    22808 2673a0bd78ec8341da16998b51feefcf

  HP Precision architecture:

      
      Size/MD5 checksum:    18200 11c371b92821e461ac0179f3b7edfeb3

  Motorola 680x0 architecture:

      
      Size/MD5 checksum:    16406 928c44582067a9b264f62d32408a9a46

  Big endian MIPS architecture:

      
      Size/MD5 checksum:    17676 a6e150e08063dba73ff5a44f75f30a83

  PowerPC architecture:

      
      Size/MD5 checksum:    17620 ca2e00d4af42d2b19f48a2b71455b167

  IBM S/390 architecture:

      
      Size/MD5 checksum:    17686 366193042afb69b518ef20c1ae08444d

  Sun Sparc architecture:

      
      Size/MD5 checksum:    17070 8788ef38808a6271c2a1ff2a1da6adff

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

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

Debian: hsftp Format string vulnerability

February 23, 2004
An attacker, able to create files on a remote server, could potentially execute arbitrary code with the privileges of the user invoking hsftp.

Summary

During an audit, Ulf Harnhammar discovered a format string
vulnerability in hsftp. This vulnerability could be exploited by an
attacker able to create files on a remote server with carefully
crafted names, to which a user would connect using hsftp. When the
user requests a directory listing, particular bytes in memory could be
overwritten, potentially allowing arbitrary code to be executed with
the privileges of the user invoking hsftp.

Note that while hsftp is installed setuid root, it only uses these
privileges to acquire locked memory, and then relinquishes them.

For the current stable distribution (woody) this problem has been
fixed in version 1.11-1woody1.

For the unstable distribution (sid), this problem will be fixed soon.

We recommend that you update your hsftp package.

Upgrade Instructions
- --------------------

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 3.0 alias woody

Source archives:


Size/MD5 checksum: 595 9cefb21b2527ae0bf6cf813edd470320

Size/MD5 checksum: 1850 9a62d6a8ca1b885e78b84d23978af15d

Size/MD5 checksum: 50859 0b9d3eff1b9fcc2ab44a970c3535f777

Alpha architecture:


Size/MD5 checksum: 19582 a7ae51d2bc5102f8a92a8d5e640ab198

ARM architecture:


Size/MD5 checksum: 17410 bf432d578eb24f94ae423a38a8380f7c

Intel IA-32 architecture:


Size/MD5 checksum: 17106 b638f3ab3bd577a8c287a77b57933ea1

Intel IA-64 architecture:


Size/MD5 checksum: 22808 2673a0bd78ec8341da16998b51feefcf

HP Precision architecture:


Size/MD5 checksum: 18200 11c371b92821e461ac0179f3b7edfeb3

Motorola 680x0 architecture:


Size/MD5 checksum: 16406 928c44582067a9b264f62d32408a9a46

Big endian MIPS architecture:


Size/MD5 checksum: 17676 a6e150e08063dba73ff5a44f75f30a83

PowerPC architecture:


Size/MD5 checksum: 17620 ca2e00d4af42d2b19f48a2b71455b167

IBM S/390 architecture:


Size/MD5 checksum: 17686 366193042afb69b518ef20c1ae08444d

Sun Sparc architecture:


Size/MD5 checksum: 17070 8788ef38808a6271c2a1ff2a1da6adff

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

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



Severity
Package : hsftp
Vulnerability : format string
Problem-Type : remote
Debian-specific: no
CVE Id : CAN-2004-0159

Related News