[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Full-disclosure] Bluetooth Photo Share Pro v2.0 iOS - Multiple Vulnerabilities



Document Title:
===============
Bluetooth Photo Share Pro v2.0 iOS - Multiple Vulnerabilities


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


Release Date:
=============
2014-02-27


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


Common Vulnerability Scoring System:
====================================
6.7


Product & Service Introduction:
===============================
This is the best bluetooth sharing and file transfer app in app store. Transfer 
photos, videos, music, 
contacts and any file between two iPhone,iPad and/or iPod Touches over 
bluetooth connection. Requires 
iPhone 3G or later or 2nd generation iPod Touch or later . Does not require any 
3G or WiFi connection.

(Copy of the Homepage: 
https://itunes.apple.com/us/app/bluetooth-photo-video-music/id590196698 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered multiple vulnerabilities 
in the official Bluetooth Photo/Video/Music/Contact Share Pro v2.0 iOS  mobile 
application.


Vulnerability Disclosure Timeline:
==================================
2014-02-27:     Public Disclosure (Vulnerability Laboratory)


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


Affected Product(s):
====================
Apple AppStore
Product: Bluetooth Photo Share - iOS Mobile Web Application 2.0


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


Severity Level:
===============
High


Technical Details & Description:
================================
1.1
A local file include web vulnerability has been discovered in the 
officialBluetooth Photo/Video/Music/Contact Share Pro v2.0 iOS mobile 
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 `filename` value of the `Select File  
to Upload` function 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 index 
file dir list of the path section after the regular upload. 
The security risk of the local file include web vulnerability is estimated as 
high(+) with a cvss (common vulnerability scoring system) 
count of 7.4(+)|(-)7.5.

Exploitation of the local file include web vulnerability requires no user 
interaction or privileged web-application user account with password. 
Successful exploitation of the local web vulnerability results in mobile 
application or connected device component compromise.

Request Method(s):
                                [+] [POST]

Vulnerable Module(s):
                                [+] Select File > Upload

Vulnerable Parameter(s):
                                [+] filename

Affected Module(s):
                                [+] Index File Dir List (http://localhost:8080)



1.2
An arbitrary file upload web vulnerability has been discovered in the 
officialBluetooth Photo/Video/Music/Contact Share Pro v2.0 iOS mobile 
application.
The arbitrary file upload issue allows remote attackers to upload files with 
multiple extensions to bypass the web-server or system validation.

The vulnerability is located in the `upload` (video and images) module. Remote 
attackers are able to upload a php or js web-shells by renaming 
the file with multiple extensions to bypass the file restriction mechanism. The 
attacker uploads for example a web-shell with the following name 
and extension `image.gif.jpg.html.js.aspx.jpg`. After the upload the attacker 
needs to open the file in the web application. He deletes the .jpg & 
.gif file extension and can access the application with elevated access rights. 
The security risk of the arbitrary file upload web vulnerability is 
estimated as high with a cvss (common vulnerability scoring system) count of 
6.1(+)|(-)6.2.

Exploitation of the arbitrary file upload web vulnerability requires no user 
interaction or privileged application user account with password.
Successful exploitation of the vulnerability results in unauthorized file 
access because of a compromise after the upload of web-shells.


Request Method(s):
                                [+] [POST]

Vulnerable Module(s):
                                [+] Select File > Upload

Vulnerable Parameter(s):
                                [+] filename (multiple extensions)

Affected Module(s):
                                [+] Index File Dir List (http://localhost:8080/)


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

PoC: filename

<table id="filetable" cellpadding="0" cellspacing="0" width="860px">
<thead><tr><th class="file">File Name</th><th style="padding-left:15px">File 
Size</th><th class="actionbutton"></th><th 
class="actionbutton"></th></tr></thead>
<tbody id="filelist" style="padding-left:15px;">
<tr><td class="file"><a href="/files/[LOCAL FILE INCLUDE WEB VULNERABILITY!]" 
class="file"><./[LOCAL FILE INCLUDE WEB VULNERABILITY!]"></a></td>
<td class='info'>23.81K</td><td class='actionbutton' >
<form><input type='button' value='Download' 
onClick="window.location.href='/files/[LOCAL FILE INCLUDE WEB 
VULNERABILITY!]'"></form></td><td class='actionbutton' >
<form action='/files/[LOCAL FILE INCLUDE WEB VULNERABILITY!]' method='post' 
><input name='_method' value='delete' type='hidden'/><input name="commit" 
type="submit" 
value="Delete" class='button' 
/></form></td></tr></tbody></table></iframe></a></td></tr></tbody></table>

--- PoC Session Logs [POST] ---

20:31:19.936[165ms][total 165ms] Status: 302[Found]
POST http://localhost:8080/files Load Flags[LOAD_DOCUMENT_URI  
LOAD_INITIAL_DOCUMENT_URI  ] Größe des Inhalts[67] Mime Type[text/html]
   Request Header:
      Host[localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 
Firefox/27.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[de-de,de;q=0.8,en-us;q=0.5,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      Referer[http://localhost:8080/]
      Connection[keep-alive]
   POST-Daten:
      POST_DATA[-----------------------------10162615616712
Content-Disposition: form-data; name="newfile"; filename="./[LOCAL FILE INCLUDE 
VULNERABILITY]<"
Content-Type: image/jpeg


20:31:21.700[156ms][total 222ms] Status: 200[OK]
GET http://localhost:8080/ Load Flags[LOAD_DOCUMENT_URI  LOAD_REPLACE  
LOAD_INITIAL_DOCUMENT_URI  ] Größe des Inhalts[61465] Mime 
Type[application/x-unknown-content-type]
   Request Header:
      Host[localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 
Firefox/27.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[de-de,de;q=0.8,en-us;q=0.5,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      Referer[http://localhost:8080/]
      Connection[keep-alive]
   Response Header:
      Accept-Ranges[bytes]
      Content-Length[61465]
      Date[Mi., 26 Feb. 2014 19:40:03 GMT]


20:31:22.980[46ms][total 46ms] Status: 404[Not Found]
GET http://localhost:8080/a Load Flags[LOAD_DOCUMENT_URI  ] Größe des 
Inhalts[0] Mime Type[application/x-unknown-content-type]
   Request Header:
      Host[localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 
Firefox/27.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[de-de,de;q=0.8,en-us;q=0.5,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      Referer[http://localhost:8080/]
      Connection[keep-alive]
   Response Header:
      Accept-Ranges[bytes]
      Content-Length[0]
      Date[Mi., 26 Feb. 2014 19:40:04 GMT]




1.2
The arbitrary file upload vulnerability can be exploited by remote attackers 
without privileged web-application user account or user interaction.
For security demonstration or to reproduce the vulnerability follow the 
provided steps and information below to continue.

PoC: filename as path
http://localhost:8080/files/[ARBITRARY FILE UPLOAD VULNERABILITY!]"


--- PoC Session Logs [POST] ---

20:31:19.936[165ms][total 165ms] Status: 302[Found]
POST http://localhost:8080/files Load Flags[LOAD_DOCUMENT_URI  
LOAD_INITIAL_DOCUMENT_URI  ] Größe des Inhalts[67] Mime Type[text/html]
   Request Header:
      Host[localhost:8080]
      User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 
Firefox/27.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[de-de,de;q=0.8,en-us;q=0.5,en;q=0.3]
      Accept-Encoding[gzip, deflate]
      Referer[http://localhost:8080/]
      Connection[keep-alive]
   POST-Daten:
      POST_DATA[-----------------------------10162615616712
Content-Disposition: form-data; name="newfile"; filename="./[ARBITRARY FILE 
UPLOAD VULNERABILITY!].jpeg.gif.php.js.aspx.gif.jpeg<"
Content-Type: image/jpeg


Solution - Fix & Patch:
=======================
1.1
The first vulnerability can be patched by a secure parse and encode of the 
vulnerable filename value in the upload POST method request.

1.2
The second vulnerability can be patched by a secure restriction of the filename 
value user input in the upload POST method request.


Security Risk:
==============
1.1
The security risk of the local file include web vulnerability is estimated as 
high(+).

1.2
The security risk of the arbitrary file upload  web vulnerability is estimated 
as high(-).


Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri 
(bkm@xxxxxxxxxxxxxxxxx) [www.vulnerability-lab.com]


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:    www.vulnerability-lab.com           - www.vuln-lab.com              
               - www.evolution-sec.com
Contact:    admin@xxxxxxxxxxxxxxxxxxxxx         - 
research@xxxxxxxxxxxxxxxxxxxxx               - admin@xxxxxxxxxxxxxxxxx
Section:    www.vulnerability-lab.com/dev       - forum.vulnerability-db.com    
               - magazine.vulnerability-db.com
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

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 (admin@xxxxxxxxxxxxxxxxxxxxx or 
research@xxxxxxxxxxxxxxxxxxxxx) to get a permission.

                                Copyright © 2014 | Vulnerability Laboratory 
[Evolution Security]



-- 
VULNERABILITY LABORATORY RESEARCH TEAM
DOMAIN: www.vulnerability-lab.com
CONTACT: research@xxxxxxxxxxxxxxxxxxxxx


_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/