J-Security Center

Title: Multiple Vendor ftpd setproctitle() Format String Vulnerability

Severity: HIGH

Description:

A number of ftp daemons, including versions of wu-ftpd, OpenBSD ftpd (ports of this package are distributed with some Linux distributions), HP-UX ftpd, and proftpd, have a vulnerability caused by the passing of user input to the set_proc_title() function. This function in turn calls setproctitle() after using this user data to generate a buffer to pass to setproctitle. setproctitle is defined as setproctitle(char *fmt, ...). The buffer created is passed as the format argument to setproctitle. setproctitle will make a call to the vsnprintf() call, taking the buffer passed as the format string. By carefully manipulating the contents of this buffer, a remote user can cause values on the stack to be overwritten, and potentially cause arbitrary code to be executed as root.

Affected Products:

  • Debian Linux 2.1.0
  • Debian Linux 2.2.0
  • FreeBSD FreeBSD 1.1.5 .1
  • FreeBSD FreeBSD 2.0.0
  • FreeBSD FreeBSD 2.0.5
  • FreeBSD FreeBSD 2.1.0
  • FreeBSD FreeBSD 2.1.5
  • FreeBSD FreeBSD 2.1.6
  • FreeBSD FreeBSD 2.1.6 .1
  • FreeBSD FreeBSD 2.1.7 .1
  • HP HP-UX 10.10.0
  • HP HP-UX 10.20.0
  • HP HP-UX 11.0.0
  • Linux ftpd 0.16.0
  • NetBSD NetBSD 1.0.0
  • NetBSD NetBSD 1.1.0
  • NetBSD NetBSD 1.2.0
  • NetBSD NetBSD 1.2.1
  • NetBSD NetBSD 1.3.0
  • NetBSD NetBSD 1.3.1
  • NetBSD NetBSD 1.3.2
  • NetBSD NetBSD 1.3.3
  • NetBSD NetBSD 1.4.0 Alpha
  • NetBSD NetBSD 1.4.0 SPARC
  • NetBSD NetBSD 1.4.0 arm32
  • NetBSD NetBSD 1.4.0 x86
  • NetBSD NetBSD 1.4.1 Alpha
  • NetBSD NetBSD 1.4.1 SPARC
  • NetBSD NetBSD 1.4.1 arm32
  • NetBSD NetBSD 1.4.1 x86
  • NetBSD NetBSD 1.4.2 Alpha
  • NetBSD NetBSD 1.4.2 SPARC
  • NetBSD NetBSD 1.4.2 arm32
  • NetBSD NetBSD 1.4.2 x86
  • OpenBSD OpenBSD 2.0.0
  • OpenBSD OpenBSD 2.1.0
  • OpenBSD OpenBSD 2.2.0
  • OpenBSD OpenBSD 2.3.0
  • OpenBSD OpenBSD 2.4.0
  • OpenBSD OpenBSD 2.5.0
  • OpenBSD OpenBSD 2.6.0
  • OpenBSD OpenBSD 2.7.0
  • ProFTPD Project ProFTPD 1.2.0 pre1
  • ProFTPD Project ProFTPD 1.2.0 pre10
  • ProFTPD Project ProFTPD 1.2.0 pre2
  • ProFTPD Project ProFTPD 1.2.0 pre3
  • ProFTPD Project ProFTPD 1.2.0 pre4
  • ProFTPD Project ProFTPD 1.2.0 pre5
  • ProFTPD Project ProFTPD 1.2.0 pre6
  • ProFTPD Project ProFTPD 1.2.0 pre7
  • ProFTPD Project ProFTPD 1.2.0 pre8
  • ProFTPD Project ProFTPD 1.2.0 pre9
  • S.u.S.E. Linux 6.0.0
  • S.u.S.E. Linux 6.1.0
  • S.u.S.E. Linux 6.2.0
  • S.u.S.E. Linux 6.3.0
  • S.u.S.E. Linux 6.3.0 alpha
  • S.u.S.E. Linux 6.3.0 ppc
  • S.u.S.E. Linux 6.4.0
  • S.u.S.E. Linux 6.4.0 alpha
  • S.u.S.E. Linux 6.4.0 ppc
  • opieftpd ftp 1.3.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.