Exploit-DB #32560
Description: ePhone Disk 1.0.2 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-03-27
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
ePhone Disk v1.0.2 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1230


Release Date:
=============
2014-03-25


Vulnerability Laboratory ID (VL-ID):
====================================
1230


Common Vulnerability Scoring System:
====================================
6.9


Product & Service Introduction:
===============================
ePhone Disk is lightweight file manager that lets you download, organize, transfer, offline read your files. 
It provides the most advanced WiFi sharing features in market.

SHARE FILES VIA WIFI
- Access iPhone like a USB drive from computer, simply use Drag and Drop to manage files
- Discover nearby devices, and discoverable by others
- Single tap to connect to nearby devices
- Accessible from any WebDav client

( Copy of the Homepage: https://itunes.apple.com/us/app/ephone-disk-download-share/id621895613 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple vulnerabilities in the official Easiermobile Inc - ePhone Disk v1.0.2 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-03-25:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Easiermobile Inc
Product: ePhone Disk iOS - Download, Share Files via WiFi 1.0.2


Exploitation Technique:
=======================
Local


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the official Easiermobile Inc - ePhone Disk v1.0.2 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 `filename` value of the `Upload 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 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 6.8(+)|(-)6.9.

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 File

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Upload File > Index File Dir List (http://localhost:8080)



1.2
A local command/path injection web vulnerabilities has been discovered in the official Easiermobile Inc - ePhone Disk v1.0.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 `foldername` value of the wifi file dir list module. Local attackers are able to inject own malicious 
system specific commands or path value requests in the vulnerable foldername value. The injection requires a active sync with the wifi app stored folders.
The execution of the local command inject bug via foldername value on sync occurs in the file dir index list of the main upload path. The security risk of 
the local command/path inject vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.3(+)|(-)6.4.

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 [POST]

Vulnerable Parameter(s):
				[+] foldername (path value)

Affected Module(s):
				[+] ./[iPhone]/Sub Category x - File Dir Listing



1.3
A remote denial of service web vulnerability has been discovered in the official Easiermobile Inc - ePhone Disk v1.0.2 iOS mobile web-application.
A denial of service vulnerability allows remote attackers to block, freeze or crash the affected or vulnerable mobile online-service application.

The vulnerability is located in the vulnerable `[download]` value of the downloads module. Local attackers are able to include tags as download 
path value via GET method request. The application responds with an unhandled exception and the result is a permanent online-service and 
application crash. The security risk of the remote denial of service web vulnerability is estimated as low(+) with a cvss (common vulnerability 
scoring system) count of 1.8(+)|(-)1.9.

Exploitation of the denial of service web vulnerability requires no privileged iOS device account but  low user interaction (allow|accept). 
Successful exploitation of the DoS 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):
				[+] [GET]

Vulnerable Parameter(s):
				[+] ?download


Proof of Concept (PoC):
=======================
1.1
The local file include web vulnerability can be exploited by local attackers with lo