Document Title: =============== WebDisk+ v2.1 iOS - Unrestricted File Upload Vulnerability Date: ===== 2014-10-22 References: =========== http://www.vulnerability-lab.com/get_content.php?id=1349 VL-ID: ===== 1349 Common Vulnerability Scoring System: ==================================== 8.6 Introduction: ============= WebDisk+ is a Push verion of WebDisk. It have all Full functionality of 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. And it is also a document viewer.let you direct view your document on your iphone/iphone. WebDisk+ can support Upload and download large files (More than 4GB) form pc or other mobile device. (Copy of the Vendor Homepage: https://itunes.apple.com/us/app/webdisk+/id606709149 ) Abstract: ========= The Vulnerability Laboratory Research team discovered a file upload web vulnerability in the official AirPhoto WebDisk+ v2.1 iOS mobile web-application. Report-Timeline: ================ 2014-10-23: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Affected Products: ================== AirPhoto Product: WebDisk+ - iOS Mobile Web Application (Wifi) v2.1 Exploitation-Technique: ======================= Remote Severity: ========= Critical Details: ======== An unrestricted file upload web vulnerability has been discovered in the official AirPhoto WebDisk+ v2.1 iOS mobile web-application. The vulnerability allows remote attackers to upload an arbitrary (malicious) file to compromise the iOS web-application. The vulnerability is located in the `name` input field of the wifi web interface upload module (afupload.ma). The function creates the files without any protection or filter mechanism in the GET method request. Remote attackers are able to manipulate the POST method request by usage of the `p & filename` parameters in the `afupload.ma` file to compromise the mobile device web-application. The unrestricted file upload vulnerabilit occurs in the `afgetdir.ma` file and the execute occurs in the main index file dir listing. The attack vector is located on the application-side of the mobile app. The security risk of the file uplaod vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 8.6. Exploitation of the file upload web vulnerability requires no privileged application user account or user interaction. Successful exploitation of the vulnerability results in mobile application compromise and compromise of connected device components. Request Method(s): [+] POST Vulnerable Module(s): [+] Upload Vulnerable File(s): [+] afupload.ma Vulnerable Parameter(s): [+] p & filename Affected Module(s): [+] Wifi Interface (http://localhost:1861) Proof of Concept: ================= An unrestricted file upload web vulnerability has been discovered in the official AirPhoto WebDisk+ v2.1 iOS mobile web-application. The vulnerability allows remote attackers to upload an arbitrary (malicious) file to compromise the iOS web-application. The vulnerability is located in the `name` input field of the wifi web interface upload module (afupload.ma). The function creates the files without any protection or filter mechanism in the GET method request. Remote attackers are able to manipulate the POST method request by usage of the `p & filename` parameters in the `afupload.ma` file to compromise the mobile device web-application. The unrestricted file upload vulnerabilit occurs in the `afgetdir.ma` file and the execute occurs in the main index file dir listing. The attack vector is located on the application-side of the mobile app. The security risk of the file uplaod vulnerability is estimated as critical with a cvss (common vulnerability scoring system) count of 9.1. Exploitation of the file upload web vulnerability requires no privileged application user account or user interaction. Successful exploitation of the vulnerability results in mobile application compromise and compromise of connected device components. Request Method(s): [+] POST Vulnerable Module(s): [+] Upload Vulnerable File(s): [+] afupload.ma Vulnerable Parameter(s): [+] p & filename Affected Module(s): [+] Wifi Interface (http://localhost:1861) The unrestricted file upload web vulnerability can be exploited by remote 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: (URL) http://localhost:1861/afgetdir.ma?p=..varmobileContainersDataApplication90ACE99A-5EF3-4E3E-B509-32CCDF066AA1Documents PoC: localhost:1861 - Web Interface Index