1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200804-19 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Normal |
8 |
Title: PHP Toolkit: Data disclosure and Denial of Service |
9 |
Date: April 17, 2008 |
10 |
Bugs: #209535 |
11 |
ID: 200804-19 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
PHP Toolkit does not quote parameters, allowing for PHP source code |
19 |
disclosure on Apache, and a Denial of Service. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
PHP Toolkit is a utility to manage parallel installations of PHP within |
25 |
Gentoo. It is executed by the PHP ebuilds at setup. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 app-admin/php-toolkit < 1.0.1 >= 1.0.1 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
Toni Arnold, David Sveningsson, Michal Bartoszkiewicz, and Joseph |
39 |
reported that php-select does not quote parameters passed to the "tr" |
40 |
command, which could convert the "-D PHP5" argument in the |
41 |
"APACHE2_OPTS" setting in the file /etc/conf.d/apache2 to lower case. |
42 |
|
43 |
Impact |
44 |
====== |
45 |
|
46 |
An attacker could entice a system administrator to run "emerge php" or |
47 |
call "php-select -t apache2 php5" directly in a directory containing a |
48 |
lower case single-character named file, which would prevent Apache from |
49 |
loading mod_php and thereby disclose PHP source code and cause a Denial |
50 |
of Service. |
51 |
|
52 |
Workaround |
53 |
========== |
54 |
|
55 |
Do not run "emerge" or "php-select" from a working directory which |
56 |
contains a lower case single-character named file. |
57 |
|
58 |
Resolution |
59 |
========== |
60 |
|
61 |
All PHP Toolkit users should upgrade to the latest version: |
62 |
|
63 |
# emerge --sync |
64 |
# emerge --ask --oneshot --verbose ">=app-admin/php-toolkit-1.0.1" |
65 |
|
66 |
References |
67 |
========== |
68 |
|
69 |
[ 1 ] CVE-2008-1734 |
70 |
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1734 |
71 |
|
72 |
Availability |
73 |
============ |
74 |
|
75 |
This GLSA and any updates to it are available for viewing at |
76 |
the Gentoo Security Website: |
77 |
|
78 |
http://security.gentoo.org/glsa/glsa-200804-19.xml |
79 |
|
80 |
Concerns? |
81 |
========= |
82 |
|
83 |
Security is a primary focus of Gentoo Linux and ensuring the |
84 |
confidentiality and security of our users machines is of utmost |
85 |
importance to us. Any security concerns should be addressed to |
86 |
security@g.o or alternatively, you may file a bug at |
87 |
http://bugs.gentoo.org. |
88 |
|
89 |
License |
90 |
======= |
91 |
|
92 |
Copyright 2008 Gentoo Foundation, Inc; referenced text |
93 |
belongs to its owner(s). |
94 |
|
95 |
The contents of this document are licensed under the |
96 |
Creative Commons - Attribution / Share Alike license. |
97 |
|
98 |
http://creativecommons.org/licenses/by-sa/2.5 |