XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, JSON API RXSS, v5.ux-pt-br.opt.video.msn.com

Report generated by XSS.CX at Wed Sep 07 14:59:55 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)

2. Flash cross-domain policy

3. Silverlight cross-domain policy

4. Cookie scoped to parent domain

5. Cookie without HttpOnly flag set

5.1. http://v5.ux-pt-br.opt.video.msn.com/OptimizeVc.aspx

5.2. http://v5.ux-pt-br.opt.video.msn.com/OptimizeVc.aspx



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /OptimizeVc.aspx

Issue detail

The value of the callbackName request parameter is copied into the HTML document as plain text between tags. The payload fd9b0<script>alert(1)</script>2d73c8cea1 was submitted in the callbackName parameter. 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.

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.

Issue remediation

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.

Request

GET /OptimizeVc.aspx?csid=ux-pt-br&p=v5&gc=1&ver=2&ck=v5Gal&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528&callbackName=jsonp1312311566333fd9b0<script>alert(1)</script>2d73c8cea1&pl=http%3A%2F%2Fvideo.br.msn.com%2Fwatch%2Fvideo%2Fassassinato-na-argentina%2Fkprk9y9e%3Fcpkey%3D89d1bf2d-eed5-4f77-9150-bc441ddee528%257C%257C%257C%257C&rl=http%3A%2F%2Fvideo.br.msn.com%2Fwatch%2Fvideo%2Fmotores-roncam-por-vitimas-da-noruega%2Fkpz4ptha&responseEncoding=json HTTP/1.1
Host: v5.ux-pt-br.opt.video.msn.com
Proxy-Connection: keep-alive
Referer: http://video.br.msn.com/watch/video/assassinato-na-argentina/kprk9y9e?cpkey=89d1bf2d-eed5-4f77-9150-bc441ddee528%7C%7C%7C%7C
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
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: MC1=V=3&GUID=a03475b48b494e438954310bbcd4fbf8; _HOP=I=1&TS=1312311307; MSNMOBMRKT=en-gb; MSNMOBREP=afad056e41a946b5b03a8aa5b78e5e1e; MUID=9D76DAC5D4D147139C18D454161BD61E; lastVisit1=8/2/2011 6:58:26 PM; opd=; flt=68995; zip=z:75207|la:32.7825|lo:-96.8207|ci:Dallas|c:US; countrycode=US; zipcode=75207; sample=1; s_cc=true; s_sq=%5B%5BB%5D%5D

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=600
Content-Type: application/json; charset=utf-8
Expires: Tue, 02 Aug 2011 19:13:16 GMT
Last-Modified: Tue, 02 Aug 2011 19:03:16 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: lastVisit1=8/2/2011 7:03:16 PM; expires=Tue, 02-Aug-2061 19:03:16 GMT; path=/
X-Powered-By: ASP.NET
Date: Tue, 02 Aug 2011 19:03:15 GMT
Content-Length: 151

jsonp1312311566333fd9b0<script>alert(1)</script>2d73c8cea1({"tk":"&pl=nottop&lv=inf&ck=v5Gal&v=nottop&r=38&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528"});

2. Flash cross-domain policy  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which allows access from any domain.

Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.

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: v5.ux-pt-br.opt.video.msn.com

Response

HTTP/1.1 200 OK
Content-Type: text/xml
Last-Modified: Tue, 07 Jun 2011 17:16:15 GMT
Accept-Ranges: bytes
ETag: "c4f3ba9b3625cc1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 02 Aug 2011 18:59:16 GMT
Connection: close
Content-Length: 179

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>

3. Silverlight cross-domain policy  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /clientaccesspolicy.xml

Issue detail

The application publishes a Silverlight cross-domain policy which allows access from any domain.

Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.

Issue background

The Silverlight cross-domain policy controls whether Silverlight 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 Silverlight 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 /clientaccesspolicy.xml HTTP/1.0
Host: v5.ux-pt-br.opt.video.msn.com

Response

HTTP/1.1 200 OK
Content-Type: text/xml
Last-Modified: Tue, 07 Jun 2011 17:16:15 GMT
Accept-Ranges: bytes
ETag: "c4f3ba9b3625cc1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 02 Aug 2011 18:59:16 GMT
Connection: close
Content-Length: 348

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="http://*" />
</allow-from>

...[SNIP]...

4. Cookie scoped to parent domain  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /OptimizeVc.aspx

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.

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.

Request

GET /OptimizeVc.aspx?csid=ux-pt-br&p=v5&gc=1&ver=2&ck=v5Gal&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528&callbackName=jsonp1312337034860&pl=http%3A%2F%2Fvideo.br.msn.com%2Fwatch%2Fvideo%2Fassassinato-na-argentina%2Fkprk9y9e%3Fcpkey%3D89d1bf2d-eed5-4f77-9150-bc441ddee528%257C%257C%257C%257C&rl=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue&responseEncoding=json HTTP/1.1
Host: v5.ux-pt-br.opt.video.msn.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://video.br.msn.com/watch/video/assassinato-na-argentina/kprk9y9e?cpkey=89d1bf2d-eed5-4f77-9150-bc441ddee528%7C%7C%7C%7C
Cookie: MUID=07A84762A59063DC03DB4555A090635D

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=600
Content-Type: application/json; charset=utf-8
Expires: Wed, 03 Aug 2011 02:14:01 GMT
Last-Modified: Wed, 03 Aug 2011 02:04:01 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: lastVisit1=8/3/2011 2:04:01 AM; expires=Wed, 03-Aug-2061 02:04:01 GMT; path=/
Set-Cookie: opd=; domain=opt.video.msn.com; expires=Wed, 03-Aug-2011 03:04:01 GMT; path=/
Set-Cookie: flt=92616; domain=opt.video.msn.com; expires=Wed, 03-Aug-2061 02:04:01 GMT; path=/
X-Powered-By: ASP.NET
Date: Wed, 03 Aug 2011 02:04:00 GMT
Content-Length: 111

jsonp1312337034860({"tk":"&pl=nottop&lv=inf&ck=v5Gal&v=nottop&r=27&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528"});

5. Cookie without HttpOnly flag set  previous
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.



5.1. http://v5.ux-pt-br.opt.video.msn.com/OptimizeVc.aspx  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /OptimizeVc.aspx

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 /OptimizeVc.aspx?csid=ux-pt-br&p=v5&gc=1&ver=2&ck=v5Gal&vid=0505ae80-a665-4949-3a4d-74798f67563d&callbackName=jsonp1312388352889&pl=http%3A%2F%2Fvideo.br.msn.com%2Fwatch%2Fvideo%2Fsandra-bullock-brilha-em-lancamento%2Fao55efx8&rl=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue&responseEncoding=json HTTP/1.1
Host: v5.ux-pt-br.opt.video.msn.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://video.br.msn.com/watch/video/sandra-bullock-brilha-em-lancamento/ao55efx8
Cookie: MUID=360F843730F542A7A6E2E0ACB7BADB9D; lastVisit1=8/3/2011 2:04:01 AM; flt=92616; zip=z:75207|la:32.7825|lo:-96.8207|ci:Dallas|c:US; MC1=V=3&GUID=27de0d4a057a405d855bc5c261d99b62; mh=MSFT; CC=US; Sample=43; s_vnum=1314963712630%26vn%3D1; s_nr=1312371839517

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=600
Content-Type: application/json; charset=utf-8
Expires: Wed, 03 Aug 2011 16:29:49 GMT
Last-Modified: Wed, 03 Aug 2011 16:19:49 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: lastVisit2=8/3/2011 4:19:49 PM; expires=Wed, 03-Aug-2061 16:19:49 GMT; path=/
X-Powered-By: ASP.NET
Date: Wed, 03 Aug 2011 16:19:49 GMT
Content-Length: 111

jsonp1312388352889({"tk":"&pl=nottop&lv=1.5&ck=v5Gal&v=nottop&r=38&vid=0505ae80-a665-4949-3a4d-74798f67563d"});

5.2. http://v5.ux-pt-br.opt.video.msn.com/OptimizeVc.aspx  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://v5.ux-pt-br.opt.video.msn.com
Path:   /OptimizeVc.aspx

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /OptimizeVc.aspx?csid=ux-pt-br&p=v5&gc=1&ver=2&ck=v5Gal&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528&callbackName=jsonp1312337034860&pl=http%3A%2F%2Fvideo.br.msn.com%2Fwatch%2Fvideo%2Fassassinato-na-argentina%2Fkprk9y9e%3Fcpkey%3D89d1bf2d-eed5-4f77-9150-bc441ddee528%257C%257C%257C%257C&rl=http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue&responseEncoding=json HTTP/1.1
Host: v5.ux-pt-br.opt.video.msn.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://video.br.msn.com/watch/video/assassinato-na-argentina/kprk9y9e?cpkey=89d1bf2d-eed5-4f77-9150-bc441ddee528%7C%7C%7C%7C
Cookie: MUID=07A84762A59063DC03DB4555A090635D

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=600
Content-Type: application/json; charset=utf-8
Expires: Wed, 03 Aug 2011 02:14:01 GMT
Last-Modified: Wed, 03 Aug 2011 02:04:01 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: lastVisit1=8/3/2011 2:04:01 AM; expires=Wed, 03-Aug-2061 02:04:01 GMT; path=/
Set-Cookie: opd=; domain=opt.video.msn.com; expires=Wed, 03-Aug-2011 03:04:01 GMT; path=/
Set-Cookie: flt=92616; domain=opt.video.msn.com; expires=Wed, 03-Aug-2061 02:04:01 GMT; path=/
X-Powered-By: ASP.NET
Date: Wed, 03 Aug 2011 02:04:00 GMT
Content-Length: 111

jsonp1312337034860({"tk":"&pl=nottop&lv=inf&ck=v5Gal&v=nottop&r=27&vid=89d1bf2d-eed5-4f77-9150-bc441ddee528"});

Report generated by XSS.CX at Wed Sep 07 14:59:55 GMT-06:00 2011.