Gallery Remote Global Variable Injection Vulnerability
BID:9490
Info
Gallery Remote Global Variable Injection Vulnerability
| Bugtraq ID: | 9490 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jan 26 2004 12:00AM |
| Updated: | Jan 26 2004 12:00AM |
| Credit: | The disclosure of this issue has been credited to Bharat Mediratta <[email protected]>. |
| Vulnerable: |
Bharat Mediratta Gallery 1.4.1 Bharat Mediratta Gallery 1.4 Bharat Mediratta Gallery 1.3.3 Bharat Mediratta Gallery 1.3.2 Bharat Mediratta Gallery 1.3.1 |
| Not Vulnerable: |
Bharat Mediratta Gallery 1.4.2 Bharat Mediratta Gallery 1.4.1 pl1 |
Discussion
Gallery Remote Global Variable Injection Vulnerability
It has been reported that Gallery is prone to a vulnerability that may allow a remote attacker to gain unauthorized access by overwriting various values for global variables. The issue occurs due to improper simulation of the behaviour of register_globals when the register_globals settings is disabled. It has been reported that register_globals functionality is simulated by extracting the values of the various $HTTP_ global variables into the global namespace. Due to improper sanitization of user-supplied data, an attacker may be able to overwrite the value of 'HTTP_POST_VARS' via the register_global simulation. Arbitrary PHP files may be included via the 'GALLERY_BASEDIR' parameter.
The vendor has reported that this issue exists in Gallery versions 1.3.1, 1.3.2, 1.3.3, 1.4 and 1.4.1.
It has been reported that Gallery is prone to a vulnerability that may allow a remote attacker to gain unauthorized access by overwriting various values for global variables. The issue occurs due to improper simulation of the behaviour of register_globals when the register_globals settings is disabled. It has been reported that register_globals functionality is simulated by extracting the values of the various $HTTP_ global variables into the global namespace. Due to improper sanitization of user-supplied data, an attacker may be able to overwrite the value of 'HTTP_POST_VARS' via the register_global simulation. Arbitrary PHP files may be included via the 'GALLERY_BASEDIR' parameter.
The vendor has reported that this issue exists in Gallery versions 1.3.1, 1.3.2, 1.3.3, 1.4 and 1.4.1.
Exploit / POC
Gallery Remote Global Variable Injection Vulnerability
No exploit is required.
The following proof of concept has been supplied:
http://www.example.com/gallery/init.php?HTTP_POST_VARS=xxx
No exploit is required.
The following proof of concept has been supplied:
http://www.example.com/gallery/init.php?HTTP_POST_VARS=xxx
Solution / Fix
Gallery Remote Global Variable Injection Vulnerability
Solution:
The vendor has released Gallery 1.4.1-pl1 to address this issue. Users are advised to upgrade to the fixed version.
Gentoo has released advisory GLSA 200402-04 dealing with this issue. Please see the reference section for details.
The vendor has released Gallery 1.4.2 to address this and other issues. It is advised that if possible, users should upgrade to this version.
Bharat Mediratta Gallery 1.3.1
Bharat Mediratta Gallery 1.3.2
Bharat Mediratta Gallery 1.3.3
Bharat Mediratta Gallery 1.4
Bharat Mediratta Gallery 1.4.1
Solution:
The vendor has released Gallery 1.4.1-pl1 to address this issue. Users are advised to upgrade to the fixed version.
Gentoo has released advisory GLSA 200402-04 dealing with this issue. Please see the reference section for details.
The vendor has released Gallery 1.4.2 to address this and other issues. It is advised that if possible, users should upgrade to this version.
Bharat Mediratta Gallery 1.3.1
-
Bharat Mediratta Gallery 1.41-pl1
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id= 7239&release_id=212324
Bharat Mediratta Gallery 1.3.2
-
Bharat Mediratta Gallery 1.41-pl1
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id= 7239&release_id=212324
Bharat Mediratta Gallery 1.3.3
-
Bharat Mediratta Gallery 1.41-pl1
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id= 7239&release_id=212324
Bharat Mediratta Gallery 1.4
-
Bharat Mediratta Gallery 1.41-pl1
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id= 7239&release_id=212324
Bharat Mediratta Gallery 1.4.1
-
Bharat Mediratta Gallery 1.41-pl1
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id= 7239&release_id=212324
References
Gallery Remote Global Variable Injection Vulnerability
References:
References:
- Gallery Home Page (Bharat Mediratta)