Exploit-DB #32619
Description: PhotoWIFI Lite 1.0 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-03-31
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
PhotoWIFI Lite v1.0 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1239


Release Date:
=============
2014-03-27


Vulnerability Laboratory ID (VL-ID):
====================================
1239


Common Vulnerability Scoring System:
====================================
6.7


Product & Service Introduction:
===============================
Share photos and files through WIFI. This app will let you transfer images easily in both directions, iPhone-to-Mac and Mac-to-iPhone.
This app runs on iPhone, iPad and iPod, and you can share with a Mac or a PC as well. Photo Uploading to Facebook is also possible.

(Copy of the Homepage: https://itunes.apple.com/us/app/wifi-photos-files-transfer/id436339474 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple vulnerabilities in the official PhotoWIFI Lite or WIFI Photo and Files Transfer v1.0 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-03-27:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
TapCoder
Product: PhotoWIFI Lite & PRO - iOS Mobile Web Application 1.0


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the official PhotoWIFI Lite or WIFI Photo and Files Transfer v1.0 iOS 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 local vulnerability is located in the `filename` value of the `Upload File` 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 attack vector is persistent and 
the request method to inject is POST. The local file/path include execution occcurs in the index file dir listing. The security risk of the 
local file include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 6.4(+)|(-)6.5.

Exploitation of the local file include web vulnerability requires no user interaction but a privileged web-application user account with low user 
auth. 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):
				[+] Upload File > Submit

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Dir List (http://localhost:85***/)



1.2
An arbitrary file upload web vulnerability has been discovered in the official PhotoWIFI Lite or WIFI Photo and Files Transfer v1.0 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.

The vulnerability is located in the `Upload File` > submit 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.jpg.html.php.js.aspx.jpg`. After the upload the attacker needs to open the file with the path value in the web application. 
He deletes the .jpg file extension and can access the application with elevated executable access rights. To access the file with elevated 
executable access rights the attacker needs to implement the local raw upload path of the application. The security risk of the arbitrary file 
upload web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 6.6(+)|(-)6.7.

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 > Submit

Vulnerable Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] Index File Dir List (http://localhost:85***/)



1.3
A local command/path injection web vulnerability has been discovered in the official PhotoWIFI Lite or WIFI Photo and Files Transfer v1.0 iOS mobile web-application.
The vulnerability allows to inject local commands via vulnerable system values to compromise the apple mobile iOS application.

The vulnerability is located in the vulnerable `devicename` value of the wireless transfer app index header location module. 
Local attackers with physical device access are able to manipulate the iOS `devicename` to compromise the affected header 
location context in the file dir index list. The execution of the injected command/path request occurs in the all wifi 
interface sites with implemented devicename in the header location. The request method to inject system specific commands via 
the vulnerable devicename value is a local sync via (apple - ios) device.The security risk of the command/path inject 
vulnerability is estimated as high(-) with a cvss (common vulnerability scoring system) count of 6.6(-).

Exploitation of the command/path inject vulnerability requires a local low privileged iOS device account with restricted access 
and no direct user interaction. Successful exploitation of the vulnerability results unauthorized execution of system specific 
co