Secunia Logo  
 
Coppermine Photo Gallery SQL Injection and Clean-Up Bypass
Secunia Advisory: SA20597
Release Date: 2006-06-13
Last Update: 2006-11-28
Popularity: 8,358 views

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

Software:Coppermine Photo Gallery 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-3064
CVE-2006-6123


Description:
imei addmimistrator has discovered three vulnerabilities in Coppermine Photo Gallery, which can be exploited by malicious people to bypass certain security restrictions and conduct SQL injection attacks.

1) Input passed to the "referer" and "user-agent" HTTP headers isn't properly sanitised before being used in a SQL query in the "add_hit()" function. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "magic_quotes_gpc" is disabled and that the "Keep detailed hit statistics" setting is enabled (not enabled by default).

2) An error in the clean-up functionality in init.inc.php can be exploited to unset system arrays (e.g. "_GET" and "_POST").

This can further be exploited to bypass the security protection which undefines global variables if "register_globals" is enabled.

The vulnerabilities have been confirmed in version 1.4.8. Other versions may also be affected.

Solution:
The vulnerabilities have been fixed in the SVN repository.

Provided and/or discovered by:
imei addmimistrator

Changelog:
2006-06-20: Added CVE reference.
2006-06-26: Added additional vulnerability provided by imei addmimistrator.
2006-11-28: Added CVE reference.

Original Advisory:
http://myimei.com/security/2006-06-11...hit-function-sqlinjection-attack.html
http://myimei.com/security/2006-06-20...ypassregistering-global-varables.html


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. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 55 views
2. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 43 views
3. Zeroboard Multiple Vulnerabilities // 32 views
4. Symantec Mail Security for SMTP Response Handling Denial of Service // 30 views
5. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 28 views
6. Red Hat update for openssl // 24 views
7. Red Hat update for dbus // 22 views
8. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 22 views
9. BlogHelper "common_db.inc" Information Disclosure Security Issue // 21 views
10. HP OpenView Network Node Manager Multiple Vulnerabilities // 21 views