Document Title: =============== AirPhoto WebDisk v4.1.0 iOS - Code Execution Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1258 Release Date: ============= 2014-04-22 Vulnerability Laboratory ID (VL-ID): ==================================== 1258 Common Vulnerability Scoring System: ==================================== 8.7 Product & Service Introduction: =============================== WebDisk lets your iphone/ipad become a file website over wi-fi netwrk.You can upload/download your document to your iphone/ipad on your pc browser over wi-fi. It is also a document viewer.let you direct view your document on your iphone/iphone. You can upload /download file to iphone/ipad on your pc browser over wi-fi. (Copy of the Homepage: https://itunes.apple.com/us/app/webdisk/id546221210 ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered a local file include web vulnerability in the official AirPhoto WebDisk v4.1.0 iOS mobile application. Vulnerability Disclosure Timeline: ================================== 2014-04-22: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== AirPhoto Product: WebDisk 4.1.0 Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ A code execution web vulnerability has been discovered in the official WebDisk (AirPhoto) v4.1.0 iOS mobile web-application. The issue allows an attacker to compromise the application and connected device components by exploitation of system specific code execution vulnerability in the webdisk interface. The vulnerability is located in the POST method request of the `upload` module. The main index provides an upload form which is not encoding the regular inputs. The context can be implemented to the upload form and the results is the application-side execution of system specific malicious codes. The file itself will not be transfered and the input generates the listing context to the index. The input field of the upload modules executes the input wrong encoded via POST method request as filename value. Remote attackers are also able to execute own malicious codes by usage of a script code payload in combination with the affected system device values. The execution of the code occurs in the main webdisk file dir listing context. The attack vector is on application-side and the request method to attack the service is POST. The security risk of the remote code execution web vulnerability is estimated as critical with a cvss (common vulnerability scoring system) count of 8.7 Exploitation of the remote code execution web vulnerability requires no privileged application user account (passwd default blank) or user interaction. Successful exploitation of the code execution vulnerability results in mobile application compromise and connected or affected device component compromise. Request Method(s): [+] POST Vulnerable Module(s): [+] upload Vulnerable Parameter(s): [+] tdmid > filename Affected Module(s): [+] WebDisk File Dir Index Listing [http://localhost:1861] Proof of Concept (PoC): ======================= The system specific (php) code execution vulnerability can be exploited by remote attackers without required user interaction or privileged web-application user account. For security demonstration or to reproduce the critical web vulnerability follow the provided steps and information below to continue. PoC: Exploit >"<.;%5Cvar%5Cmobile%5CApplications%[CODE EXECUTION VULNERABILITY!]test2 4-22 10:14

delete
Vulnerable Source: Upload File - Add [POST]