1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200701-28 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Low |
8 |
Title: thttpd: Unauthenticated remote file access |
9 |
Date: January 31, 2007 |
10 |
Bugs: #142047 |
11 |
ID: 200701-28 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
The default configuration of the Gentoo thttpd package potentially |
19 |
allows unauthenticated access to system files when used with newer |
20 |
versions of baselayout. |
21 |
|
22 |
Background |
23 |
========== |
24 |
|
25 |
thttpd is a webserver designed to be simple, small, and fast. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 www-servers/thttpd < 2.25b-r6 >= 2.25b-r6 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
thttpd is vulnerable to an underlying change made to the |
39 |
start-stop-daemon command in the current stable Gentoo baselayout |
40 |
package (version 1.12.6). In the new version, the start-stop-daemon |
41 |
command performs a "chdir /" command just before starting the thttpd |
42 |
process. In the Gentoo default configuration, this causes thttpd to |
43 |
start with the document root set to "/", the sytem root directory. |
44 |
|
45 |
Impact |
46 |
====== |
47 |
|
48 |
When thttpd starts with the document root set to the system root |
49 |
directory, all files on the system that are readable by the thttpd |
50 |
process can be remotely accessed by unauthenticated users. |
51 |
|
52 |
Workaround |
53 |
========== |
54 |
|
55 |
Alter the THTTPD_OPTS variable in /etc/conf.d/thttpd to include the |
56 |
"-d" option to specify the document root. Alternatively, modify the |
57 |
THTTPD_OPTS variable in /etc/conf.d/thttpd to specify a thttpd.conf |
58 |
file using the "-C" option, and then configure the "dir=" directive in |
59 |
that thttpd.conf file. |
60 |
|
61 |
Resolution |
62 |
========== |
63 |
|
64 |
All thttpd users should upgrade to the latest version: |
65 |
|
66 |
# emerge --sync |
67 |
# emerge --ask --oneshot --verbose ">=www-servers/thttpd-2.25b-r5" |
68 |
|
69 |
Availability |
70 |
============ |
71 |
|
72 |
This GLSA and any updates to it are available for viewing at |
73 |
the Gentoo Security Website: |
74 |
|
75 |
http://security.gentoo.org/glsa/glsa-200701-28.xml |
76 |
|
77 |
Concerns? |
78 |
========= |
79 |
|
80 |
Security is a primary focus of Gentoo Linux and ensuring the |
81 |
confidentiality and security of our users machines is of utmost |
82 |
importance to us. Any security concerns should be addressed to |
83 |
security@g.o or alternatively, you may file a bug at |
84 |
http://bugs.gentoo.org. |
85 |
|
86 |
License |
87 |
======= |
88 |
|
89 |
Copyright 2007 Gentoo Foundation, Inc; referenced text |
90 |
belongs to its owner(s). |
91 |
|
92 |
The contents of this document are licensed under the |
93 |
Creative Commons - Attribution / Share Alike license. |
94 |
|
95 |
http://creativecommons.org/licenses/by-sa/2.5 |