portsmouth.citysearch.com, XSS, Cross Site Scripting, CWE-79, CAPEC-86

XSS in portsmouth.citysearch.com | Vulnerability Crawler Report

Report generated by XSS.CX at Sun Jan 02 07:47:26 CST 2011.


Contents

Loading

1. Cross-site scripting (reflected)

2. Cookie scoped to parent domain

2.1. http://portsmouth.citysearch.com/deals

2.2. http://portsmouth.citysearch.com/guide/salem-nh/x26amp

2.3. http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22

3. Cookie without HttpOnly flag set

3.1. http://portsmouth.citysearch.com/deals

3.2. http://portsmouth.citysearch.com/guide/salem-nh/x26amp

3.3. http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22

4. Cross-domain script include

5. Robots.txt file



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://portsmouth.citysearch.com
Path:   /guide/salem-nh/x26amp

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8fd1a"><script>alert(1)</script>4471ad9f652 was submitted in the name of an arbitrarily supplied request 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.

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

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

Request

GET /guide/salem-nh/x26amp?8fd1a"><script>alert(1)</script>4471ad9f652=1 HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:36:40 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:36:40 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Set-Cookie: usrid=64f77cfacc5e09c9c2934f30a2dd88429c90aef7; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:40 GMT; Path=/
Set-Cookie: cs_session=1621dfa5c5d3f402888fdafcd39f45e9cda1b97f; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:40 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:40 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:40 GMT; Path=/
Set-Cookie: recent_geos=111034%7E%7CSalem; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:40 GMT; Path=/
Set-Cookie: tseg=169; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:36:40 GMT; Path=/
Set-Cookie: userSearchLoc=Salem%2C%20NH%7E%7C111034; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:40 GMT; Path=/
Vary: Accept-Encoding
Connection: close
Content-Length: 72734

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE]><![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang
...[SNIP]...
<link rel="canonical" href="http://portsmouth.citysearch.com/guide/salem-nh/x26amp?8fd1a"><script>alert(1)</script>4471ad9f652=1" />
...[SNIP]...

2. Cookie scoped to parent domain  previous  next
There are 3 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://portsmouth.citysearch.com/deals  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /deals

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /deals?callback=Citysearch.loadDealsWidget&rpp=3&placement=collector HTTP/1.1
Host: portsmouth.citysearch.com
Proxy-Connection: keep-alive
Referer: http://portsmouth.citysearch.com/guide/salem-nh/x26amp?8fd1a%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E4471ad9f652=1
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: abtest=a; usrid=8d9126361779d6089b90bd5ad645782e53578ffa; cs_session=6e35783c90b2f27772a98feb556231be4b2da440; publisher=citysearch; reqseq=1; recent_geos=111034%7E%7CSalem; tseg=151; userSearchLoc=Salem%2C%20NH%7E%7C111034; biClick=; user_preferences=%7B%22console_logging%22%3A0%7D

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:38:09 GMT
Server: Apache-Coyote/1.1
Content-Language: en-US
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Set-Cookie: reqseq=2; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: brand=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: cs_session=6e35783c90b2f27772a98feb556231be4b2da440; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: usrid=8d9126361779d6089b90bd5ad645782e53578ffa; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:38:09 GMT; Path=/
Connection: close
Content-Length: 3628

Citysearch.loadDealsWidget("<html><body><h2 id=\"offers.text.geoLocation\">Daily Deals in Rockingham County, NH Metro</h2><a name=\"collector.dealsSecondary.1.grouponDealTitle\" rel=\"nofollow\" id=\"
...[SNIP]...

2.2. http://portsmouth.citysearch.com/guide/salem-nh/x26amp  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /guide/salem-nh/x26amp

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /guide/salem-nh/x26amp HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:36:22 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:36:22 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Set-Cookie: usrid=dc16eb3b103ce460d369997837c093c96b709988; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: cs_session=18144f472175d6fb82d06c7178a12897d4f8a279; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: recent_geos=111034%7E%7CSalem; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: tseg=294; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:36:26 GMT; Path=/
Set-Cookie: userSearchLoc=Salem%2C%20NH%7E%7C111034; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Vary: Accept-Encoding
Connection: close
Content-Length: 72668

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

2.3. http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22 HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 301 Moved Permanently
Date: Sun, 02 Jan 2011 13:31:07 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:31:07 GMT
Location: http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html
Content-Language: en
Content-Length: 0
Set-Cookie: usrid=e5211f7d50d07e8583adae79d12863f168ef8eb6; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:31:07 GMT; Path=/
Set-Cookie: cs_session=045a49e0dc87a8bfe1017f19ba4b8296cdcb93e2; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: recent_geos=72016%7E%7CHouston; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:31:07 GMT; Path=/
Set-Cookie: tseg=774; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:31:07 GMT; Path=/
Connection: close
Content-Type: text/plain


3. Cookie without HttpOnly flag set  previous  next
There are 3 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.



3.1. http://portsmouth.citysearch.com/deals  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /deals

Issue detail

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

Request

GET /deals?callback=Citysearch.loadDealsWidget&rpp=3&placement=collector HTTP/1.1
Host: portsmouth.citysearch.com
Proxy-Connection: keep-alive
Referer: http://portsmouth.citysearch.com/guide/salem-nh/x26amp?8fd1a%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E4471ad9f652=1
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: abtest=a; usrid=8d9126361779d6089b90bd5ad645782e53578ffa; cs_session=6e35783c90b2f27772a98feb556231be4b2da440; publisher=citysearch; reqseq=1; recent_geos=111034%7E%7CSalem; tseg=151; userSearchLoc=Salem%2C%20NH%7E%7C111034; biClick=; user_preferences=%7B%22console_logging%22%3A0%7D

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:38:09 GMT
Server: Apache-Coyote/1.1
Content-Language: en-US
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Set-Cookie: reqseq=2; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: brand=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: cs_session=6e35783c90b2f27772a98feb556231be4b2da440; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:08:09 GMT; Path=/
Set-Cookie: usrid=8d9126361779d6089b90bd5ad645782e53578ffa; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:38:09 GMT; Path=/
Connection: close
Content-Length: 3628

Citysearch.loadDealsWidget("<html><body><h2 id=\"offers.text.geoLocation\">Daily Deals in Rockingham County, NH Metro</h2><a name=\"collector.dealsSecondary.1.grouponDealTitle\" rel=\"nofollow\" id=\"
...[SNIP]...

3.2. http://portsmouth.citysearch.com/guide/salem-nh/x26amp  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /guide/salem-nh/x26amp

Issue detail

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

Request

GET /guide/salem-nh/x26amp HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:36:22 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:36:22 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Set-Cookie: usrid=dc16eb3b103ce460d369997837c093c96b709988; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: cs_session=18144f472175d6fb82d06c7178a12897d4f8a279; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: recent_geos=111034%7E%7CSalem; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: tseg=294; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:36:26 GMT; Path=/
Set-Cookie: userSearchLoc=Salem%2C%20NH%7E%7C111034; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Vary: Accept-Encoding
Connection: close
Content-Length: 72668

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

3.3. http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22  previous

Summary

Severity:   Low
Confidence:   Firm
Host:   http://portsmouth.citysearch.com
Path:   /profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22

Issue detail

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

Request

GET /profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22 HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 301 Moved Permanently
Date: Sun, 02 Jan 2011 13:31:07 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:31:07 GMT
Location: http://portsmouth.citysearch.com/profile/6529514/salem_nh/uncle_bob_s_self_storage.html
Content-Language: en
Content-Length: 0
Set-Cookie: usrid=e5211f7d50d07e8583adae79d12863f168ef8eb6; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:31:07 GMT; Path=/
Set-Cookie: cs_session=045a49e0dc87a8bfe1017f19ba4b8296cdcb93e2; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:01:07 GMT; Path=/
Set-Cookie: recent_geos=72016%7E%7CHouston; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:31:07 GMT; Path=/
Set-Cookie: tseg=774; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:31:07 GMT; Path=/
Connection: close
Content-Type: text/plain


4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://portsmouth.citysearch.com
Path:   /guide/salem-nh/x26amp

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

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

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

Issue remediation

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

Request

GET /guide/salem-nh/x26amp HTTP/1.1
Host: portsmouth.citysearch.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:36:22 GMT
Server: Apache-Coyote/1.1
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:36:22 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Set-Cookie: usrid=dc16eb3b103ce460d369997837c093c96b709988; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: cs_session=18144f472175d6fb82d06c7178a12897d4f8a279; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: publisher=citysearch; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: reqseq=1; Domain=.citysearch.com; Expires=Sun, 02-Jan-2011 14:06:26 GMT; Path=/
Set-Cookie: recent_geos=111034%7E%7CSalem; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Set-Cookie: tseg=294; Domain=.citysearch.com; Expires=Sat, 02-Apr-2011 13:36:26 GMT; Path=/
Set-Cookie: userSearchLoc=Salem%2C%20NH%7E%7C111034; Domain=.citysearch.com; Expires=Mon, 02-Jan-2012 13:36:26 GMT; Path=/
Vary: Accept-Encoding
Connection: close
Content-Length: 72668

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE]><![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang
...[SNIP]...
<div id="sponsorship-900x60" class="ad">
<script src="http://ad.doubleclick.net/adj/5480.iac.cs/collector;s=cs;pty=home;cst=0;lgn=0;sz=900x60;st=_nh;mtr=82093;cty=111034;tile=2;ord=4079449848;mtfInline=true" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://ad.doubleclick.net/adj/5480.iac.cs/collector;s=cs;pty=home;cst=0;lgn=0;sz=1256x1024;pos=skn;st=_nh;mtr=82093;cty=111034;tile=7;ord=4079449848;mtfInline=true" type="text/javascript"></script>
...[SNIP]...
</script>
<script src="http://fby.s3.amazonaws.com/fby.js" type="text/javascript"></script>
...[SNIP]...

5. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://portsmouth.citysearch.com
Path:   /profile/6529514/salem_nh/uncle_bob_s_self_storage.html/x22

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: portsmouth.citysearch.com

Response

HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 13:31:09 GMT
Server: Apache/2.2.4 (Unix)
Set-Cookie: abtest=a; path=/; domain=.citysearch.com; expires=Sun, 16-Jan-2011 13:31:09 GMT
Vary: Host,X-Forwarded-For,Accept-Encoding
Last-Modified: Wed, 13 Oct 2010 00:16:19 GMT
ETag: "243bf8-23c-4927480a4fac0"
Accept-Ranges: bytes
Content-Length: 572
Connection: close
Content-Type: text/plain

User-agent: *
Disallow: /leavebeta/
Disallow: /pfp/
Disallow: /tracker/
Disallow: /rate/
Disallow: /profile/external/
Disallow: /profile/print
Disallow: /profile/sendto/
Disallow: /profile/message
Dis
...[SNIP]...

Report generated by XSS.CX at Sun Jan 02 07:47:26 CST 2011.