Secunia Logo  
 
Gallery Script Insertion and Session Handling Vulnerabilities
Secunia Advisory: SA19104
Release Date: 2006-03-03
Last Update: 2006-03-14
Popularity: 6,873 views

Critical:
Moderately critical
Impact: Security Bypass
Cross Site Scripting
Manipulation of data
Where: From remote
Solution Status: Vendor Patch

Software:Gallery 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1128
CVE-2006-1126
CVE-2006-1127


Description:
James Bercegay has reported some vulnerabilities in Gallery, which can be exploited by malicious people to conduct script insertion attacks and to bypass certain security restrictions.

1) Input passed to "getRemoteHostAddress()" via the X_FORWARDED_FOR HTTP header isn't properly sanitised before being saved. This can be exploited to spoof the IP address that is logged when adding comments in an album, or to execute arbitrary HTML and script code in a user's browser session in context of an affected website when a malicious comment is viewed.

2) Input passed in the session id isn't properly sanitised before being used. This can be exploited to delete arbitrary files accessible to the web server process.

The vulnerabilities have been reported in version 2 through 2.0.2.

Solution:
Update to version 2.0.3.
http://codex.gallery2.org/index.php/Gallery2:Download

Provided and/or discovered by:
James Bercegay, GulfTech Security Research Team.

Changelog:
2006-03-14: Added CVE references.

Original Advisory:
http://gallery.menalto.com/gallery_2.0.3_released
http://www.gulftech.org/?node=research&article_id=00106-03022006


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. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 69 views
2. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 63 views
3. Symantec Mail Security for SMTP Response Handling Denial of Service // 60 views
4. Red Hat update for openssl // 42 views
5. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 41 views
6. Red Hat update for dbus // 35 views
7. Sun Java JDK / JRE Multiple Vulnerabilities // 34 views
8. Red Hat update for xterm // 31 views
9. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 30 views
10. Internet Explorer Data Binding Memory Corruption Vulnerability // 30 views