Package: lighttpd
Version: 1.4.13-4
Severity: critical
Tags: security patch
Justification: root security hole
1.4.13-4 in etch has two security flaws:
CVE-2007-1870
CVE-2007-1869
I include a patch against the debian source of 1.4.13-4 with
http://www.lighttpd.net/assets/2007/4/13/lighttpd-1.4.x_crlf_parsing_dos.patch
and
http://www.lighttpd.net/assets/2007/4/13/lighttpd-1.4.x_zero_mtime_crash.patch
applied.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.7-linode30
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages lighttpd depends on:
ii libattr1 2.4.32-1 Extended attribute shared library
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file co
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libldap2 2.1.30-13.3 OpenLDAP libraries
ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8c-4 SSL shared libraries
ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip
ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages lighttpd recommends:
pn php4-cgi | php5-cgi <none> (no description available)
-- no debconf information
diff -ur lighttpd-1.4.13.deborig/src/connections.c lighttpd-1.4.13/src/connections.c
--- lighttpd-1.4.13.deborig/src/connections.c 2006-10-07 17:44:43.000000000 +0000
+++ lighttpd-1.4.13/src/connections.c 2007-04-27 18:55:17.000000000 +0000
@@ -970,7 +970,7 @@
}
} else {
/* a splited \r \n */
- return -1;
+ break;
}
}
}
diff -ur lighttpd-1.4.13.deborig/src/server.c lighttpd-1.4.13/src/server.c
--- lighttpd-1.4.13.deborig/src/server.c 2006-10-04 13:30:52.000000000 +0000
+++ lighttpd-1.4.13/src/server.c 2007-04-27 18:55:27.000000000 +0000
@@ -163,6 +163,7 @@
#undef CLEAN
for (i = 0; i < FILE_CACHE_MAX; i++) {
+ srv->mtime_cache[i].mtime = (time_t)-1;
srv->mtime_cache[i].str = buffer_init();
}