Exploit-DB #29514
Description: appRain 3.0.2 - Blind SQL Injection
Type: webapps
Platform: php
Date: 2013-11-08
Author: High-Tech Bridge SA

Exploit:
Advisory ID: HTB23177
Product: appRain
Vendor: appRain
Vulnerable Version(s): 3.0.2 and probably prior
Tested Version: 3.0.2
Advisory Publication:  October 9, 2013  [without technical details]
Vendor Notification: October 9, 2013 
Public Disclosure: November 6, 2013 
Vulnerability Type: SQL Injection [CWE-89]
CVE Reference: CVE-2013-6058
Risk Level: High 
CVSSv2 Base Score: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Solution Status: Solution Available
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered vulnerability in appRain, which can be exploited to perform SQL Injection  attacks.


1) Blind SQL Injection in appRain: CVE-2013-6058

The vulnerability is caused by insufficient validation of user-supplied data appended to "/blog-by-cat/" URL. Remote attacker can execute arbitrary SQL commands to read, modify or delete information in application's database.

The following exploitation example will display all posts from category 1, if the MySQL Server version is 5.x, otherwise no posts will be displayed:

http://[host]/blog-by-cat/1%20and%20substring(version(),1,1)=5/

-----------------------------------------------------------------------------------------------

Solution:

Vendor did not reply to 5 notifications by email, 1 notification by twitter, 1 forum thread. Currently we are not aware of any official solution for this vulnerability.

Unofficial patch was developed by High-Tech Bridge Security Research Lab and is available here: https://www.htbridge.com/advisory/HTB23177-patch.zip

-----------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23177 - https://www.htbridge.com/advisory/HTB23177 - SQL Injection in appRain.
[2] appRain - http://www.apprain.com/ - appRain is a platform to build your web base application.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
[5] ImmuniWeb® - http://www.htbridge.com/immuniweb/ - is High-Tech Bridge's proprietary web application security assessment solution with SaaS delivery model that combines manual and automated vulnerability testing.

-----------------------------------------------------------------------------------------------

Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.