Exploit-DB #32559
Description: Easy FileManager 1.1 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-03-27
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Easy FileManager 1.1 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1234


Release Date:
=============
2014-03-25


Vulnerability Laboratory ID (VL-ID):
====================================
1234


Common Vulnerability Scoring System:
====================================
7.9


Product & Service Introduction:
===============================
This is a file management app which is very easy to use. You can manage your files under the specified directory, including copy, 
cut, paste, delete, rename and create new directory. Preview the picture and play audio and video directly from the folder are supported.
This app also includes a simple FTP client. Users can use this client to connect to the remote ftp server, upload and download files from 
the remote ftp server. It also includes a FTP Server and a HTTP Server. When you start the FTP Server, you can use common FTP client or 
windows explorer to connect to the iphone via wifi. Also, when you start the HTTP Server, you can use internet browser to connect to the 
server via wifi. It makes your iphone as a portable U disk. It’s really easyt to use this app. The function buttons are clearly. Also, 
you can just long click the screen to get the action list.

(Copy of the Homepage: https://itunes.apple.com/de/app/easy-file-manager/id487524125 )
(Vendor Homepage: http://www.easytimestudio.com/ )



Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple high severity vulnerabilities in the official Easytime Studio Easy File Manager v1.1 mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-03-25:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Easytime Studio
Product: Easy File Manager - iOS Mobile Web Application 1.1


Exploitation Technique:
=======================
Local


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the official Easytime Studio Easy File Manager v1.1 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 File > Send Data` 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 attacker is able to 
tamper the file upload POST method request to manipulate via intercept the vulnerable filename value. The request method to exploit is 
POST and the attack vector is on the application-side of the wifi iOS mobile application. The local file/path include execution occcurs 
in the main directory 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.8(+)|(-)7.9.

Exploitation of the local file include web vulnerability requires no user interaction or privileged web-application user account. 
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):
				[+] Select File > Upload

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Directory Dir List (http://localhost:8080/)



1.2
An arbitrary file upload web vulnerability has been discovered in the official Easytime Studio Easy File Manager v1.1 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 File > Send Data` (resources & files) 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 `ptest.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 6.9(+)|(-)7.0.

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):
				[+] Upload File

Vulnerable Function(s):
				[+] Send Data

Vulnerable Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] Directory Dir List (http://localhost:8080/)


Proof of Concept (PoC):
=======================
1.1
The local file include web vulnerability can be exploited by remote attackers without user interaction or privileged application user account (ui passwd blank).
For security demonstration or to reproduce the remote web vulnerability follow the provided information and steps below to continue.

PoC: Local File Include Vulnerability
http://localhost:8080/private/var/mobile/Applications/7A8AF3A4-0263-4E35-9E0A-74A430C18C7A/Documents/[LOCAL FILE INCLUDE VULNERABILITY!]


--- PoC- Session Logs [POST] ---

Status: 200[OK