Exploit-DB #31733
Description: My PDF Creator & DE DM 1.4 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-02-18
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
My PDF Creator & DE DM v1.4 iOS - Multiple Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1201


Release Date:
=============
2014-02-16


Vulnerability Laboratory ID (VL-ID):
====================================
1201


Common Vulnerability Scoring System:
====================================
7.3


Product & Service Introduction:
===============================
My PDF Doc is the all-in-one document management solution for iPhone, iPod touch and iPad. It can catch documents from PC 
or Mac via USB cable or WIFI, email attachments, Dropbox and box and save it on your iPhone, iPod Touch or iPad locally. Cool 
app that allow you to create PDF from Map, Website and any other text files. My PDF Doc supports PDF, MS Office, iWorks and 
the most common file types.

(Copy of the Vendor Homepage: https://itunes.apple.com/us/app/my-pdf-creator-document-editor/id725481535 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official My PDF Creator & 
Document Editor (Document Manager) v1.4 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-02-16: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Apple AppStore
Product: My PDF Creator & Document Editor (Document Manager) - iOS 1.4


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include- and an arbitrary file upload vulnerability has been discovered in the official My PDF Creator & 
Document Editor (Document Manager) v1.4 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/device.

The vulnerability is located in the upload file > submit module of the mobile web-application interface.
Remote attackers can manipulate the `upload > submit` POST method request with the vulnerable `filename` 
value to compromise the application or connected device components. The issue allows remote attackers to 
include local app path values or wifi web-server files. The exploitation appears on the application-side 
and the inject request method is POST. The exection occurs in the main index file dir list or in the 
selected sub category folder/path. The security risk of the local file include web vulnerability is 
estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.3(+)|(-)7.4.

Exploitation of the vulnerability requires no user interaction or privileged mobile application user account.
Successful exploitation of the file include web vulnerability results in mobile application compromise, 
connected device compromise or web-server compromise.

Request Method(s):
				[+] POST

Vulnerable Module(s):
				[+] Upload File

Vulnerable Procedure(s):
				[+] Submit

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] File Dir Index Listing (http://localhost:50496)
				[+] Sub Category (Path) Listing (http://localhost:50496/.xpath)


1.2
An arbitrary file upload web vulnerability has been discovered in the official My PDF Creator & Document Editor 
(Document Manager) v1.4 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. As result the attacker is 
mostly able to execute the uploaded malicious file.

The vulnerability is located in the upload file module with the submit procedure. Remote attackers are able to upload 
a php or js web-shells by a rename of 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 `image.jpg.gif.js.php.jpg`. After the 
upload the attacker needs to open the file in the web application. He deletes the .jpg & . gif file extension and can 
access the application with elevated 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.7(-).

Exploitation of the arbitrary file upload web vulnerability requires no user interaction or privileged mobile 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 Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] File Dir Index Listing (http://localhost:50496)
				[+] Sub Category (Path) Listing (http://localhost:50496/.xpath)


Proof of Concept (PoC):
=======================
1.1
The arbitrary file upload web vulnerability can be exploited by remote attackers without user interaction or privileged mobile 
application user account. For security demonstration or to reproduce the vulnerability follow the information and steps below.

PoC: File Dir Index Listing - filename 

<div id="module_main">‚Äã‚Äã‚Äã‚Äã‚Äã<h2>Wi-Fi File Transfer</h2>
<hr><div class="files"><bq>Files</bq>     
<p><a href="..">..</a><br>     </p><a href="TESTER23.jpg">TESTER23</a>		
(    23.8 Kb, 2014-02-15 13:45:00 +0000)<br>
<a href="<[LOCAL FILE INCLUDE VULNERABILITY!]>"><[LOCAL FILE INCLUDE VULNERABILITY!]"></a>		
(    23.8 Kb, 2014-02-15 13:45:46 +0000)<br />
</p><form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>upload file