Lucene search

K
vulnerlabKarim Rahal - @KarimMTV [http://www.vulnerability-lab.com/show.php?user=Karim%20Rahal]VULNERABLE:1662
HistoryApr 17, 2016 - 12:00 a.m.

Spotify ArtistExplorer BB #1 - Cross Site Script Vulnerability

2016-04-1700:00:00
Karim Rahal - @KarimMTV [http://www.vulnerability-lab.com/show.php?user=Karim%20Rahal]
www.vulnerability-lab.com
10
Document Title:
===============
Spotify ArtistExplorer BB #1 - Cross Site Script Vulnerability


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


Release Date:
=============
2016-04-17


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


Common Vulnerability Scoring System:
====================================
3.5


Product & Service Introduction:
===============================
Start with a seed artist (or genre) and click any artist`s icon to see related artists. Hover over an artist to hear a sample of their music. 
Artist Explorer automatically plays 30 second previews of the top tracks for each artist. This fascinating tool lets you explore relationships 
between over 2,000,000 artists on Spotify and see selected information about them gathered from both the Spotify Web API and the Echo Nest API.
This is one of the main demonstration apps for our developer tools. The source code is available on GitHub.

(Copy of the Vendor Homepage: https://developer.spotify.com/showcase/item/artist-explorer-spotify/ )


Abstract Advisory Information:
==============================
An independent vulnerability laboratory researcher discovered a POST Inject cross site scripting web vulnerability in the Spotify ArtistExplorer web-application.


Vulnerability Disclosure Timeline:
==================================
2016-01-16: Researcher Notification & Coordination (Karim Rahal)
2016-01-17: Vendor Notification (Spotify Security Team)
2016-02-03: Vendor Response/Feedback (Spotify Security Team)
2016-03-20: Vendor Fix/Patch (Spotify Developer Team)
2016-03-25: Security Acknowledgements (Spotify Security Team)
2016-04-09: Security Bulletin (Spotify Security Team) [Acknowledgements]
2016-04-17: Public Disclosure (Vulnerability Laboratory)


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


Affected Product(s):
====================
Spotify
Product: ArtistExplorer - Web Application 2016 Q1


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


Severity Level:
===============
Low


Technical Details & Description:
================================
A persistent cross site scripting web vulnerability has been discovered in the official Spotify ArtistExplorer online service web-application.
The vulnerability allows remote attackers to inject via POST method own malicious script codes on the application-side of the online service.

This vulnerability exists because of a HTML escaping lack and the attack scenerio of this vulnerability is really dangerous! attacker can insert 
malicious code into his artist explorer shared paged and send it to vicitm and maybe steal the victim`s information with his malicious code! 
The Post injection allows an attacker to put modify names, pictures and even the popularity! The request method to inject is POST and the attack 
vector is located on the application-side.

The security risk of the filter bypass and persistent validation vulnerability is estimated as medium with a cvss (common vulnerability scoring 
system) count of 3.5. Exploitation of the persistent input validation web vulnerability requires a low privileged user account with restricted 
access and low or medium user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing, 
persistent external redirects to malicious source and persistent manipulation of affected or connected application modules.

Vulnerable Product(s): 
				[+] Spotify

Affected Service(s):
				[+] Spotify ArtistExplorer (artistexplorer.spotify.com)


Proof of Concept (PoC):
=======================
The vulnerability can be exploited by remote attackers without privileged web-application user account and with low or medium 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. Go to https://artistexplorer.spotify.com/
2. Open a Request proxy interpruting/capturing tool like (Live http headers,Tamper data,Burp suite).
3. Then start Capturing/Interpruting the requests
4. Click Share this tree
5. Edit the post content in the captured post request
change {"artist":{"external_urls":{"spotify":"https://spotify/(URL)"} to {"artist":{"external_urls":{"spotify":"javascript:alert('xss')"}
and change any other information like name/popularity (for post injection)
6. Then replay the request
7. A generated number will appear in the replayed page
8. Take the number and put it into "https://artistexplorer.spotify.com?tree=(THE NUMBER)"
Example: https://artistexplorer.spotify.com?tree=62e35fe55f3b452b9d9cb0334eaa1f5d
9. Then click on the first artist in the tree, and then you will see artist info in the sidebar, click on his name and tadaa! XSS will popup! And if you changed anything else for post injection purposes like Popularity/artist name, you will it has been done!
10. Successful reproduce of the vulnerability!

Video: https://www.youtube.com/watch?v=x0vLyb91PPI


Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable `tree` values in the artistexplorer.
Restrict the input and disallow usage of special chars on input. Prevent an execution of script code by implementation of an exception-handling.


Security Risk:
==============
The security risk of the POST inject web vulnerability in the Spotify ArtistExplorer web-application is estimated as medium. (CVSS 3.5)


Credits & Authors:
==================
Karim Rahal - @KarimMTV [http://www.vulnerability-lab.com/show.php?user=Karim%20Rahal]


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-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.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]™