Debian Security Advisory
DSA-396-1 thttpd -- missing input sanitizing, wrong calculation
- Date Reported:
- 29 Oct 2003
- Affected Packages:
- thttpd
- Vulnerable:
- Yes
- Security database references:
- In the Bugtraq database (at SecurityFocus): BugTraq ID 8906, BugTraq ID 8924.
In Mitre's CVE dictionary: CVE-2002-1562, CVE-2003-0899. - More information:
-
Several vulnerabilities have been discovered in thttpd, a tiny HTTP server.
The Common Vulnerabilities and Exposures project identifies the following vulnerabilities:
- CAN-2002-1562: Information leak
Marcus Breiing discovered that if thttpd it is used for virtual hosting, and an attacker supplies a specially crafted “Host:” header with a pathname instead of a hostname, thttpd will reveal information about the host system. Hence, an attacker can browse the entire disk.
- CAN-2003-0899: Arbitrary code execution
Joel Söderberg and Christer Öberg discovered a remote overflow which allows an attacker to partially overwrite the EBP register and hence execute arbitrary code.
For the stable distribution (woody) these problems have been fixed in version 2.21b-11.2.
For the unstable distribution (sid) these problems have been fixed in version 2.23beta1-2.3.
We recommend that you upgrade your thttpd package immediately.
- CAN-2002-1562: Information leak
- Fixed in:
-
Debian GNU/Linux 3.0 (woody)
- Source:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2.dsc
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2.diff.gz
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b.orig.tar.gz
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2.diff.gz
- Alpha:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_alpha.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_alpha.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_alpha.deb
- ARM:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_arm.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_arm.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_arm.deb
- Intel IA-32:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_i386.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_i386.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_i386.deb
- Intel IA-64:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_ia64.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_ia64.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_ia64.deb
- HPPA:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_hppa.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_hppa.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_hppa.deb
- Motorola 680x0:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_m68k.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_m68k.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_m68k.deb
- Big endian MIPS:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_mips.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_mips.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_mips.deb
- Little endian MIPS:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_mipsel.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_mipsel.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_mipsel.deb
- PowerPC:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_powerpc.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_powerpc.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_powerpc.deb
- IBM S/390:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_s390.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_s390.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_s390.deb
- Sun Sparc:
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd_2.21b-11.2_sparc.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_sparc.deb
- http://security.debian.org/pool/updates/main/t/thttpd/thttpd-util_2.21b-11.2_sparc.deb
MD5 checksums of the listed files are available in the original advisory.