Gentoo Logo

lighttpd: Script source disclosure


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200502-21 / lighttpd
Release Date February 15, 2005
Latest Revision May 22, 2006: 02
Impact low
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
www-servers/lighttpd < 1.3.10-r1 >= 1.3.10-r1 All supported architectures

Related bugreports: #81776


An attacker can trick lighttpd into revealing the source of scripts that should be executed as CGI or FastCGI applications.

2.  Impact Information


lighttpd is a small-footprint, fast, compliant and very flexible web-server which is optimized for high-performance environments.


lighttpd uses file extensions to determine which elements are programs that should be executed and which are static pages that should be sent as-is. By appending %00 to the filename, you can evade the extension detection mechanism while still accessing the file.


A remote attacker could send specific queries and access the source of scripts that should have been executed as CGI or FastCGI applications.

3.  Resolution Information


There is no known workaround at this time.


All lighttpd users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=www-servers/lighttpd-1.3.10-r1"

4.  References


Page updated February 15, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.