Document Title: =============== WiFi HD v7.3.0 iOS - Multiple Web Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1283 Release Date: ============= 2014-07-29 Vulnerability Laboratory ID (VL-ID): ==================================== 1283 Common Vulnerability Scoring System: ==================================== 7.4 Product & Service Introduction: =============================== Turn your iPhone into a wireless, mobile external hard drive! Works over any WiFi connection. You can now share, copy, and backup your files to and from your PC / Mac / Linux / or another phone! Very easy to use. No other software necessary! This is a simple, one stop, stand alone File Sharing solution. (Copy of the Homepage: https://itunes.apple.com/us/app/wifi-hd/id310425060 ) Abstract Advisory Information: ============================== The Vulnerbaility Laboratory Research Team discovered multiple vulnerabilities in the official WiFI HD v7.3 iOS mobile web application. Vulnerability Disclosure Timeline: ================================== 2014-07-29: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Savy Soda Product: WiFI HD - iOS Mobile Web Application 7.3 Exploitation Technique: ======================= Local Severity Level: =============== High Technical Details & Description: ================================ 1.1 A local file include web vulnerability has been discovered in the official Savy Soda - WiFI HD v7.3.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 mobile web-application. The web vulnerability is located in the `filename` value of the `upload` (submit file) module. Remote attackers are able to inject own files with malicious `filename` values in the `upload` POST method request to compromise the mobile web-application. The local file/path include execution occcurs in the index file/folder list context next to the vulnerable filename value. The attacker is able to inject the local file request by usage of the available `wifi interface` for file exchange/share. Remote attackers are also able to exploit the filename validation issue in combination with persistent injected script codes to execute different local malicious attacks requests. The attack vector is on the application-side of the wifi service and the request method to inject is POST. The security risk of the local file include web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.9. Exploitation of the local file include web vulnerability requires no privileged web-application user account or user interaction. Successful exploitation of the local file include web vulnerability results in mobile application or connected device component compromise. Request Method(s): [+] [POST] Vulnerable Service(s): [+] WiFi HD v7.3.0 Vulnerable Module(s): [+] Upload > Submit Vulnerable Parameter(s): [+] filename Affected Module(s): [+] Index File/Folder Dir Listing (http://localhost/) 1.2 A directory traversal web vulnerability has been discovered in the official Savy Soda - WiFI HD v7.3.0 iOS mobile web-application. The issue allows remote attackers to include own path directory values to unauthorized request a system/device path or file. The issue is located in the `Create New Folder` function with the vulnerable `Enter folder name` input. Attackers are able to include own local path requests to compromise the application path itself or to unauthorized request local device files. The attack vector of the issue is on the application-side and the request method to implement is POST. The application-side execution occurs on top of the index next to the path directory listing of /home. The security risk of the directory traversal web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.4. Exploitation of the directory traversal web vulnerability requires no privileged web-application user account or user interaction. Successful exploitation of the path traversal web vulnerability results in mobile application or connected device component compromise. Request Method(s): [+] [POST] Vulnerable Service(s): [+] WiFi HD v7.3.0 Vulnerable Module(s): [+] Create New Folder Vulnerable Input(s): [+] Enter folder name Affected Module(s): [+] Index Path Dir Listing on top (http://localhost/) 1.3 A local command/path injection web vulnerabilities has been discovered in the official Savy Soda - WiFI HD v7.3.0 iOS mobile web-application. The 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` value of the `File Dir Index` module. Local attackers are able to inject own malicious system specific commands or path value requests in the vulnerable `devicename` value. The execution of the local command inject occurs in the `File Dir Index` module of the wifi hd v7.3.0 mobile application. The attacker is able to manipulate the settings module of the application by preparing to change the local devicename. The encoding of the vulnerable values in the index module is broken and allows an attacker to inject own commands successfully. The attack vector is located on the application-side and the injection requires physical device access or a local low privileged user account. Local attackers are also able to exploit the filename validation issue in combination with persistent injected script codes to execute different types of malicious attack requests. The security risk of the local command/path inject vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 6.2. 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): [+] Application Header Vulnerable Parameter(s): [+] devicename Affected Module(s): [+] Index File Dir Listing - Index Header 1.4 A cross site request forgery web vulnerability has been discovered in the official Savy Soda - WiFI HD v7.3.0 iOS mobile web-application. The issue allows to execute own script codes through application functions by client-side manipulated cross site requests in interaction with a not expired user session. The issue is located in the `delete` function of the mobile web-application. The delete function has no restriction and uses only a not secure GET method request. Attackers can prepare a website with speical crafted links to force an user to delete all the files in the exchange directory service. The attack vector of the issue is on the client-side and the request method to execute is GET. The security risk of the cross site request forgery vulnerability is estimated as low with a cvss (common vulnerability scoring system) count of 1.9. Exploitation of the client-side vulnerability requires no privileged iOS device account but medium or high user interaction. Successful exploitation of the vulnerability results in the delete of all files in the mobile application service. Request Method(s): [+] [GET] Vulnerable Parameter(s): [+] DEL! Affected Module(s): [+] Index File Dir Listing Proof of Concept (PoC): ======================= 1.1 The local file include web vulnerability can be exploited by local attackers without privileged application user account or user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. PoC: (Current Directory: Home/) < Upload File > Submit <./[LOCAL FILE INCLUDE VULNERABILITY VIA FILENAME VALUE!]">.png [X] 0.5 Kb X]

Enter folder name:
--- PoC Session Logs [POST] --- Status: 200[OK] POST http://localhost/ Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[2080] Mime Type[application/x-unknown-content-type] Request Header: Host[localhost] User-Agent [Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Referer[http://localhost/] Connection[keep-alive] POST-Daten: POST_DATA[-----------------------------24623207791791 Content-Disposition: form-data; name="file"; filename="./[LOCAL FILE INCLUDE VULNERABILITY VIA FILENAME VALUE!].png" Content-Type: image/png 1.2 The directory traversal web vulnerability can be exploited by local attackers in the wifi without privileged application user account or user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. PoC: Enter Folder Name > Create New Folder (Current Directory: http://localhost/../../../var/mobile/x) Status: 200[OK] POST http://localhost/ Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[1926] Mime Type[application/x-unknown-content-type] Request Header: Host[localhost] User-Agent [Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Referer[http://localhost/] Connection[keep-alive] POST-Daten: foldername[..%2F..%2F..%2Fvar%2Fmobile%2Fx] button[Create+Folder] Response Header: Accept-Ranges[bytes] Content-Length[1926] Date[Mo., 28 Juli 2014 12:33:06 GMT] 1.3 The local command inject web vulnerability can be exploited by local attackers with physical device access and restricted user account without user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Install the mobile application v7.3.0 to your iOS device (https://itunes.apple.com/us/app/wifi-hd/id310425060) 2. Activate the wifi in your iOS device 3. Setup a new iOS devicename through the options in the settings > info module 4. Include as new devicename your local command to inject on application-side 5. Open another iOS device and surf to the localhost url 6. The via devicename values injected command executes in the header location were the device information becomes visible 7. Successful reproduce of the local command inject vulnerability in the iOS application! PoC: Index (http://localhost/)

Files on iPhone: bkm337<[LOCAL COMMAND INJECT VULNERABILITY!]">

The following files are hosted live from the iPhone's Docs folder.
1.4 The client-side cross site request forgery vulnerability can be exploited by remote attackers without privileged application user account and medium or high user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. PoC: CSRF DELETE FOLDERS - PoC