Gallery "stepOrder[]" Local File Inclusion Vulnerability
Secunia Advisory: SA19175
Release Date: 2006-03-09
Last Update: 2006-03-16
Popularity: 5,996 views

Critical:
Highly critical
Impact: Exposure of sensitive information
System access
Where: From remote
Solution Status: Vendor Patch

Software:Gallery 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1219


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 and in the 2.1 release candidates.

Solution:
Update to version 2.0.4.
http://codex.gallery2.org/index.php?title=Gallery2:Download&oldid=8035

Provided and/or discovered by:
rgod

The vendor credits James Bercegay, GulfTech Security Research.

Changelog:
2006-03-13: Updated "Description", "Solution", and "Provided and/or discovered by" sections, and added link to vendor advisory.
2006-03-16: Added CVE reference.

Original Advisory:
http://milw0rm.com/exploits/1566
http://gallery.menalto.com/2.0.4_and_2.1_rc_2a_update


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Zeroboard Multiple Vulnerabilities // 53 views
2. Zeroboard Two Vulnerabilities // 52 views
3. Sun Java JDK / JRE Multiple Vulnerabilities // 51 views
4. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 32 views
5. VLC Media Player Multiple Vulnerabilities // 28 views
6. Php Blue Dragon CMS activecontent.php File Inclusion // 27 views
7. Zeroboard ".htaccess" File Upload Vulnerability // 25 views
8. Opera Multiple Vulnerabilities // 25 views
9. HP OpenView Select Identity Connectors Information Disclosure // 25 views
10. Cisco Secure ACS EAP Packet Denial of Service // 25 views