Lucene search
K

Notes v4.5 iOS - Arbitrary File Upload Vulnerability

Arbitrary file upload in Notes v4.5 iOS - wifi interfac

Code
Document Title:
===============
Notes v4.5 iOS - Arbitrary File Upload Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1832


Release Date:
=============
2016-04-24


Vulnerability Laboratory ID (VL-ID):
====================================
1832


Common Vulnerability Scoring System:
====================================
6


Product & Service Introduction:
===============================
xNotes, My Personal Documents, Diary.

(Copy of the Homepage:  http://appshopper.com/utilities/x-notes-my-personal-documents  )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered an arbitrary file upload vulnerability in the official Notes v4.5 iOS mobile web-application (wifi).


Vulnerability Disclosure Timeline:
==================================
2016-04-25: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Shanmin Xu
Product: xNotes - Mobile API (Web-Application) 4.5


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
A arbitrary file upload web vulnerability has been discovered in the official Notes v4.5 iOS mobile web-application (wifi).
The local file include web vulnerability allows remote attackers to unauthorized include local file/path requests via POST.

The web vulnerability is located in the `filename` values of the `Upload File` module. Remote attackers are able to inject own 
files with malicious `filename` values in the `upload.action` POST method request to compromise the mobile web-application. 
The arbitrary file upload execute occcurs in the index file dir listing of the wifi interface. The attacker is able to inject 
the local file upload form request by usage of the `wifi interface` in connection with the vulnerable upload service module.

The security risk of the vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.0. 
Exploitation of the arbitrary file upload vulnerability requires no user interaction or privileged web-application user account. 
Successful exploitation of the arbitrary file upload web vulnerability results in mobile web-application or device compromise.

Request Method(s):
					[+] POST

Vulnerable Module(s):
					[+] Upload

Vulnerable Parameter(s):
					[+] filename

Affected Module(s):
					[+] File Dir Index Listing


Proof of Concept (PoC):
=======================
The arbitrary file upload web vulnerability can be exploited by remote attackers without privileged user account or user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.


Manual steps to reproduce the vulnerability ...
1.  Install the vulnerable ios web-application to your ios device
2.  Start the web-application
3.  Open the file transfer button on the buttom left
4.  Open the called IP in a web-browser
5.  Surf to the Upload function and choose a random test image/picture
6.  Start a http session tamper to exploit the followup POST method request
7.  Inject your local file request to the filename value for exploitation app path variable
8.  Continue the request
9.  The local filename value issue executes in the index in the next step
10. Successful reproduce of thearbitrary file upload vulnerability!

Note: on jailbroken mobiles the attacker is able to take-over the mobile system and without jailbreak the 
attacker is able to compromise the application folder path via variable request.


PoC: Exploitation
http://localhost:51025/x/./[ARBITRARY FILE UPLOAD VULNERABILITY TO PATH VARIABLE]/


--- PoC Session Logs [POST] ---
Status: 200[OK]
POST http://localhost:51025/ 
   Request Header:
      Host[localhost:51025]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[de,en-US;q=0.7,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      Referer[http://localhost:51025/]
      Connection[keep-alive]
   POST-Daten:
      POST_DATA[-----------------------------60382496219157
Content-Disposition: form-data; name="file"; filename="./[ARBITRARY FILE UPLOAD VULNERABILITY!]/"


Security Risk:
==============
The security risk of the arbitrary file upload web vulnerability in the ios web-application is estimated as high. (CVSS 6.0)


Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri [http://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.]


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 licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains:    www.vulnerability-lab.com 		- www.vuln-lab.com 						- www.evolution-sec.com
Contact:    [email protected] 	- [email protected] 				- [email protected]
Section:    magazine.vulnerability-lab.com 	- vulnerability-lab.com/contact.php 				- evolution-sec.com/contact
Social:	    twitter.com/vuln_lab		- facebook.com/VulnerabilityLab 				- youtube.com/user/vulnerability0lab
Feeds:	    vulnerability-lab.com/rss/rss.php 	- vulnerability-lab.com/rss/rss_upcoming.php 			- vulnerability-lab.com/rss/rss_news.php
Programs:   vulnerability-lab.com/submit.php 	- vulnerability-lab.com/list-of-bug-bounty-programs.php 	- vulnerability-lab.com/register.php

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, modify, use or edit our material contact (admin@ or [email protected]) to get a ask permission.

				    Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™



Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation