Exploit-DB #27656
Description: Photo Transfer Upload 1.0 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2013-08-17
Author: Vulnerability-Lab

Exploit:
Title:
======
Photo Transfer Upload v1.0 iOS - Multiple Vulnerabilities


Date:
=====
2013-08-16


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=1047


VL-ID:
=====
1047


Common Vulnerability Scoring System:
====================================
8.6


Introduction:
=============
Photo Transfer Access and transfer all your photos between your iPhone/iPad and PC/Mac without 3rd party transfer utilities.
It can easily access your photo libraries via wifi from any computer with a web browser(IE/Chrome/Safari) on the same wifi 
network, very easy to use!

- Support drag & drop upload, easy to use
- Transfer multiple photos and videos at once
- Download photos and videos as zip archives
- Crate new album
- Password protection for the web access

( Copy of the Homepage: https://itunes.apple.com/us/app/photo-transfer-upload-download/id672205608 )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered a persistent vulnerability in the Photo Transfer Upload v1.0 application (Apple iOS - iPad & iPhone).


Report-Timeline:
================
2013-08-16:    Public Disclosure (Vulnerability Laboratory)


Status:
========
Published


Affected Products:
==================
Apple AppStore
Product: Photo Transfer Upload - Mobile Application 1.0


Exploitation-Technique:
=======================
Remote


Severity:
=========
Critical


Details:
========
1.1
A local file/path include web vulnerability is detected in the Photo Transfer Upload v1.0 application (Apple iOS - iPad & iPhone).
The file include vulnerability allows remote attackers to include (upload) local file or path requests to compromise the application or service.

The vulnerability is located in the upload module when processing to upload files with manipulated filename values in the POST method request. 
The attacker can inject local path or files to request context and compromise the mobile device or web service. The validation has a bad side 
effect which impacts the risk to combine the attack with persistent injected script code.

Exploitation of the local file include web vulnerability requires no user interaction or privilege application user account with password. 
Successful exploitation of the vulnerability results in unauthorized local file and path requests to compromise the device or application.

Vulnerable Application(s):
				[+] Photo Transfer Upload v1.0 - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] Upload (Files) - (http://localhost)

Vulnerable Parameter(s):
				[+] filename 

Affected Module(s):
				[+] Index File Dir Listing



1.2
An arbitrary file upload web vulnerability is detected in the Photo Transfer Upload v1.0 application (Apple iOS - iPad & iPhone).
The arbitrary file upload issue allows a remote attacker to upload files with multiple extensions to bypass the validation for unauthorized access.

The vulnerability is located in the upload module when processing to upload files with multiple ending extensions. Attackers are able to upload 
a php or js web-shells by renaming the file with multiple extensions. The attacker uploads for example a web-shell with the following name and 
extension image.jpg.js.php.jpg . The attacker needs to open the file in the web application and deletes the .jpg file extension to access the 
picture with elevated access rights.

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.

Vulnerable Application(s):
				[+] Photo Transfer Upload v1.0 - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] Upload (Files) - (http://localhost)

Vulnerable Parameter(s):
				[+] filename (multiple extensions)

Affected Module(s):
				[+] Index File Dir Listing


1.3
A persistent input validation web vulnerability is detected in the Photo Transfer Upload v1.0 application (Apple iOS - iPad & iPhone).
The bug allows an attacker (remote) to implement/inject malicious own malicious persistent script codes (application side).

The vulnerability is located in the `Add Photo Album` module of the web-server interface (http://localhost) when processing to 
request via POST method manipulated `album names`. The album name will be changed to the path value without secure filter, 
encode or parse mechanism. The injected script code will be executed in the main index file dir folder listing of the mobile application.

Exploitation of the persistent web vulnerability requires low user interaction and no privilege application user account with a password. 
Successful exploitation of the vulnerability can lead to persistent session hijacking (customers), account steal via persistent web attacks, 
persistent phishing or persistent module context manipulation.

Vulnerable Application(s):
				[+] Photo Transfer Upload v1.0 - ITunes or AppStore (Apple)

Vulnerable Module(s):
				[+] Add Photo Album

Vulnerable Parameter(s):
				[+] Album Name

Affected Module(s):
				[+] Index Listing
				[+] Sub Category Listing


Proof of Concept:
=================
1.1
The file/path include web vulnerability can be exploited by remote attackers without user interaction or 
privilege application user account. For demonstration or reproduce ...


--- POST --- (Upload #1)
POSTDATA =----------------------------[PII_REDACTED]27308
Content-Disposition: form-data; name="params"

name:Camera%20Roll|url:95016B21-FEE4-43E5-802D-3891B9C6ACF4
----------------------------[PII_REDACTED]27308
Content-Disposition: form-data; name="newfile"; filename="><;../../var/mobile/x[FILE INCLUDE VULNERABILITY]"
Content-Type: image/png
‰PNG
-
--- POST --- (LIST INDEX #1 #2)
POSTDATA={"url":"ALL"}


Note: After the