lighttpd PHP File Trailing Slash Request Source Disclosure

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


Synopsis :

The web server running on the remote host has an information
disclosure vulnerability.

Description :

The version of lighttpd installed on the remote host may disclose the
source code of files such as PHP scripts when a '/' is appended to a
URL corresponding to a symbolic link. This vulnerability occurs only
on certain operating systems (FreeBSD, Mac OS X, and Solaris prior to
version 10 are known to be affected) and arises because of a bug in
the operating system itself in which adding a trailing slash to a
symbolic link pointing to a regular file returns the link itself.

See also :

http://redmine.lighttpd.net/issues/1989
http://www.lighttpd.net/2009/6/19/1-4-23-leaving-the-nest

Solution :

Upgrade to lighttpd 1.4.23 or later.

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N)
CVSS Temporal Score : 3.6
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 39006 (lighttpd_trailing_slash.nasl)

Bugtraq ID: 35097

CVE ID: