Title: ====== iPic Sharp v1.2.1 Wifi iOS - Persistent Foldername Web Vulnerability Date: ===== 2013-07-24 References: =========== http://www.vulnerability-lab.com/get_content.php?id=1031 VL-ID: ===== 1031 Common Vulnerability Scoring System: ==================================== 3.6 Introduction: ============= iPic Sharp Pro is a photos/video management app,can manage your photos/video into folders and subfolders, Compress photos/folders into zip file and extract photos from a compressed (zip/rar), Use password protect your files, and transfer photos/(zip/rar) between computer and your devices. Password protect Password lock entire app Password lock wifi Password lock individual folder View Photos Photo gallery Slide show Thumbnail preview View Photos app File Sharing USB File Sharing via iTunes Http File Sharing via WiFi, Support Safari, chrome, firefox and IE6/7/8/9 (Slide show ) Chrome and Firefox Supported upload multiple files Email multiple files, folder Supported Archives Extract photos from a compressed zip/rar file Compression files/folders to zip file Archives rename, email, batch ( Copy of the Homepge: https://itunes.apple.com/en/app/ipic-sharp-pro/id449820537 ) Abstract: ========= The Vulnerability Laboratory Research Team discovered a persistent input validation vulnerability in the iPic Sharp v1.2.1 application (Apple iOS - iPad & iPhone). Report-Timeline: ================ 2013-07-24: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Affected Products: ================== Apple AppStore Product: iPic Sharp - Application 1.2.1 Exploitation-Technique: ======================= Local Severity: ========= Medium Details: ======== A persistent input validation web vulnerability is detected in the iPic Sharp v1.2.1 application (Apple iOS - iPad & iPhone). The bug allows an attacker (remote) to implement/inject malicious script code to the application side (persistent) of the device. The vulnerability is located in the index file dir listing module of the web-server (http://localhost:41493) when processing to request via POST method local manipulated `album folder names`. The persistent script code will be executed in the main index file dir listing module when the service lists the new malicious injected foldername as separate item. Attackers can locally change the normal album names inside of the apple iOS device (ipad or iphone) to execute the code when a user is requesting the mobile application index with the foldername listing. Exploitation of the persistent web vulnerability requires low user interaction and a local privilege application & device account. Successful exploitation of the vulnerability can lead to persistent session hijacking (customers), account steal via persistent web attacks, persistent phishing or stable (persistent) certificate mail notification context manipulation. Vulnerable Application(s): [+] iPic Sharp v1.2.1 - ITunes or AppStore (Apple) Vulnerable Module(s): [+] Index Vulnerable Parameter(s): [+] foldername Affected Module(s): [+] Index File Dir - Foldername Listing Proof of Concept: ================= The persistent input validation web vulnerability can be exploited by local attackers with low user interaction and no privilege mobile web application user account. For demonstration or reproduce ... PoC: Root Parameter {'isSecret'0,'isSame'1,'isDelete'0,'guid''136'','albumtype'137,'items'[{'PhotoSharp_System_Photo'[{'name''Camera Roll','isdir'1,'id'0,'filesize'0,'modDate''','url''(null)','section''PhotoSharp_System_Photo','localsection''System Photos','ispass'0}]}, {'PhotoSharp_Local_Photo'[{'name''.[PERSISTENT INJECTED SCRIPT CODE!]','isdir'1,'id'0,'filesize'102,'modDate''2013-07-20 145009','url''','section''PhotoSharp_Local_Photo','localsection''Local Photos','ispass'0}]}, {'PhotoSharp_Local_Document'[{'name''PhotoSharp_Local_Document','isdir'1,'id'0,'filesize'0,'modDate''','url''' ,'section''PhotoSharp_Local_Document','localsection''[PERSISTENT INJECTED SCRIPT CODE!]','ispass'0}]}],'dir''','dirlocal'''} PoC: Source