Gentoo Archives: gentoo-announce

From: Tim Yamin <plasmaroo@g.o>
To: bugtraq@×××××××××××××.com, full-disclosure@××××××××××××.com, security-alerts@×××××××××××××.com, gentoo-core@l.g.o, gentoo-announce@l.g.o
Subject: [gentoo-announce] [ GLSA 200402-01 ] PHP setting leaks from .htaccess files on virtual hosts
Date: Sat, 07 Feb 2004 01:08:59
Message-Id: 40243930.80808@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5 Gentoo Linux Security Advisory GLSA 200402-01
6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7 ~ http://security.gentoo.org
8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9
10 ~ Severity: Normal
11 ~ Title: PHP setting leaks from .htaccess files on virtual hosts
12 ~ Date: February 07, 2004
13 ~ Bugs: #39952
14 ~ ID: 200402-01
15
16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
17
18 Synopsis
19 ========
20
21 If the server configuration "php.ini" file has "register_globals = on"
22 and a request is made to one virtual host (which has "php_admin_flag
23 register_globals off") and the next request is sent to the another
24 virtual host (which does not have the setting) through the same apache
25 child, the setting will persist. This may lead to leaks of global variables.
26
27 Background
28 ==========
29
30 PHP is a widely-used general-purpose scripting language that is
31 especially suited for Web development and can be embedded into HTML.
32
33 Description
34 ===========
35
36 If the server configuration "php.ini" file has "register_globals = on"
37 and a request is made to one virtual host (which has "php_admin_flag
38 register_globals off") and the next request is sent to the another
39 virtual host (which does not have the setting) through the same Apache
40 child, the setting will persist.
41
42 Impact
43 ======
44
45 Depending on the server and site, an attacker may be able to exploit
46 global variables to gain access to reserved areas, such as MySQL
47 passwords, or this vulnerability may simply cause a lack of
48 functionality. As a result, users are urged to upgrade their PHP
49 installations.
50
51 Gentoo ships PHP with "register_globals" set to "off" by default.
52
53 This issue affects both servers running Apache 1.x and servers running
54 Apache 2.x.
55
56 Workaround
57 ==========
58
59 No immediate workaround is available; a software upgrade is required.
60
61 Resolution
62 ==========
63
64 All users are recommended to upgrade their mod_php installation to 4.3.4-r4:
65
66 ~ # emerge sync
67 ~ # emerge -pv ">=dev-php/mod_php-4.3.4-r4"
68 ~ # emerge ">=dev-php/mod_php-4.3.4-r4"
69
70 Concerns?
71 =========
72
73 Security is a primary focus of Gentoo Linux and ensuring the
74 confidentiality and security of our users machines is of utmost
75 importance to us. Any security concerns should be addressed to
76 security@g.o or alternatively, you may file a bug at
77 http://bugs.gentoo.org.
78
79 -----BEGIN PGP SIGNATURE-----
80 Version: GnuPG v1.2.1 (GNU/Linux)
81 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
82
83 iD8DBQFAJDkqMMXbAy2b2EIRAhRMAJ9SDV/WHYdUDqADIp29JmqGeFQszQCdFvRV
84 nCYFaIKKbzwJKHa9IUa2fvk=
85 =SM5z
86 -----END PGP SIGNATURE-----