Exploit-DB #31693
Description: File Hub 1.9.1 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-02-16
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
File Hub v1.9.1 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1195


Release Date:
=============
2014-02-15


Vulnerability Laboratory ID (VL-ID):
====================================
1195


Common Vulnerability Scoring System:
====================================
9.1


Product & Service Introduction:
===============================
File Hub is a powerful and intuitive file manager for iOS. Read, Play, View many file formats, easily transfer files 
between computer or cloud services and manage files via browser on computer. Voice recorder, text file editor and more.

(Copy of the Vendor Homepage: https://itunes.apple.com/en/app/file-hub-usb+wifi+bluetooth+cloud/id520299954 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple critical web vulnerabilities in the official File Hub v1.9.1 iOS application.


Vulnerability Disclosure Timeline:
==================================
2014-02-15:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Apple AppStore
Product: File Hub - Mobile Web Application 1.9.1


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Critical


Technical Details & Description:
================================
1.1
A critical remote code execution web vulnerability has been discovered in the official File Hub v1.9.1 iOS mobile web-application.
The web vulnerability allows remote attackers to execute unauthorized system specific codes or commands to compromise the affected system/service.

The vulnerability is located in the `folder rename via edit` and `new folder` function of the file hub wifi application interface. Remote attackers 
are able to inject own system specific codes as folder/path name to compromise the application. The code execution occurs after the inject via POST 
method in the main index and the sub category folder. In the sub category folder the code executes in the header location of the application context. 
In the main index the code execution occurs in the index file dir & item list. The security risk of the remote code execution vulnerability in the 
new folder function is estimated as critical with a cvss (common vulnerability scoring system) count of 9.3(+)|(-)9.4.

Exploitation of the code execution vulnerability requires no user interaction or privileged mobile web-application user account with password. 
Successful exploitation of the remote code execution vulnerability results in mobile application or connected device component compromise.

Request Method(s):
				[+] [POST]

Vulnerable Module(s):
				[+] New Folder (Add)

Vulnerable Parameter(s):
				[+] folder name

Affected Module(s):
				[+] Index File Dir Item List - Path Dir Location on Top
				[+] Sub Category - Header Location to Path


1.2
A local file include web vulnerability has been discovered in the official File Hub v1.9.1 iOS mobile web-application.
The local file include web vulnerability allows remote attackers to unauthorized include local file/path requests or system 
specific path commands to compromise the web-application or mobile device.

The web vulnerability is located in the `file name` value of the `Files to Upload` module POST method request. Remote attackers are 
able to inject own files with malicious filename to compromise the mobile application. The attack vector is persistent and the request 
method is POST. The local file/path include execution occcurs in the main file to path section after the refresh of the file upload. 
The security risk of the local file include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring 
system) count of 7.3(+)|(-)7.4.

Exploitation of the local file include web vulnerability requires no user interaction or privileged web-application user account with password. 
Successful exploitation of the local web vulnerability results in mobile application or connected device component compromise by unauthorized 
local file include web attacks.

Request Method(s):
				[+] [POST]

Vulnerable Input(s):
				[+] Files to Upload

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Dir Item List
				[+] Sub Category File Dir Item List
				[+] Index File or Item Edit
				[+] Index File  or Item Remove/Delete


Proof of Concept (PoC):
=======================
1.1
The remote code execution web vulnerability can be exploited by remote attackers without user interaction and privileged application user account.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below.


PoC:

<table class="jtable"><thead><tr><th style="width: 1%;" class="jtable-command-column-header jtable-column-header-selecting">
<div class="jtable-column-header-container"><input type="checkbox"></div></th><th style="width: 12.1164%;" class="jtable-column-header">
<div class="jtable-column-header-container"><span class="jtable-column-header-text"></span><div class="jtable-column-resize-handler"></div></div></th>
<th style="width: 48.5344%;" class="jtable-column-header"><div class="jtable-column-header-container">
<span class="jtable-column-header-text">File Name</span><div class="jtable-column-resize-handler"></div></div></th>
<th style="width: 12.1164%;" class="jtable-column-header"><div class="jtable-column-header-container"><span class="jtable-column-header-text">File Size</span>
<div class="jtable-column-resize-handler"></div></div></th><th style="width: 19.4138%;" class="jtable-column-header"><div class="jtable-column-header-container">
<span class="jtable-column-header-text">Last modified</span><div class="jtable-colu