Exploit-DB #30146
Description: Print n Share 5.5 iOS - Multiple Web Vulnerabilities
Type: webapps
Platform: ios
Date: 2013-12-08
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Print n Share v5.5 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1154


Release Date:
=============
2013-12-06


Vulnerability Laboratory ID (VL-ID):
====================================
1154


Common Vulnerability Scoring System:
====================================
9.2


Product & Service Introduction:
===============================
Print directly to the widest range of network or WiFi printers, without a computer or AirPrint! Alternatively print 
via your Mac/PC to ALL printers including USB & Bluetooth printers. Print... documents cloud files,web pages,emails, 
attachments, photos, contacts, calendars, clipboard items, convert to PDF and much more - to ANY PRINTER!

(Copy of the Homepage: https://itunes.apple.com/en/app/print-n-share-der-all-in-one/id301656026 


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the Print n Share v5.5 mobile application for apple iOS.


Vulnerability Disclosure Timeline:
==================================
2013-12-01:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
EuroSmartz Ltd
Product: Print n Share 5.5


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Critical


Technical Details & Description:
================================
1.1
A local file/path include web vulnerability has been discovered in the official Print n Share v5.5 mobile application for apple iOS.
The file include vulnerability allows remote attackers to include (upload) local file or path requests to compromise the application or service.

The remote file include web vulnerability is located in the import file module in the filename value. Remote attackers can inject own files or 
path requests by adding regular text files (add). It is also possible to use the `rename` or `import` function to inject. The file include and 
path request execute occurs in the main file dir index or subcategory listing of the mobile application. The security risk of the local file 
include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 8.4(+).

Exploitation of the local file include web vulnerability requires no user interaction or privileged web-application user account with password. 
Successful exploitation of the vulnerability results in unauthorized local file uploads and path requests to compromise the device or mobile app.

Request Method(s):
				[+] [POST]

Vulnerable Inputs(s):
				[+] Neue Text Datei (New Text File)
				[+] Umbenennen File (Rename File)

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Dir Listing (http://localhost:8080)



1.2
An arbitrary file upload web vulnerability has been discovered in the official Print n Share v5.5 mobile application for apple iOS.
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 import file 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 
`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 7.8(+).

Exploitation of the arbitrary file upload web vulnerability requires no user interaction or privilege 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):
				[+] File Import

Vulnerable Inputs(s):
				[+] Importieren - File > Sync

Vulnerable Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] File Path Listing (http://localhost:8080)



1.3
A persistent input validation web vulnerability has been discovered in the official Print n Share v5.5 mobile application for apple iOS.
The (persistent) vulnerability allows remote attacker to inject own malicious script code on the application-side of the mobile application.

The persistent input validation vulnerability is located in the Ordername (foldername) value of the print n share mobile web-application.
The exploitation can be done by usage of the local standard iOS pictures or video (default) app. Attackers rename the local device photo 
or video foldername.The persistent execute occurs in the listed folder of the web-server interface (http://localhost:8080). Remote attackers 
can also change the foldername by usage of the application to exploit (inject) via POST method own script code with persistent attack vector.
The vulnerable input are the `Ordername`(folder name), `Neuer Order` (new folder) and `Order Umbenennen` (folder rename). The security risk 
of the persistent input validation web vulnerability is estimated as medium(+) with a cvss (common vulnerability scoring system) count of 4.5(+).

Exploitation of the persistent input validation web vulnerability requires no privileged mobile application user account but low or medium 
user interaction. Successful exploitation of the persistent vulnerability results in persistent session hijacking (customers) attacks, account 
steal via persistent web attacks, persistent