Secunia Logo  
 
Gallery "stepOrder[]" Local File Inclusion Vulnerability
Secunia Advisory: SA19175
Release Date: 2006-03-09
Last Update: 2006-03-16
Popularity: 6,364 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. NTP OpenSSL "EVP_VerifyFinal()" Spoofing Vulnerability // 41 views
2. phpBB reveals user IPs // 39 views
3. Cisco Global Site Selector DNS Request Denial of Service // 38 views
4. Drupal Project Module File Upload and Cross-Site Scripting // 38 views
5. Red Hat update for openssl // 38 views
6. SmbFTPD Long Command Processing Vulnerability // 35 views
7. Drupal Project Issue Tracking Module Multiple Vulnerabilities // 34 views
8. Lasso OpenSSL "DSA_verify()" Spoofing Vulnerability // 33 views
9. ISC BIND "EVP_VerifyFinal()" and "DSA_do_verify()" Spoofing Vulnerability // 32 views
10. tnftpd Long Command Processing Vulnerability // 32 views