Secunia Logo
Netsikker nu! 2008
 
Coppermine Photo Gallery SQL Injection and Clean-Up Bypass
Secunia Advisory: SA20597
Release Date: 2006-06-13
Last Update: 2006-11-28
Popularity: 7,992 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

Today
New advisories: 18
New vulnerabilities: 65
Updated advisories: 61

Moderately // 30 views
Atarone CMS Multiple Vulnerabilities
Moderately // 112 views
Debian update for squid
Less // 117 views
SUSE update for mercurial
Moderately // 140 views
SUSE update for openssh
Less // 122 views
Fedora update for mediawiki

Solutions | More...  


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. SUSE update for openssh // 116 views
2. SUSE update for mercurial // 97 views
3. Debian update for squid // 95 views
4. SUSE update for dovecot and graphicsmagic // 83 views
5. CMME Information Disclosure Security Issues // 83 views
6. Juniper Products Neighbor Discovery Protocol Neighbor Solicitation Vulnerability // 71 views
7. H-Sphere webshell4 Cross-Site Scripting and Request Forgery // 67 views
8. HP-UX NFS/ONCplus Denial of Service Vulnerability // 60 views
9. Fedora update for mediawiki // 51 views
10. MetaGauge Directory Traversal Vulnerability // 48 views