Secunia Security Advisory - rgod has discovered a vulnerability in Gallery, which can be exploited by malicious people to disclose sensitive information and compromise a vulnerable system.
2ce8caf030c0c89391565bc1349c6914506860406e66b82a1926a4bde65422c2
TITLE:
Gallery "stepOrder[]" Local File Inclusion Vulnerability
SECUNIA ADVISORY ID:
SA19175
VERIFY ADVISORY:
http://secunia.com/advisories/19175/
CRITICAL:
Highly critical
IMPACT:
Exposure of sensitive information, System access
WHERE:
>From remote
SOFTWARE:
Gallery 2.x
http://secunia.com/product/5879/
DESCRIPTION:
rgod has discovered a vulnerability in Gallery, which can be
exploited by malicious people to disclose sensitive information and
compromise a vulnerable system.
Input passed to the "stepOrder[]" parameter in "upgrade/index.php"
and "install/index.php" isn't properly verified, before it is used to
include files. This can be exploited to include arbitrary files from
local resources.
Successful exploitation requires that "magic_quotes_gpc" is disabled
and that "register_globals" is enabled.
This can further be exploited to include arbitrary PHP code injected
into "g2data/plugins_data/modules/watermark".
The vulnerability has been confirmed in version 2.0.3 and has also
been reported in prior versions. Other versions may also be affected.
SOLUTION:
Edit the source code to ensure that input is properly verified.
Set "register_globals" to "Off".
PROVIDED AND/OR DISCOVERED BY:
rgod
ORIGINAL ADVISORY:
http://milw0rm.com/exploits/1566
----------------------------------------------------------------------
About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.
Subscribe:
http://secunia.com/secunia_security_advisories/
Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/
Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.
----------------------------------------------------------------------