Document Title: =============== Phone Drive Eightythree 4.1.1 iOS - Multiple Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1168 Release Date: ============= 2013-12-11 Vulnerability Laboratory ID (VL-ID): ==================================== 1168 Common Vulnerability Scoring System: ==================================== 7.6 Product & Service Introduction: =============================== Phone Drive allows you to store, view and manage files on your iPhone or iPad. You can connect to Phone Drive from any Mac or PC over the Wi-Fi network and transfer files by drag & drop files straight from the Finder or Windows Explorer. Phone Drive features document viewer, PDF reader, music player, image viewer, voice recorder, text editor, file manager and support most of the file operations: like delete, move, copy, email, share, zip, unzip and more. (Copy of the Homepage: https://itunes.apple.com/de/app/phone-drive/id431033044 ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official Eigthythree Phone Drive v4.1.1 iOS mobile application. Vulnerability Disclosure Timeline: ================================== 2013-12-11: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Eightythree Technologies Product: Phone Drive - Mobile Application 4.1.1 Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ 1.1 A local command/path injection web vulnerability has been discovered in the Eigthythree Phone Drive v4.1.1 mobile application for apple iOS. The remote web vulnerability allows to inject local commands via vulnerable system values to compromise the apple iOS mobile web-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 with persistent attack vector in the header section of the web interface. The security risk of the command/path inject vulnerabilities are estimated as high with a cvss (common vulnerability scoring system) count of 7.0(+)|(-)7.1. 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. Request Method(s): [+] [GET] Vulnerable Parameter(s): [+] devicename Affected Module(s): [+] Index File Dir List - [Header] 1.2 A local file/path include web vulnerability has been discovered in the Eigthythree Phone Drive v4.1.1 mobile application for apple iOS. The file include vulnerability allows remote attackers to include (upload) local file or path requests to compromise the web-application. The remote file include web vulnerability is located in the vulnerable filename value of the file dir list index module (web interface). Remote attackers can manipulate the filename value in the POST method request of the file upload form to cpmpromise the mobile application. Remote attackers are able to include own local files by usage of the file upload module. The attack vector is persistent and the request method is POST. The file include execute occcurs in the main file dir index list. The security risk of the local file include web vulnerability is estimated as high(+) with a cvss (common vulnerability scoring system) count of 8.8(+). Exploitation of the local file include web vulnerability requires no user interaction or privileged web-application user account with password. Successful exploitation of the local web vulnerability results in application or device compromise by unauthorized local file include attacks. Request Method(s): [+] [POST] Vulnerable Module(s): [+] File Upload Vulnerable Parameter(s): [+] filename Affected Module(s): [+] Index File Dir Listing (http://localhost:80) 1.3 An arbitrary file upload web vulnerability has been discovered in the Eigthythree Phone Drive v4.1.1 mobile application for apple iOS. The arbitrary file upload issue allows remote attackers to upload files with multiple extensions to bypass the web-server or system validation. The vulnerability is located in the upload file module. Remote attackers are able to upload a php or js web-shells by a rename of the file with multiple extensions to bypass the file restriction mechanism. The attacker uploads for example a web-shell with the following name and extension `image.jpg.gif.js.php.jpg`. After the upload the attacker needs to open the file in the web application. He deletes the .jpg & . gif file extension and can access the application with elevated access rights. The security risk of the arbitrary file upload web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.6(+). Exploitation of the arbitrary file upload web vulnerability requires no user interaction or privilege application user account with password. Successful exploitation of the vulnerability results in unauthorized file access because of a compromise after the upload of web-shells. Request Method(s): [+] [POST] Vulnerable Module(s): [+] File Upload Vulnerable Parameter(s): [+] filename (multiple extensions) Affected Module(s): [+] Index File Dir Listing (http://localhost:80) 1.4 A persistent input validation web vulnerability has been discovered in the Eigthythree Phone Drive v4.1.1 mobile application for apple iOS. The (persistent) vulnerability allows remote attacker to inject own malicious script code on the application-side of the mobile application. The persistent input validation vulnerability is located in the foldername (path) value of the folder/path create web-application module. Remote attackers can inject own malicious script codes as payload to the create folder (path) input field. After the client-side inject in the POSt method request the payload will be saved and the vector turns into a persistent attack. The persistent execute occurs in the file dir index- or sub category folder list (http://localhost:8080). Attacker can also inject the script code by the rename of an exsisting issue. The second execute occurs in the delete notification popup box of the item index list. The security risk of the persistent input validation web vulnerability is estimated as medium(+) with a cvss (common vulnerability scoring system) count of 3.9(+). Exploitation of the persistent input validation web vulnerability requires no privileged mobile application user account but low or medium user interaction. Successful exploitation of the persistent vulnerability results in persistent session hijacking (customers) attacks, account steal via persistent web attacks, persistent phishing or persistent manipulation of vulnerable module context. Request Method(s): [+] [POST] Vulnerable Input(s): [+] Create Folder Vulnerable Parameter(s): [+] foldername (path) Affected Module(s): [+] Index File Dir Listing (http://localhost:80) Proof of Concept (PoC): ======================= 1.1 The local command inject web vulnerability can be exploited by local attackers with physical restricted device access and without user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below. PoC: DeviceName - Index File Dir List