Title: ====== Private Photos v1.0 iOS - Persistent Path Web Vulnerability Date: ===== 2013-07-25 References: =========== http://www.vulnerability-lab.com/get_content.php?id=1034 VL-ID: ===== 1034 Common Vulnerability Scoring System: ==================================== 3.5 Introduction: ============= You must have some private photos you don`t want others peeping. Private photos is the perfect app to keep your private photos safely in your iPad. Photos are protected by a password and you won`t worry your privacy when friends playing your iPad. Now you can enjoy your private photos anytime, anywhere with your iPad. The built-in viewer can zoom in, zoom out, and slideshow photos, just like the experience with the native photos app. Highlighted features: - One password protection for photos viewing and transferring - Web access via WIFI - Multiple photos transferring - Multi-touch support: swipe, zoom - Slide show Transferring your photos to the app is simple. You can easily access your private photos via WIFI from desktop/laptop`s web browser (Make sure your desktop/laptop is in the same WIFI network as your iPad). When connected to your iPad from web browser, you can select and transfer multiple photos with one click. The transferring is also protected by the same password. (Copy of the Homepage: https://itunes.apple.com/de/app/my-private-photos/id427134970 ) Abstract: ========= The Vulnerability Laboratory Research Team discovered 2 persistent web vulnerabilities in the Private Photos v1.0 application (Apple iOS - iPad & iPhone). Report-Timeline: ================ 2013-07-25: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Affected Products: ================== Apple AppStore Product: Private Photos 1.0 Exploitation-Technique: ======================= Remote Severity: ========= Medium Details: ======== A persistent input validation web vulnerability is detected in the Private Photos 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 Directory` module of the web-server (http://localhost:8080) when processing to request via POST method manipulated `folder-names`. The folder name will be changed to the path value without secure filter, encode or parse. The injected script code will be executed in the path listing were the attacker injected earlier the code and of course also in the index listing of the mobile web application. There is a security protection to filter single and double quotes. When processing to inject the code a messagebox pops up with the illegal characters exception. To bypass the exception the remote attacker can use simple obfuscated strings, embed code or html/js script codes (frames, scripts, img, embed and co.) without single & double quotes. Exploitation of the persistent web vulnerability requires low user interaction and a local low privilege mobile application 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): [+] Private Photos v1.0 - ITunes or AppStore (Apple) Vulnerable Module(s): [+] Add Directory Vulnerable Parameter(s): [+] path (DIRECTORYNAME) Affected Module(s): [+] Index Listing [+] Path/Folder Listing Proof of Concept: ================= The persistent input validation web vulnerability can be exploited by remote attackers with low privilege application user account and low or medium required user interaction. For demonstration or reproduce ... PoC: Add Directory Private Photos