Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 200402-01 ] PHP setting leaks from .htaccess files on virtual hosts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Sat Feb 07, 2004 11:11 am    Post subject: [ GLSA 200402-01 ] PHP setting leaks from .htaccess files on Reply with quote

Gentoo Linux Security Advisory

Title: PHP setting leaks from .htaccess files on virtual hosts (GLSA 200402-01)
Severity: normal
Exploitable: remote
Date: February 07, 2004
Bug(s): #39952
ID: 200402-01

Synopsis

If the server configuration "php.ini" file has"register_globals = on" and a request is made to one virtual host (which has "php_admin_flag register_globals off") and the next request is sent to the another virtual host (which does not have the setting) global variables may leak and may be used to exploit the site.

Background

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

Affected Packages

Package: dev-php/mod_php
Vulnerable: < 4.3.4-r4
Unaffected: >= 4.3.4-r4
Architectures: All supported architectures


Description

If the server configuration "php.ini" file has"register_globals = on" and a request is made to one virtual host (which has "php_admin_flag register_globals off") and the next request is sent to the another virtual host (which does not have the setting) through the same apache child, the setting will persist.

Impact

Depending on the server and site, an attacker may be able to exploit global variables to gain access to reserved areas, such as MySQL passwords, or this vulnerability may simply cause a lack of functionality. As a result, users are urged to upgrade their PHP installations. Gentoo ships PHP with "register_globals" set to "off" by default. This issue affects both servers running Apache 1.x and servers running Apache 2.x.

Workaround

No immediate workaround is available; a software upgrade is required.

Resolution

All users are recommended to upgrade their PHP installation to 4.3.4-r4:
Code:
# emerge sync
# emerge -pv ">=dev-php/mod_php-4.3.4-r4"
# emerge ">=dev-php/mod_php-4.3.4-r4"


References

Corresponding PHP bug


Last edited by GLSA on Sun May 07, 2006 4:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum