ports/121245: [patch] Fix for DoS vulnerability in www/lighttpd

Nick Barkas snb at threerings.net
Sat Mar 1 00:00:02 UTC 2008


>Number:         121245
>Category:       ports
>Synopsis:       [patch] Fix for DoS vulnerability in www/lighttpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 01 00:00:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Nick Barkas
>Release:        FreeBSD 6.2-RELEASE-p11 i386
>Organization:
Three Rings Design, Inc.
>Environment:
System: FreeBSD mail1.earth.threerings.net 6.2-RELEASE-p11 FreeBSD 6.2-RELEASE-p11 #0: Wed Feb 13 07:00:04 UTC 2008 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386
>Description:
This is a fix for the DoS vulnerability described here:
http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0983
>How-To-Repeat:
>Fix:
--- lighttpd.patch begins here ---
diff -urN lighttpd.orig/Makefile lighttpd/Makefile
--- lighttpd.orig/Makefile	Sat Sep 22 16:13:46 2007
+++ lighttpd/Makefile	Fri Feb 29 10:09:28 2008
@@ -7,7 +7,7 @@
 
 PORTNAME=	lighttpd
 PORTVERSION=	1.4.18
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	http://www.lighttpd.net/download/ \
 		http://mirrors.cat.pdx.edu/lighttpd/
diff -urN lighttpd.orig/files/patch-src_server.c lighttpd/files/patch-src_server.c
--- lighttpd.orig/files/patch-src_server.c	Wed Dec 31 16:00:00 1969
+++ lighttpd/files/patch-src_server.c	Fri Feb 29 09:46:28 2008
@@ -0,0 +1,13 @@
+--- src/server.c
++++ src/server.c
+@@ -697,9 +697,6 @@ int main (int argc, char **argv) {
+ 			}
+ 		}
+ 
+-		/* #372: solaris need some fds extra for devpoll */
+-		if (rlim.rlim_cur > 10) rlim.rlim_cur -= 10;
+-
+ 		if (srv->event_handler == FDEVENT_HANDLER_SELECT) {
+ 			srv->max_fds = rlim.rlim_cur < FD_SETSIZE - 200 ? rlim.rlim_cur : FD_SETSIZE - 200;
+ 		} else {
+
--- lighttpd.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list