Exploit-DB #31900
Description: Private Camera Pro 5.0 iOS - Multiple Vulnerabilities
Type: webapps
Platform: ios
Date: 2014-02-25
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Private Camera Pro v5.0 iOS - Multiple Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1216


Release Date:
=============
2014-02-24


Vulnerability Laboratory ID (VL-ID):
====================================
1216


Common Vulnerability Scoring System:
====================================
8.1


Product & Service Introduction:
===============================
Private Camera is an iPhone and iPad camera app that could protect your privacy. It supports taking photos and recording videos, password 
lock protect, Fake password guest mode, share photos anytime and anywhere. Take photos and videos quick and easily. Support autofocus, 
tap to focus, flash light switch, camera switch, brand new UI, easy to use. Support taking still photo and recording video. Switch the 
video and photo mode one click. Create, rename, delete album, set album cover. Add photos to Album, remove photos from Album. Multiple photos 
can be handled at a time, you can import photos from system camera roll, export photos to system camera roll, add photos to album, remove photos 
from album, delete multiple photos. Wi-Fi web access for photos upload, you can upload many photos from computer to iPhone or iPad in one shot.
With iOS 5, Private Camera can sync all your photos and videos on your iCloud account, you can access these photos & videos on all your iOS 
devices, use and share these photos & videos anytime, everywhere. Protect photos and videos that you don’t want to share. User requires enter 
password when access the photos/videos library. Share photos and videos on Twitter, Facebook, Email with your friends.

With Password-lock functionality, can protect your personal photos and videos. Its unique Pseudo-password(decoy-password) guest mode, 
can cope with annoying friends from seeing your private photos and videos. With easy to use camera features, let you using iPhone or 
iPad take photos & videos and enjoy your photography life!

( Copy of the Homepage: https://itunes.apple.com/us/app/private-camera-photo-vault/id477970594 )
( Copy of the Homepage: https://itunes.apple.com/us/app/private-camera-pro-photo-vault/id473538611 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official Private Camera Pro v5.0 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-02-24:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Apple AppStore
Product: Private Camera Pro - iOS Web Application 5.0


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include vulnerability has been discovered  in the official Private Camera Pro v5.0 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 module of the mobile web-application web-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. The security risk of the local file include web vulnerability is estimated as high with a cvss (common vulnerability 
scoring system) count of 7.2(+)|(-)7.3.

Exploitation of the local file include 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 (UI) & Import (Device Sync)

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] File Dir Index Listing


1.2
A local command/path injection web vulnerabilities has been discovered  in the official Private Camera Pro v5.0 iOS mobile web-application.
A command inject vulnerability allows attackers to inject local commands via vulnerable system values to compromise the apple mobile iOS application.

The vulnerability is located in the vulnerable `[devicename] (srvName)` value of the device-info module. Local attackers are able to inject own malicious 
system specific commands or path value requests as the physical iOS hardware devicename. The execution of the injected command or path request occurs with 
persistent attack vector in the device-info listing module of the web interface. The security risk of the local command/path inject vulnerability is estimated 
as high(-) with a cvss (common vulnerability scoring system) count of 6.5(+)|(-)6.6.

Exploitation of the command/path inject vulnerability requires a low privileged iOS device account with restricted access and no user interaction. 
Successful exploitation of the vulnerability results in unauthorized execution of system specific commands and unauthorized path value requests to 
compromise the mobile iOS application or the connected device components.

Request Method(s):
				[+] POST

Vulnerable Module(s):
				[+] Content > header-title

Vulnerable Parameter(s):
				[+] devicename

Affected Module(s):
				[+] Index- File Dir Listing
				[+] Sub Folder/Category - File Dir Listing



1.3
A persistent input validatio