Exploit-DB #32569
Description: iStArtApp FileXChange 6.2 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-03-28
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
iStArtApp FileXChange v6.2 iOS - Multiple Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1237


Release Date:
=============
2014-03-26


Vulnerability Laboratory ID (VL-ID):
====================================
1237


Common Vulnerability Scoring System:
====================================
7.4


Product & Service Introduction:
===============================
FileXChange is a handy file manager for iPhone, iPod Touch and iPad. With FileXChange, you can share files with Mac, Windows, Linux and other iOS devices, 
and use your iPhone, iPod Touch or iPad as a flash memory. With FileXChange, your iPhone, iPodTouch or iPad becomes a flash-memory drive. You can store files, 
open them on your device or on any MAC or PC, wirelessly, using a simple internet browser.

(Copy of the Homepage: https://itunes.apple.com/us/app/filexchange/id428955307 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple high severity vulnerabilities in the official iStArtApp FileXChange v6.2 iOS mobile application.


Vulnerability Disclosure Timeline:
==================================
2014-03-26:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
iStArtApp
Product: FileXChange - iOS Mobile Web Application 6.2


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the official iStArtApp FileXChange v6.2 iOS mobile web-application.
A 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 `filename` value of the `Upload a File` module. Remote attackers are able to inject own files with 
malicious `filename` value in the upload POST method request to compromise the mobile web-application. The attack vector is persistent and 
the request method is POST. The local file/path include execution occcurs in the main index file dir list. The security risk of the local 
file include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.5(+)|(-)7.6.

Exploitation of the local file include web vulnerability requires no user interaction but a privileged web-application user account with 
low user auth. Successful exploitation of the local file include web vulnerability results in mobile application or connected device 
component compromise.

Request Method(s):
				[+] [POST]

Vulnerable Module(s):
				[+] Upload a File > Submit

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Dir List (http://localhost:8888/)



1.2
An arbitrary file upload web vulnerability has been discovered in the official iStArtApp FileXChange v6.2 iOS mobile web-application.
The arbitrary file upload issue allows remote attackers to upload files with multiple extensions to bypass the web-server or system validation.

The vulnerability is located in the `Upload a File` module. Remote attackers are able to upload a php or js web-shells by renaming the file with 
multiple extensions to bypass the file restriction mechanism. The attacker uploads for example a web-shell with the following name and extension 
`test.txt.html.php.js.aspx.txt`. After the upload the attacker needs to open the file with the path value in the web application. He deletes the 
.txt file extension and can access the application with elevated executable access rights. The security risk of the arbitrary file upload web 
vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.2(+)|(-)7.3.

Exploitation of the arbitrary file upload web vulnerability requires no user interaction or privileged application user account with password.
Successful exploitation of the vulnerability results in unauthorized file access because of a compromise after the upload of web-shells.

Request Method(s):
				[+] [POST]

Vulnerable Module(s):
				[+] Select File > Upload

Vulnerable Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] Index File Dir List (http://localhost:8888/)



1.3
A local command/path injection web vulnerabilities has been discovered in the official iStArtApp FileXChange v6.2 iOS mobile web-application.
A command inject vulnerability allows attackers to inject local commands via vulnerable system values to compromise the apple mobile iOS application.

The vulnerability is located in the vulnerable `devicename` value of the wifi fapplication. Local attackers are able to inject own malicious 
system specific commands or path value requests via devicename value. The injection requires an active sync of the device information by new connections.
The execution of the local command inject via devicename value on sync occurs in the header loction of all interface sites. The security risk of the local 
command/path inject vulnerability is estimated as high(-) with a cvss (common vulnerability scoring system) count of 5.7(+)|(-)5.8.

Exploitation of the command/path inject vulnerability requires a low privileged iOS device account with restricted access and no user interaction. 
Successful exploitation of the vulnerability results in unauthorized execution of system specific commands and unauthorized path value requests to 
compromise the mobile iOS application or the connected device components.

Request Method(s):
				[+] Sync

Vulnerable Parameter(s):
				[+] devicename

Affected Module(s):
				[+] Index File Di