Lucene search
K
Code
Document Title:
===============
Joomla com_rsgallery2 v1.6 - SQL Injection Vulnerability


References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2039


Release Date:
=============
2017-02-27


Vulnerability Laboratory ID (VL-ID):
====================================
2039


Common Vulnerability Scoring System:
====================================
6.9


Product & Service Introduction:
===============================
Reliable gallery supporting user galleries on the frontend besides the standard features like watermarks and sub galleries. 
It is accompanied by modules and plugins so it can be as lean as needed.

(Copy of the Homepage: https://extensions.joomla.org/extension/rsgallery2/ )


Abstract Advisory Information:
==============================
An independent vulnerability laboratory partner team researcher discovered a remote sql-injection web vulnerability in 
the official Joomla CMS com_rsgallery2 v1.6 component.


Vulnerability Disclosure Timeline:
==================================
2017-02-27: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Joomla
Product: com_rsgallery2 - Joomla Component (Web-Application) 1.6


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
A remote sql-injection vulnerability has been discovered in the official Joomla CMS com_rsgallery2 v1.6 component.
The issue allows remote attackers to execute own malicious sql commands to compromise the web-application or dbms.

The sql-injection vulnerability is located in the `gid` parameter of the `rsgallery2` joomla web module. The request method 
to execute is GET and the attack vector is client-side. Remote attackers are able to inject own malicious sql commands 
via vulnerable `gid` parameter to compromise the web-application or dbms. The web vulnerability is a classic sql-injection 
in the joomla content management system `com_rsgallery2` component.

The security risk of the vulnerability is estimated as high with a common vulnerability scoring system count of 6.9. 
Exploitation of the sql-injection vulnerability requires no privilege web-application user account or user interaction. 
Successful exploitation of the web vulnerability results in web-application or database management system compromise.

Request Method(s):
[+] GET

Vulnerable Components(s):
[+] com_rsgallery2 (joomla)

Vulnerable File(s):
[+] index.php

Vulnerable Parameter(s):
[+] gid


Proof of Concept (PoC):
=======================
The sql-injection web vulnerability can be exploited by remote attackers without privilege web-application user account 
or user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and 
steps below to continue.


Dork(s):
allinurl:index.php?option=com_rsgallery2
inurl:index.php?option=com_rsgallery2
site:index.php?option=com_rsgallery2


Payload(s): (gid)
gid=-1+union+select+1,2,3,4,concat(username,0x3a,password),6,7,8,9,10,11,12,13+from+jos_users--


PoC: Exploitation (gid)
http://localhost/[JOOMLA_PATH]/index.php?option=com_rsgallery2&page=inline&Itemid=&lang=en&gid=[SQL-INJECTION VULNERABILITY!]&limitstart=1


Reference(s):
http://localhost/joomla/
http://localhost/joomla/index.php
http://localhost/joomla/index.php?option=com_rsgallery2


Solution - Fix & Patch:
=======================
The sql-injection web vulnerability can be resolved by a parse and restriction of the vulnerable gid parameter.
Disallow the usage of special chars and use the escape function. Implement a secure prepared statement to resolve the vulnerability.


Security Risk:
==============
The security risk of the remote sql injection web vulnerability in the web-application plugin is estimated as high. (CVSS 6.9)


Credits & Authors:
==================
Amir - Iranian Exploit Database (www.iedb.ir) [http://www.vulnerability-lab.com/show.php?user=IEDB%20Team]

Thanks: C0dex,B3hz4d,Beni_vanda,Mr_time,Bl4ck M4n,black_security,Yasser,Ramin Assadian,Black_Nofuzi,SecureHost, 
1TED,Mr_Kelever,Mr_keeper,Mahmod,Iedb,Khashayar,B3hz4d4,Shabgard,Cl09er,Be_lucky,MoslemHaghighian,Dr_Iman,8Bit,
Javid,Esmiley_Amir,Mahdi_feizezade,Amin_Zohrabi,Shellshock3 ... all my friends and the Iedb Team.


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed 
or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable 
in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab 
or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for 
consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, 
deface websites, hack into databases or trade with stolen data.

Domains:    www.vulnerability-lab.com 		- www.vuln-lab.com 						- www.evolution-sec.com
Section:    magazine.vulnerability-lab.com 	- vulnerability-lab.com/contact.php 				- evolution-sec.com/contact
Social:	    twitter.com/vuln_lab		- facebook.com/VulnerabilityLab 				- youtube.com/user/vulnerability0lab
Feeds:	    vulnerability-lab.com/rss/rss.php 	- vulnerability-lab.com/rss/rss_upcoming.php 			- vulnerability-lab.com/rss/rss_news.php
Programs:   vulnerability-lab.com/submit.php 	- vulnerability-lab.com/list-of-bug-bounty-programs.php 	- vulnerability-lab.com/register.php

Any modified copy or reproduction, including partially usages, of this file, resources or information requires authorization from Vulnerability Laboratory. 
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by 
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark 
of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@) to get a ask permission.

				    Copyright © 2017 | Vulnerability Laboratory - [Evolution Security GmbH]™



Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Feb 2017 00:00Current
0.4Low risk
Vulners AI Score0.4
37