Date: Fri, 29 Feb 2008 15:55:08 -0800 (PST) From: Nick Barkas <snb@threerings.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/121245: [patch] Fix for DoS vulnerability in www/lighttpd Message-ID: <20080229235508.4CE2D61EAF@smtp.earth.threerings.net> Resent-Message-ID: <200803010000.m21002mN001237@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080229235508.4CE2D61EAF>