Exploit-DB #25417
Description: File Lite 3.3/3.5 PRO iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2013-05-13
Author: Vulnerability-Lab

Exploit:
Title:
======
File Lite 3.3 & 3.5 PRO iOS - Multiple Web Vulnerabilities


Date:
=====
2013-05-04


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=939


VL-ID:
=====
939


Common Vulnerability Scoring System:
====================================
5.9


Introduction:
=============
You have tons of files you need to get from one device to another, so what do you do? You use File Pro, that’s what you do. 
App Chronicles! Multipurpose, Easy-to-Use and Robust app for files & documents. Import files, documents & media from PC/Mac, 
email attachments, dropbox, sugarsync, iCloud & Box.net to File Pro along with amazing transfer features of FTP and Wifi. 
The only documents manager app which includes total security of files along with PDF scanner, Audio Recorder and editing 
TXT files. Open all kind of file & documents including RAR and CBR files.

(Copy of the Homepage: https://itunes.apple.com/de/app/file-pro-document-viewer-file/id537623975 )  	[PRO VERSION]
(Copy of the Homepage: https://itunes.apple.com/de/app/file-lite-document-viewer/id540971042 )  	[LITE VERSION]


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the mobile File Lite 3.3 & 3.5 PRO iOS  app (Apple - iPad|iPhone).


Report-Timeline:
================
2013-05-04:	Public Disclosure


Status:
========
Published


Affected Products:
==================
Apple AppStore
Product: File Lite - Evereader Wi-Fi Sharing iOS 3.3 & 3.5 PRO


Exploitation-Technique:
=======================
Remote


Severity:
=========
High


Details:
========
1.1
A local file include and arbitrary file upload vulnerability is detected in the mobile File Lite 3.3 & 3.5 PRO iOS  app (Apple - iPad|iPhone).
The vulnerability allows remote attackers via POST method to include unauthorized remote files on the affected webserver file system.

Remote attackers can also unauthorized implement mobile webshells by using multiple file extensions (*.php.js.gif) when processing to 
upload via POST request method. The attacker uploads a file with a double extension or multiple extensions and access the file in the 
secound step by usage of the directory webserver dir listing to compromise the apple iphone or ipad application.

Exploitation of the local file include web vulnerability does not require user interaction and also no application user account. 
Successful exploitation of the web vulnerabilities results in app/service manipulation and ipad or iphone compromise via file 
include or unauthorized web-server file (webshell) upload attacks.

Vulnerable Application(s):
				[+] File Lite 3.3 & 3.5 PRO - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] File Upload

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] File Dir Index Listing



1.2
A persistent input validation vulnerability is detected in the mobile Wifi Photo Transfer 2.1 & 1.1 Pro 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://localhost:8080/) 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 an 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):
				[+] File Lite 3.3 & 3.5 PRO - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] File Upload

Vulnerable Parameter(s):
				[+] Name

Affected Module(s):
				[+] Filename - Index File Dir Name Listing


1.3
A client side cross site scripting web vulnerability is detected in the mobile Wifi Photo Transfer 2.1 & 1.1 Pro app for the apple ipad & iphone.
The vulnerability allows remote attackers to form manipulated urls to inject script code on client side application requests.

The client side cross site scripting web vulnerability is located in the index section when processing to request the via GET a 
manipulated filename (value) as response. The vulnerability occurs when a remote attacker is changing the GET file  request to 
own script code.  The request will be executed on client side of the victims browser.

Exploitation of the vulnerability does not require an application user account but low or medium user interaction.
Successful exploitation results in client side cross site requests, unauthorized external redirects, client side phishing, 
client side session hijacking and client side module context manipulation.

Vulnerable Application(s):
				[+] File Lite 3.3 & 3.5 PRO - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] Files - GET Request

Vulnerable Parameter(s):
				[+] filename


Proof of Concept:
=================
1.1
the arbitrary file upload vulnerability can be exploited by remote attackers without required application user account or user interaction.
For demonstration or reproduce ...

PoC: POST REQUEST METHOD - FILE UPLOAD

Host=192.168.2.104:8080

User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language=en-US,en;q=0.5

Accept-Encoding=gzip, deflate
DNT=1

Referer=http://192.168.2.104:8080/

Connection=keep-alive
Content-Type=multipart/form-data; 
boundary=---------------------------48