Lucene search

K
vulnerlabVulnerability Laboratory [Research Team] - Katharin S. L. (CH) ([email protected]) [www.vulnerability-lab.com]VULNERLAB:1477
HistoryMay 05, 2015 - 12:00 a.m.

vPhoto-Album v4.2 iOS - File Upload Web Vulnerability

2015-05-0500:00:00
Vulnerability Laboratory [Research Team] - Katharin S. L. (CH) ([email protected]) [www.vulnerability-lab.com]
www.vulnerability-lab.com
9
Document Title:
===============
vPhoto-Album v4.2 iOS - File Upload Web Vulnerability


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


Release Date:
=============
2015-05-05


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


Common Vulnerability Scoring System:
====================================
6.2


Product & Service Introduction:
===============================
vPhoto Pro is your side of the most powerful local album management software that allows you to easily manage your massive photos, 
while giving you an unprecedented user experience. No in-app purchase, no functional limitations.

(Copy of the Homepage:  https://itunes.apple.com/us/app/veryphoto-album-password-wifi/id720810114 )


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research team discovered a file upload web vulnerability in the official vPhoto-Album v4.2 iOS mobile web-application.


Vulnerability Disclosure Timeline:
==================================
2015-05-05: Public Disclosure (Vulnerability Laboratory)


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


Affected Product(s):
====================
Cheng Chen
Product: vPhoto-Album - iOS Web Application (Wifi) 4.1


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


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


Technical Details & Description:
================================
An unrestricted file upload web vulnerability has been discovered in the official vPhoto-Album v4.2 iOS mobile web-application.
The file upload vulnerability allows remote attackers to upload an arbitrary (malicious) file to compromise the iOS web-application. 

The file upload vulnerability is located in the `name` value of the `Albums` module. Remote attackers are able to intercept the 
vulnerable name value in the upload POST method request to compromise the app path. The attacker can use a live session tamper in 
http to change the album name parameter to a malicious source.

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

Vulnerable Method(s):
				[+] [Sync]

Vulnerable Module(s):
				[+] Albumname

Vulnerable Parameter(s):
				[+] name

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


Proof of Concept (PoC):
=======================
The unrestricted file upload web vulnerability can be exploited by attackers with restricted physical device access and without user interaction.
For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue.


PoC: http://localhost:8080/
<script type="text/javascript">
            var albumArray = getAllAlbum();
            var numberOfAlbums = getNumberOfAlbums();
           for (var i=0; i<numberOfAlbums; i=i+4)
            {
                document.write("<tr>");
                document.write("<td height="170" width="150">");
                if (i+0 < numberOfAlbums)
                {
                    document.write("<p align="center"><img border="0" src="getCoverImage?"+encodeURI(JSON.stringify(albumArray[i+0]))+"" width="170" height="150" onclick=albumClick('"+(i+0)+"')>");
                }
                document.write("</td>");
                document.write("<td height="170" width="50"></td>");
                document.write("<td height="170" width="150">");
                if (i+1 < numberOfAlbums)
                {
                    document.write("<p align="center"><img border="0" src="getCoverImage?"+encodeURI(JSON.stringify(albumArray[i+1]))+"" width="170" height="150" onclick=albumClick('"+(i+1)+"')>");
                }
                document.write("</td>");
                document.write("<td height="170" width="50"></td>");
                document.write("<td height="170" width="150">");
                if (i+2 < numberOfAlbums)
                {
                    document.write("<p align="center"><img border="0" src="getCoverImage?"+encodeURI(JSON.stringify(albumArray[i+2]))+"" width="170" height="150" onclick=albumClick('"+(i+2)+"')>");
                }
                document.write("</td>");
                document.write("<td height="170" width="50"></td>");
                document.write("<td height="170" width="150">");
                if (i+3 < numberOfAlbums)
                {
                    document.write("<p align="center"><img border="0" src="getCoverImage?"+encodeURI(JSON.stringify(albumArray[i+3]))+"" width="170" height="150" onclick=albumClick('"+(i+3)+"')>");
                }
                document.write("</td>");
                document.write("</tr>");
                document.write("<tr>");
                document.write("<td height="20" > <p align="center">");
                if (i+0 < numberOfAlbums)
                {
                    document.write("<font face="Courier New" size="2">");
                    document.write(albumArray[i+0].name+"("+albumArray[i+0].numberOfImage+")");
                    document.write("</font>");
                }
                document.write("</td>");
                document.write("<td height="20" width="50"></td>");
                document.write("<td height="20" > <p align="center">");
                if (i+1 < numberOfAlbums)
                {
                    document.write("<font face="Courier New" size="2">");
                    document.write(albumArray[i+1].name+"("+albumArray[i+1].numberOfImage+")");
                    document.write("</font>");
                }
                document.write("</td>");
                document.write("<td height="20" width="50"></td>");
                document.write("<td height="20" > <p align="center">");
                if (i+2 < numberOfAlbums)
                {
                    document.write("<font face="Courier New" size="2">");
                    document.write(albumArray[i+2].name+"("+albumArray[i+2].numberOfImage+")");
                    document.write("</font>");
                }
                document.write("</td>");
                document.write("<td height="20" width="50"></td>");
                document.write("<td height="20" > <p align="center">");
                if (i+3 < numberOfAlbums)
                {
                    document.write("<font face="Courier New" size="2">");
                    document.write(albumArray[i+3].name+"("+albumArray[i+3].numberOfImage+")");
                    document.write("</font>");
                }
                document.write("</td>");
                document.write("</tr>");
                document.write("<tr>");
                document.write("<td height="20" colspan="7">"); document.write("</td>");
                document.write("</tr>");
            }
			
</script>
<tr><td height="170" width="150"><p align="center">
<img src="getCoverImage?%7B%22name%22:../not_allowed_dirctory/newfile.*%3E%22,%22type%22:%222%22,%22groupType%22:2,%22url
%22:%22assets-library://group/?id=B94CC6C9-FB2C-4BFD-8BA4-0925E51146A1&filter=1537%22,%22numberOfImage%22:%222%22%7D" onclick="albumClick('0')" 
border="0" height="150" width="170"></p></td><td height="170" width="50"></td><td height="170" width="150"><p align="center">
<img src="getCoverImage?%7B%22name%22:%22Camera%20Roll%22,%22type%22:%222%22,%22groupType%22:16,%22url%22:%22
assets-library://group/?id=70169F06-36C7-430C-AA4F-55B95E268426%22,%22numberOfImage%22:%222%22%7D" onclick="albumClick('1')" 
border="0" height="150" width="170"></p></td><td height="170" width="50"></td><td height="170" width="150"></td><td height="170" 
width="50"></td><td height="170" width="150"></td></tr><tr><td height="20"> <p align="center"><font face="Courier New" size="2">">
<C[FILE INCLUDE VULNERABILITY!]>(2)</font></td><td height="20" width="50"></td><td height="20" > <p align="center"><font face="Courier New" 
size="2">Camera Roll(2)</font></td><td height="20" width="50"></td><td height="20" > <p align="center"></td><td height="20" width="50"></td>
<td height="20" > <p align="center"></td></tr><tr><td height="20" colspan="7"></td></tr>	
</table></div></body>
</html></iframe></font></p></td></tr></tbody>


Reference(s):
http://localhost:8080/
http://localhost:8080/index


Security Risk:
==============
The security risk of the unrestricted file upload web vulnerability in the album module is estimated as high. (CVSS 6.2)


Credits & Authors:
==================
Vulnerability Laboratory [Research Team]  - Katharin S. L. (CH) ([email protected]) [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:    [email protected] 	- [email protected] 	       		- [email protected]
Section:    magazine.vulnerability-db.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/

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 
([email protected] or [email protected]) to get a permission.

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