Document Title: =============== My Photo Wifi Share & PS 1.1 iOS - Local Command Injection Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1232 Release Date: ============= 2014-03-24 Vulnerability Laboratory ID (VL-ID): ==================================== 1232 Common Vulnerability Scoring System: ==================================== 6.2 Product & Service Introduction: =============================== My Photo Wifi Share allows you to share your photos with multiple friends at a time over a local WiFi network. Let your friends browse all your albums. Or, view all your photos in your favorite web browser (Safari, Firefox, Chrome, or IE). No more USB connections to your iPhone. Read your photos off your phone with super fast speed! (Copy of the Homepage: https://itunes.apple.com/au/app/my-photo-wifi-share-picture/id421260815 ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered local a command injection vulnerability in the official My Photo Wifi Share & Picture Server v1.1 iOS mobile web-application. Vulnerability Disclosure Timeline: ================================== 2014-03-24: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Jeff Handy Product: My Photo Wifi Share & Picture Server - iOS Mobile Web Application 1.1 Exploitation Technique: ======================= Local Severity Level: =============== High Technical Details & Description: ================================ A local command injection vulnerability has been discovered in the official in the official My Photo Wifi Share & Picture Server v1.1 iOS mobile web-application. The command injection bug allows remote attackers to inject local commands via vulnerable system values to compromise the mobile service or application. The local vulnerability is located in the vulnerable `albumname` value. Local attackers are able to inject own malicious system specific commands or path requests as the albumname value. The injection requires an active sync via `Share My Photos` (wifi) module. The execution of the local command inject via albumname value on sync occurs in the album dir index list. The security risk of the local command/path inject vulnerability is estimated as high(-) with a cvss (common vulnerability scoring system) count of 6.1(-). 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): [+] Sync [iPhone or iPad] Vulnerable Input(s): [+] Album (Name) Vulnerable Parameter(s): [+] albumname (path value) Affected Module(s): [+] Index - Album Dir Listing Proof of Concept (PoC): ======================= The local command inject web vulnerability can be exploited by local attackers with low privileged device user account and without user interaction. For security demonstration or to reproduce the web vulnerability follow the provided information and steps below to continue. Manually steps to reproduce the vulnerability ... 1. Download and install the My Photo Wifi Share & Picture Server v1.1 iOS mobile web-application > https://itunes.apple.com/de/app/my-photo-wifi-share-picture/id421260815 2. Start the default photo album app of iOS 3. Create a new album and select some pictures to include for sync 4. Now, the local attacker is able to inject a payload with as local system specific command or path value request 5. After the albumname save the attacker starts the vulnerable My Photo Wifi Share & Picture Server v1.1 iOS mobile web-application 6. Select the Album with the vulnerable injected command and use the share album function 7. After the click on the share album button the remote attacker is able to request the (localhost:8080) wifi interface (web-server) 8. The execution of the injected command via stable value on sync occurs in the album dir index list 9. Successful reproduce of the local command injection web vulnerability! PoC: Album(s) Dir Listing Album: >"<>"./[LOCAL COMMAND INJECTION VULNERABILITY VIA ALBUMNAME VALUE]<">