GLSA-200709-16 : Lighttpd: Buffer overflow

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200709-16
(Lighttpd: Buffer overflow)

Mattias Bengtsson and Philip Olausson have discovered a buffer overflow
vulnerability in the function fcgi_env_add() in the file mod_fastcgi.c
when processing overly long HTTP headers.

Impact :

A remote attacker could send a specially crafted request to the
vulnerable Lighttpd server, resulting in the remote execution of
arbitrary code with privileges of the user running the web server. Note
that mod_fastcgi is disabled in Gentoo's default configuration.

Workaround :

Edit the file /etc/lighttpd/lighttpd.conf and comment the following
line: 'include mod_fastcgi.conf'

See also :

http://www.gentoo.org/security/en/glsa/glsa-200709-16.xml

Solution :

All Lighttpd users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=www-servers/lighttpd-1.4.18'

Risk factor :

Medium / CVSS Base Score : 6.8
(CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P)
Public Exploit Available : true

Family: Gentoo Local Security Checks

Nessus Plugin ID: 26214 (gentoo_GLSA-200709-16.nasl)

Bugtraq ID:

CVE ID: CVE-2007-4727