You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/xsl/glsa.xsl" type="text/xsl"?>
<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200701-28">
<title>thttpd: Unauthenticated remote file access</title>
<synopsis>
The default configuration of the Gentoo thttpd package potentially allows
unauthenticated access to system files when used with newer versions of
baselayout.
</synopsis>
<product type="ebuild">thttpd</product>
<announced>January 31, 2007</announced>
<revised>March 11, 2007: 02</revised>
<bug>142047</bug>
<access>remote</access>
<affected>
<package name="www-servers/thttpd" auto="yes" arch="*">
<unaffected range="ge">2.25b-r6</unaffected>
<vulnerable range="lt">2.25b-r6</vulnerable>
</package>
</affected>
<background>
<p>
thttpd is a webserver designed to be simple, small, and fast.
</p>
</background>
<description>
<p>
thttpd is vulnerable to an underlying change made to the
start-stop-daemon command in the current stable Gentoo baselayout
package (version 1.12.6). In the new version, the start-stop-daemon
command performs a "chdir /" command just before starting the thttpd
process. In the Gentoo default configuration, this causes thttpd to
start with the document root set to "/", the sytem root directory.
</p>
</description>
<impact type="low">
<p>
When thttpd starts with the document root set to the system root
directory, all files on the system that are readable by the thttpd
process can be remotely accessed by unauthenticated users.
</p>
</impact>
<workaround>
<p>
Alter the THTTPD_OPTS variable in /etc/conf.d/thttpd to include the
"-d" option to specify the document root. Alternatively, modify the
THTTPD_OPTS variable in /etc/conf.d/thttpd to specify a thttpd.conf
file using the "-C" option, and then configure the "dir=" directive in
that thttpd.conf file.
</p>
</workaround>
<resolution>
<p>
All thttpd users should upgrade to the latest version:
</p>
<code>
# emerge --sync
# emerge --ask --oneshot --verbose &quot;&gt;=www-servers/thttpd-2.25b-r5&quot;</code>
</resolution>
<references>
<uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0664">CVE-2007-0664</uri>
</references>
<metadata tag="requester" timestamp="Fri, 26 Jan 2007 12:41:44 +0000">
shellsage
</metadata>
<metadata tag="submitter" timestamp="Sat, 27 Jan 2007 17:49:26 +0000">
aetius
</metadata>
<metadata tag="bugReady" timestamp="Wed, 31 Jan 2007 21:45:13 +0000">
falco
</metadata>
</glsa>