Report generated by XSS.CX at Sun Nov 07 18:02:03 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

Loading

1. Cross-site scripting (reflected)

1.1. http://mads.cnet.com/mac-ad [adfile parameter]

1.2. http://mads.cnet.com/mac-ad [celt parameter]

1.3. http://mads.cnet.com/mac-ad [name of an arbitrarily supplied request parameter]



1. Cross-site scripting (reflected)
There are 3 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.

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 defenses: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://mads.cnet.com/mac-ad [adfile parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://mads.cnet.com
Path:   /mac-ad

Issue detail

The value of the adfile request parameter is copied into the HTML document as plain text between tags. The payload 3ca06<a>0dcf60d6d46 was submitted in the adfile parameter. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

Request

GET /mac-ad?SP=16&_RGROUP=10737&NCAT=1%3a&CNET-BRAND-ID=5&HUB=cn&PTNR=2&LOCALE=en_US&CNET-SITE-ID=3&ASSET_HOST=adimg.cnet.com&PTYPE=2000&CNET-ONTOLOGY-NODE-ID=1&&CID=0&CNET-EDITION-ID=3&POS=100&ENG:DATETIME=2010.11.07.15.24.48&SYS:RQID=00phx1-ad-e18:4CD64CAC8E6808&&REFER_HOST=www.google.com&&&&&DVAR_VERSION=2008&CNET-PAGE-GUID=TJQTmgoOYIwAACNOMGAAAADF&adfile=7074/11/470417_wc.ca3ca06<a>0dcf60d6d46 HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: http://news.cnet.com/
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: mads.cnet.com
Proxy-Connection: Keep-Alive
Cookie: tempSessionId=Cg5goUzXCxCuehfa+BA; arrowSSRefUrl=http%3A%2F%2Fwww.google.com%2F; arrowLat=1289161488474; arrowSpc=1

Response

HTTP/1.1 200 OK
Date: Sun, 07 Nov 2010 22:48:39 GMT
Server: Apache/2.2
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-15
Expires: Sun, 07 Nov 2010 22:48:39 GMT
Content-Length: 735

<!-- MAC ad --><!-- NO AD TEXT: _QUERY_STRING="SP=16&_RGROUP=10737&NCAT=1%3a&CNET-BRAND-ID=5&HUB=cn&PTNR=2&LOCALE=en_US&CNET-SITE-ID=3&ASSET_HOST=adimg.cnet.com&PTYPE=2000&CNET-ONTOLOGY-NODE-ID=1&&CID
...[SNIP]...
-ID=3&POS=100&ENG:DATETIME=2010.11.07.15.24.48&SYS:RQID=00phx1-ad-e18:4CD64CAC8E6808&&REFER_HOST=www.google.com&&&&&DVAR_VERSION=2008&CNET-PAGE-GUID=TJQTmgoOYIwAACNOMGAAAADF&adfile=7074/11/470417_wc.ca3ca06<a>0dcf60d6d46" _REQ_NUM="0" -->
...[SNIP]...

1.2. http://mads.cnet.com/mac-ad [celt parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://mads.cnet.com
Path:   /mac-ad

Issue detail

The value of the celt request parameter is copied into the HTML document as plain text between tags. The payload f1522<a>842fa7c3927 was submitted in the celt parameter. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

Request

GET /mac-ad?celt=ifcf1522<a>842fa7c3927&SITE=3&BRAND=5&NCAT=1&SP=135&POS=100 HTTP/1.1
Host: mads.cnet.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: arrowLat=1289161488474; arrowSpc=1; tempSessionId=Cg5goUzXCxCuehfa+BA; arrowSSRefUrl=http%3A%2F%2Fwww.google.com%2F;

Response

HTTP/1.1 200 OK
Date: Sun, 07 Nov 2010 22:45:39 GMT
Server: Apache/2.2
Content-Length: 518
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=515
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-15
Expires: Sun, 07 Nov 2010 22:45:39 GMT

<!-- MAC ad --><!-- NO AD TEXT: _QUERY_STRING="celt=ifcf1522<a>842fa7c3927&SITE=3&BRAND=5&NCAT=1&SP=135&POS=100" _REQ_NUM="0" --><!-- MAC-AD STATUS: COULD NOT MAP ( _MAPPINGS='NEWS' BRAND='5' SITE='3
...[SNIP]...

1.3. http://mads.cnet.com/mac-ad [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Firm
Host:   http://mads.cnet.com
Path:   /mac-ad

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload debfc<a>667496e829b was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

Request

GET /mac-ad?debfc<a>667496e829b=1 HTTP/1.1
Host: mads.cnet.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: arrowLat=1289161488474; arrowSpc=1; tempSessionId=Cg5goUzXCxCuehfa+BA; arrowSSRefUrl=http%3A%2F%2Fwww.google.com%2F;

Response

HTTP/1.1 200 OK
Date: Sun, 07 Nov 2010 20:44:10 GMT
Server: Apache/2.2
Content-Length: 364
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=865
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-15
Expires: Sun, 07 Nov 2010 20:44:10 GMT

<!-- MAC ad --><!-- NO AD TEXT: _QUERY_STRING="debfc<a>667496e829b=1" _REQ_NUM="0" --><!-- MAC-AD STATUS: COULD NOT MAP BRAND=&quot;&quot; SITE=&quot;&quot; NCAT=&quot;&quot; PTNR=&quot;2&quot; TO MA
...[SNIP]...

Report generated by XSS.CX at Sun Nov 07 18:02:03 CST 2010.