AirPhoto WebDisk 4.1.0 Code Execution

Type packetstorm
Reporter Benjamin Kunz Mejri
Modified 2014-04-23T00:00:00


                                            `Document Title:  
AirPhoto WebDisk v4.1.0 iOS - Code Execution Vulnerability  
References (Source):  
Release Date:  
Vulnerability Laboratory ID (VL-ID):  
Common Vulnerability Scoring System:  
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: )  
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:  
Affected Product(s):  
Product: WebDisk 4.1.0  
Exploitation Technique:  
Severity Level:  
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  
<td class="tdleft"><a href=""><img class="imgthum" src="afico/files_txt.png"></a></td>  
<td class="tdmid">>"<.;%5Cvar%5Cmobile%5CApplications%[CODE EXECUTION VULNERABILITY!]test2</td>  
<td class="tdright">4-22 10:14<br/><br/>  
<a href="">delete</a></td></tr>  
<tr><td colspan="3" height="1"><hr class="spline" /></td>  
Vulnerable Source: Upload File - Add [POST]  
<form action="" method="post" enctype="multipart/form-data">  
<textarea name="txt" class="textInput" id="Text1">  
Solution - Fix & Patch:  
The vulnerability can be patched by a secure encode and parse of the upload form input field.  
Secure and filter the upload POST method request to generate a file.  
Encode also the vulnerable output name value in the index listing module itself.  
Security Risk:  
The security risk of the code execution web vulnerability in the webdisk wifi interface is estimated as high.  
Credits & Authors:  
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri ( []  
Disclaimer & Information:  
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties,   
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-  
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business   
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some   
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation   
may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases   
or trade with fraud/stolen material.  
Domains: - -  
Contact: - -  
Section: - -  
Social:!/vuln_lab - -  
Feeds: - -  
Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory.   
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other   
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and   
other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed),   
modify, use or edit our material contact ( or to get a permission.  
Copyright © 2014 | Vulnerability Laboratory [Evolution Security]