Exploit-DB #31692
Description: mbDriveHD 1.0.7 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-02-16
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
mbDriveHD v1.0.7 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1198


Release Date:
=============
2014-02-14


Vulnerability Laboratory ID (VL-ID):
====================================
1198


Common Vulnerability Scoring System:
====================================
6.7


Product & Service Introduction:
===============================
mbDriveHD - Turn your iPad into a wireless network disk and document viewer. With mbDriveHD, transferring files to and 
from your iPad has never been easier! Thanks to our lightning fast Web server build-in, you can use any web browser to 
transfer your documents and files to/from iPad. This app has a 2.7 star rating, with ratings in 27 markets (36 ratings). 
It occupies the 165441th position in our ranking with 52 points. It is among the 25% best ones of its category and among 
the 25% best ones of the overall top.

( Copy of the Homepage: https://itunes.apple.com/us/app/mbdrivehd./id384867710 - Commercial $2.99 )
( Copy of the Homepage: https://itunes.apple.com/de/app/mbdrivehd-free/id399732602 - Free Edition )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official mbDriveHD v1.0.7 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-02-14:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
mbpowertools
Product: mbDriveHD - iOS Mobile Web Application 1.0.7


Exploitation Technique:
=======================
Local


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the official mbDriveHD v1.0.7 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/device.

The web vulnerability is located in the `file name` value of the `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 index section after the POST method request. The security 
risk of the local file include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.1(+)|(-)7.2.

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):
				[+] Upload

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Directory Listing



1.2
A local command/path injection web vulnerability has been discovered in the official mbDriveHD v1.0.7 iOS mobile web-application.
The remote vulnerability allows to inject local commands via vulnerable system values to compromise the apple iOS mobile application.

The vulnerability is located in the in the `device name` value of the `index and sub category listing` module. Local attackers are 
able to inject own script codes as iOS device name. The execute of the injected script code occurs with persistent attack vector 
in the header section of the web interface. The security risk of the command/path inject vulnerabilities are estimated as high 
with a cvss (common vulnerability scoring system) count of 6.0(+)|(-)6.1.

Exploitation of the command/path inject vulnerability requires a local low privileged iOS device account with restricted access 
and no direct user interaction. Successful exploitation of the vulnerability results in unauthorized execute of system specific 
commands or unauthorized path requests.

Request Method(s):
				[+] [GET]

Vulnerable Parameter(s):
				[+] devicename

Affected Module(s):
				[+] Index File Directory Listing - [Header]


Proof of Concept (PoC):
=======================
1.1
The local file include web vulnerability can be exploited by remote attackers without user interaction or privileged mobile 
web-application user account. For security demonstration or to reproduce the vulnerability follow the provided information and steps below.

PoC:  Upload > [filename]

<p><a href="..">..</a><br>
<table width="750"><tbody>
<tr>
<td width="500"><a href="><%2F./[LOCAL FILE INCLUDE VULNERABILITY!].jpg">><><%2F./[LOCAL FILE INCLUDE VULNERABILITY!].jpg">.jpg</a></td>
<td align="right" width="140" >    23.8 Kb</td><td width="10"></td><td width="300">2014-02-12 13:49:43 +0000</td>
</tr><tr>
<td width="500" ><a href="><%2F./[LOCAL FILE INCLUDE VULNERABILITY!].jpg">><%2F./[LOCAL FILE INCLUDE VULNERABILITY!].jpg</a></td>
<td align="right" width="140" >    23.8 Kb</td><td width="10"></td><td width="300">2014-02-12 13:32:23 +0000</td>
</tr></tbody></table>
</p><form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>upload file:<input type="file" name="file" id="file" /></label><label><input type="submit" name="button" id="button" value="Submit" /></label></form>
</body></html></iframe></a></td></tr></tbody></table></p>



--- PoC Session Logs [POST] ---
Status: 200[OK]
POST http://localhost:8080/ Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] Gr��e des Inhalts[1228] Mime Type[application/x-unknown-content-type]
   Request Header:
      Host[lo