Exploit-DB #29280
Description: GTX CMS 2013 Optima - SQL Injection
Type: webapps
Platform: php
Date: 2013-10-29
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
GTX CMS 2013 Optima - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1124


Release Date:
=============
2013-10-29


Vulnerability Laboratory ID (VL-ID):
====================================
1124


Common Vulnerability Scoring System:
====================================
7.2


Product & Service Introduction:
===============================
We provide you with the perfect community GTX CMS software solution - making it ready to meet your needs and 
requirements and tailored to your corporate design! The complete setup of your individual interactive community 
portal or your website is done by us, so you can get started right away!

GTX CMS is extremely flexible and can be operated as a closed community (eg parallel to your existing website) 
and as a normal website with a closed member.Datails, refer to the section `About GTX CMS`.

(Copy of the Vendor Homepage: http://www.gtx-cms.de/ )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official GTX Content Management System 2013 web application.


Vulnerability Disclosure Timeline:
==================================
2013-10-29:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
OBM-Media e.K.
Product: GTX CMS - Web Application Basic, Standard and Optima


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
Multiple remote sql injection web vulnerabilities are detected in the official GTX Content Management System 2013 web application.
The vulnerability allows remote attackers to unauthorized inject own sql commands to compromise the web-application or the web-server dbms.

The sql injection vulnerabilities are located in the vulnerable `objId` and `modId` values of the tagSearchTag module. Remote attackers are 
able to inject own sql commands via GET method request to compromise the database management system or cms web-application. The inject can 
be done by usage of the executable ajax path via GET method request or by usage of the objId in the tagSearchTag module POST method request. 
The severity of the remote sql injection bugs is estimated as high.

Exploitation of the remote sql injection web vulnerability requires no user interaction and a low privileged web-application user account.
Successful exploitation of the remote sql injection bug results in database management system and cms or web-application compromise.


Vulnerable Module(s):
				[+] ajax

Vulnerable File(s):
				[+] tagSearchTag

Vulnerable Parameter(s):
				[+] objId
				[+] modId



1.2
Multiple persistent input validation web vulnerabilities are detected in the official GTX Content Management System 2013 web application.
The web vulnerability allows remote attackers to inject via POST method own malicious script codes to the online service application-side.

The first persistent input validation web vulnerability is located in the ajax `tag-searchTag` module and the connected vulnerable 
q parameter. Remote attackers are able to inject own malicious script codes as tag name. The execute occurs in the main communication 
module when an user/admin is processing to review the article or comments. Exploitation of the vulnerability requires a low privileged 
web-application user account and only low user interaction (view, no click!).

The secound persistent web vulnerability is located in the `linkverzeichnis` (link-directory) add module. Remote attackers are able 
to inject own malicious script codes as `Schl�sselworter` (keywords) in the search. The execute occurs in the main link directory 
module of the web-application. Exploitation of the vulnerability requires a low privileged web-application user account and low or 
medium user interaction (click!).

The third persistent web vulnerability is located in the `Ordnerverwaltung` (Folder/Path Management) module. Remote attackers are 
able to manipulate the vulnerable `ordner` name value in the add POST method request. The execute occurs in the main path of the 
`persoenliche nachrichten` (private messages) module in the cms control panel. Exploitation of the vulnerability requires a low 
privileged web-application user account and medium user interaction (add+click!).

Successful exploitation of the remote vulnerabilities lead to persistent session hijacking (customers), account steal via persistent 
web attacks, persistent phishing, persistent redirect to external sources, persistent redirect as file downloads or persistent 
manipulation of affected and connected context.


Vulnerable Module(s):
				[+] ajax/tagSearchTag
				[+] suche/linkverzeichnis
				[+] pers-nachrichten/ordnerverwaltung

Vulnerable Input(s):
				[+] Tags
				[+] Suche - Linkverzeichnis  > Schl�sselw�rter - Suchbegriff(e) &  Entfernung von
				[+] Orderverwaltung - Add

Vulnerable Parameter(s):
				[+] q
				[+] keywords
				[+] ordner


Proof of Concept (PoC):
=======================
1.1
The sql injection web vulnerabilities can be exploited by remote attackers with low privileged web application user account and 
without user interaction. For demonstration or to reproduce ...

PoC:
http://gtx-cms.localhost:8080/Ajax/tagSearchTag?q=[TAG(x)]&modId=ptd&objId=37_%20'null[SQL INJECTION VULNErABILITY!]--
http://gtx-cms.localhost:8080/Ajax/tagSearchTag?q=[TAG(x)]&modId=ptd%20'null[SQL INJECTION VULNErABILITY!]--&objId=3


Exploit:
<script type=``text/javascript``>document.write(unescape(``<script type=\``text\/javascript\
``>document.write\(unescape\(\``%3Chtml%3E%0A%3Chead%3E%3Cbody%3E%0A%3Ctitl