Exploit-DB #30000
Description: Photo Transfer Wifi 1.4.4 iOS - Multiple Web Vulnerabilities
Type: webapps
Platform: ios
Date: 2013-12-02
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Photo Transfer Wifi 1.4.4 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1153


Release Date:
=============
2013-12-02


Vulnerability Laboratory ID (VL-ID):
====================================
1153


Common Vulnerability Scoring System:
====================================
9.1


Product & Service Introduction:
===============================
nsfer WiFi app is a straight and effortless way to transfer your photos and videos between iPhones, iPads 
and computers. Forget about hassle with transferring your media via iTunes, iCloud. Features:

   -     Send photos and videos from iPhone or iPod Touch to other iPhone with a simple drag and drop
   -     Transfer media from your PC or Mac to iPhone or iPod Touch
   -     Download photos and videos to your Computer from iPhone, iPod Touch, iPad and iPad Mini
   -     Copy photos and videos from Computer to iPad or iPad Mini
   -     Import HD videos to iPad or iPad Mini from iPhone
   -     Exchange photos and videos between iPads over your local WiFi network
   -     Make your pictures accessible from your iPhone or iPod Touch to other users on the same WiFi network
   -     Share you media files on iPad or iPad Mini
   -     Browse photos and videos shared on iDevices from any PC or Mac
   -     Download shared media to your Computer
   -     Receive photos and videos to iPhone or iPod Touch from iPad
   -     Preview shared photos and videos in any browser
   -     Use browser to download shared photos and videos from iDevices
   -     Send photos and videos from any browser to your iPhone or iPad

(Copy of the Homepage: https://itunes.apple.com/en/app/photo-transfer-wifi-quickly/id674978018 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the Photo Transfer WiFi v1.4.4 for apple iOS.


Vulnerability Disclosure Timeline:
==================================
2013-12-02:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Simplex Solutions Inc
Product: Photo Transfer WiFi 1.4.4


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Critical


Technical Details & Description:
================================
1.1
2 local command/path injection web vulnerabilities has been discovered in the Simplex Solutions Inc Photo Transfer WiFi v1.4.4 for apple iOS.
The remote web vulnerability allows to inject local commands via vulnerable system values to compromise the apple mobile iOS application.

The vulnerability is located in the in the device name value of the index and sub category list module. Local attackers are 
able to inject own script codes as iOS device name. The execute of the injected script code occurs in 2 different section with 
persistent attack vector. The first section is the wifi app interface login were the application is listed. The secound execute 
occurs after the login in the smallheader interface section.The security risk of the command/path inject vulnerabilities are 
estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.2(+)|(-)7.3.

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 in unauthorized execute of system specific 
commands or unauthorized path requests.

Vulnerable Application(s):
				[+] Photo Transfer Wifi v1.4.4

Vulnerable Parameter(s):
				[+] devicename

Affected Module(s):
				[+] Login - Device Name
				[+] Index - Device Name



1.2
A persistent input validation web vulnerability has been discovered in the Simplex Solutions Inc Photo Transfer WiFi v1.4.4 for apple iOS.
The validation web vulnerability allows remote attackers to inject own malicious script codes by a persistent (application-side) attack vector.

The persistent input validation vulnerability is located in the album name value of the mobile application. Remote attackers and local low 
privileged user accounts can inject own malicious persistent script codes as album name. The execute occurs in the main index album name list
and the sub category list. By exchange of the information the issue can be exploited by remote attackers by a low user interaction sync. 
The security risk of the persistent vulnerabilities are estimated as medium(+) with a cvss (common vulnerability scoring system) count of 4.6(+).

Exploitation of the persistent web vulnerability requires no or a local low privileged mobile application account and low user interaction. 
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 Wifi v1.4.4

Vulnerable Parameter(s):
				[+] albumname

Affected Module(s):
				[+] Index - Album Name List


Proof of Concept (PoC):
=======================
1.1
The local command/path inject web vulnerability via devicename value can be exploited by local low privileged or restricted device 
user accounts & no user interaction. For security demonstration or to reproduce the command/path mobile app vulnerability follow 
the provided information and steps below.


Manual steps to exploit the vulnerability ...

1.  Install the photo transfer wifi iOS mobile application
2.  Open the iOS settings and switch to the info > device name input
3.  Include your name and the payload to execute an app command or request a local device path (">%20<x src=\..\<../var/mobile/Library/[APP PATH]/">)
4.