ecb.int, XSS, CWE-79, CAPEC-86, Cross Site Scripting

XSS in ECB | Vulnerability Crawler Report

Report generated by XSS.CX at Fri Dec 31 12:11:07 CST 2010.


Contents

Loading

1. Cross-site scripting (reflected)

2. Email addresses disclosed

2.1. http://www.ecb.int/shared/js/jquery.cookie.js

2.2. http://www.ecb.int/shared/js/jquery.corner.js

3. Credit card numbers disclosed

3.1. http://www.ecb.int/pub/pdf/other/ecbresearchevaluationfinalen.pdf

3.2. http://www.ecb.int/pub/pdf/scpwps/ecbwp030.pdf

3.3. http://www.ecb.int/pub/pdf/scpwps/ecbwp944.pdf



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /home/html/researcher.en.html

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 86571"-alert(1)-"53dc00d3df5 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.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

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 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 /home/html/researcher.en.html?86571"-alert(1)-"53dc00d3df5=1 HTTP/1.1
Host: www.ecb.int
Proxy-Connection: keep-alive
Referer: http://www.ecb.int/home/html/index.en.html
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=268787301.1293817340.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=European%20Central%20Bank; __utma=268787301.2094457390.1293817340.1293817340.1293817340.1; __utmc=268787301; __utmb=268787301.1.10.1293817340

Response

HTTP/1.1 200 OK
Date: Fri, 31 Dec 2010 17:49:12 GMT
Server: Apache/2.2.3 (Linux/SUSE)
X-Powered-By: PHP/5.2.5
Content-Type: text/html
Content-Language: en
Content-Length: 47651

<!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="en">

<head>
   <title>ECB: Resear
...[SNIP]...
<script type="text/javascript">
var xajaxRequestUri="http://www.ecb.int/home/html/researcher.en.html?86571"-alert(1)-"53dc00d3df5=1";
var xajaxDebug=false;
var xajaxStatusMessages=false;
var xajaxWaitCursor=true;
var xajaxDefinedGet=0;
var xajaxDefinedPost=1;
var xajaxLoaded=false;
function xajax_getAbstract(){return xajax.call(
...[SNIP]...

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


2.1. http://www.ecb.int/shared/js/jquery.cookie.js  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /shared/js/jquery.cookie.js

Issue detail

The following email address was disclosed in the response:

Request

GET /shared/js/jquery.cookie.js HTTP/1.1
Host: www.ecb.int
Proxy-Connection: keep-alive
Referer: http://www.ecb.int/home/html/index.en.html
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,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, 31 Dec 2010 17:43:00 GMT
Server: Apache/2.2.3 (Linux/SUSE)
Last-Modified: Tue, 01 Apr 2008 14:52:45 GMT
ETag: "af86ad-1096-449d0ebcdc940"
Accept-Ranges: bytes
Content-Length: 4246
Content-Type: text/x-js

/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/li
...[SNIP]...
kie will be set and the cookie transmission will
* require a secure protocol (like HTTPS).
* @type undefined
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
*/

/**
* Get the value of a cookie with the given name.
*
* @example $.cookie('the_cookie');
* @desc Get the value of a cookie.
*
* @param String name The name of the cookie.
* @return The value of the cookie.
* @type String
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
*/
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {

...[SNIP]...

2.2. http://www.ecb.int/shared/js/jquery.corner.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /shared/js/jquery.corner.js

Issue detail

The following email addresses were disclosed in the response:

Request

GET /shared/js/jquery.corner.js HTTP/1.1
Host: www.ecb.int
Proxy-Connection: keep-alive
Referer: http://www.ecb.int/home/html/index.en.html
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,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, 31 Dec 2010 17:43:00 GMT
Server: Apache/2.2.3 (Linux/SUSE)
Last-Modified: Fri, 06 Feb 2009 12:29:53 GMT
ETag: "af86ae-1e31-4623f2d851240"
Accept-Ranges: bytes
Content-Length: 7729
Content-Type: text/x-js

/*
* jQuery corner plugin
*
* version 1.92 (12/18/2007)
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/
...[SNIP]...
ng both the element and its parent
*
* @name corner
* @type jQuery
* @param String options Options which control the corner style
* @cat Plugins/Corner
* @return jQuery
* @author Dave Methvin (dave.methvin@gmail.com)
* @author Mike Alsup (malsup@gmail.com)
*/
(function($) {

$.fn.corner = function(o) {
var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent);
function sz(el, p) { return parseInt($.css(el,p))||0; };
function hex2(s
...[SNIP]...

3. Credit card numbers disclosed  previous
There are 3 instances of this issue:

Issue background

Responses containing credit card numbers may not represent any security vulnerability - for example, a number may belong to the logged-in user to whom it is displayed. You should verify whether the numbers identified are actually valid credit card numbers and whether their disclosure within the application is appropriate.


3.1. http://www.ecb.int/pub/pdf/other/ecbresearchevaluationfinalen.pdf  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /pub/pdf/other/ecbresearchevaluationfinalen.pdf

Issue detail

The following credit card number was disclosed in the response:

Request

GET /pub/pdf/other/ecbresearchevaluationfinalen.pdf HTTP/1.1
Host: www.ecb.int
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: __utmz=268787301.1293817340.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=European%20Central%20Bank; __utma=268787301.2094457390.1293817340.1293817340.1293817340.1; __utmc=268787301; __utmb=268787301.1.10.1293817340;

Response

HTTP/1.1 200 OK
Date: Fri, 31 Dec 2010 17:48:41 GMT
Server: Apache/2.2.3 (Linux/SUSE)
Last-Modified: Thu, 20 Aug 2009 09:16:02 GMT
ETag: "b50a0-3bf0d-4718f33503880"
Accept-Ranges: bytes
Content-Length: 245517
Connection: close
Content-Type: application/pdf

%PDF-1.5%....
252 0 obj <</Linearized 1/L 245517/O 255/E 50835/N 55/T 240429/H [ 596 730]>>endobj
xref
252 15
0000000016 00000 n
0000001326 00000 n
0000000596 00000 n
0000001402
...[SNIP]...
</Type/Font/BaseFont/COPKGG+Arial,Bold/FirstChar 32/LastChar 246/Subtype/TrueType/FontDescriptor 259 0 R/Widths[278 0 0 0 0 0 0 0 0 0 0 0 278 0 278 0 0 556 556 556 556 556 556 556 0 0 0 0 0 0 0 0 0 722 722 722 722 667 611 778 722 278 0 722 611 833 722 778 667 778 722 667 611 722 667 0 667 667 0 0 0 0 0 0 0 556 611 556 611 556 333 611 611 278 278 556 278 889 611 611 611 611 389 556 333 611 55
...[SNIP]...

3.2. http://www.ecb.int/pub/pdf/scpwps/ecbwp030.pdf  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /pub/pdf/scpwps/ecbwp030.pdf

Issue detail

The following credit card numbers were disclosed in the response:

Request

GET /pub/pdf/scpwps/ecbwp030.pdf HTTP/1.1
Host: www.ecb.int
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: __utmz=268787301.1293817340.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=European%20Central%20Bank; __utma=268787301.2094457390.1293817340.1293817340.1293817340.1; __utmc=268787301; __utmb=268787301.1.10.1293817340;

Response

HTTP/1.1 200 OK
Date: Fri, 31 Dec 2010 17:48:49 GMT
Server: Apache/2.2.3 (Linux/SUSE)
Last-Modified: Fri, 28 Nov 2003 15:19:53 GMT
ETag: "270177-1777a5-3cd306c865840"
Accept-Ranges: bytes
Content-Length: 1537957
Connection: close
Content-Type: application/pdf

%PDF-1.3%....
1045 0 obj<< /Linearized 1 /O 1048 /H [ 2383 5520 ] /L 1537957 /E 95536 /N 70 /T 1516937 >> endobj xref1045 91 0000000016 00
...[SNIP]...
.Y.x..il...~D5............jC.f.=......u/zG.uM.3.....C.2.....R..@...m..f.......c........#....H..NH.....H.}..K..^.;....:..p.w&ok;9P..Wv..i.3+.O.......'..b......%.~.....endstreamendobj355 0 obj[ 562 0 882 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 307 358 307 0 0 0 0 0 0 0 0 0 0 0 307 0 0 0 0 0 0 0 0 716 0 678 0 0 0 386 525 769 627 897 0 767 678 0 0 562 716 743 0 0 0 0 0 0 0 0 0 0 0 511 460 460 511 460
...[SNIP]...
1 0 521 0 0 0 0 0 0 0 0 0 0 0 0 0 0 521 510 552 656 510 417 604 0 240 240 563 417 813 0 656 448 0 531 458 510 635 510 927 0 0 0 0 0 0 0 0 0 469 469 385 469 438 271 427 469 188 0 458 188 740 469 448 490 0 313 354 281 469 375 615 0 375 ] /BaseFont /OKOPMA+GillSansMT,Italic /FontDescriptor 1017 0 R >
...[SNIP]...

3.3. http://www.ecb.int/pub/pdf/scpwps/ecbwp944.pdf  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ecb.int
Path:   /pub/pdf/scpwps/ecbwp944.pdf

Issue detail

The following credit card numbers were disclosed in the response:

Request

GET /pub/pdf/scpwps/ecbwp944.pdf HTTP/1.1
Host: www.ecb.int
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: __utmz=268787301.1293817340.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=European%20Central%20Bank; __utma=268787301.2094457390.1293817340.1293817340.1293817340.1; __utmc=268787301; __utmb=268787301.1.10.1293817340;

Response

HTTP/1.1 200 OK
Date: Fri, 31 Dec 2010 17:48:44 GMT
Server: Apache/2.2.3 (Linux/SUSE)
Last-Modified: Mon, 13 Oct 2008 10:41:36 GMT
ETag: "270541-1d2ace-4592024ad3800"
Accept-Ranges: bytes
Content-Length: 1911502
Connection: close
Content-Type: application/pdf

%PDF-1.5%....
1041 0 obj<</H[2716 4729]/Linearized 1/E 136266/L 1911502/N 124/O 1046/T 1890633>>endobj
xref
1041 121
0000000016 00000 n
0000007445 00000 n
0000007612 00000 n
00000027
...[SNIP]...
coding/WinAnsiEncoding/BaseFont/AADFEJ+TimesNewRomanWGL/FirstChar 32/LastChar 121/Subtype/TrueType/FontDescriptor 755 0 R/Widths[250 0 0 0 0 0 0 0 333 333 0 564 250 333 250 278 500 500 500 500 500 500 500 500 500 500 278 0 0 0 0 0 0 722 667 667 722 611 556 722 722 333 0 722 611 889 722 0 556 0 667 556 611 0 0 0 0 0 0 0 0 0 0 0 0 444 500 444 500 444 333 500 500 278 0 500 278 778 500 500 500 0 333 389 278 500 500 722 500
...[SNIP]...
coding/WinAnsiEncoding/BaseFont/AADFEJ+TimesNewRomanWGL/FirstChar 32/LastChar 121/Subtype/TrueType/FontDescriptor 755 0 R/Widths[250 0 0 0 0 0 0 0 333 333 0 564 250 333 250 278 500 500 500 500 500 500 500 500 500 500 278 0 0 0 0 0 0 722 667 667 722 611 556 722 722 333 0 722 0 889 722 0 556 0 667 556 611 0 0 944 0 0 0 0 0 0 0 0 0 444 500 444 500 444 333 500 500 278 0 500 278 778 500 500 500 0 333 389 278 500 500 722 500
...[SNIP]...
8 722 764 681 653 785 750 361 514 778 625 917 750 778 681 778 736 556 722 750 750 1028 0 750 611 278 500 278 0 0 278 500 556 444 556 444 306 500 556 278 306 528 278 833 556 500 556 528 392 394 389 556 528 722 528 528 444 0 1000 0 500 500]>
...[SNIP]...
</Type/Font/Encoding 828 0 R/BaseFont/QWHQAN+CMEX10/FirstChar 0/LastChar 105/Subtype/Type1/ToUnicode 831 0 R/FontDescriptor 824 0 R/Widths[458 458 417 417 0 0 0 0 0 0 0 0 0 0 0 0 597 597 736 736 528 528 0 0 0 0 0 0 0 0 0 0 792 792 583 583 0 0 0 0 0 0 0 0 0 0 0 0 875 875 667 0 667 0 0 0 0 0 0 0 0 0 0 0 875 875 875 875 0 0 0 0 0 0 0 0 0 0 0 0 0 944 472 0 0 0 0 0
...[SNIP]...
8 722 764 681 653 785 750 361 514 778 625 917 750 778 681 778 736 556 722 750 750 1028 0 750 611 278 500 278 0 0 278 500 556 444 556 444 306 500 556 278 306 528 278 833 556 500 556 528 392 394 389 556 528 722 528 528 444 0 1000 0 500 500]>
...[SNIP]...
8 722 764 681 653 785 750 361 514 778 625 917 750 778 681 778 736 556 722 750 750 1028 0 750 611 278 500 278 0 0 278 500 556 444 556 444 306 500 556 278 306 528 278 833 556 500 556 528 392 394 389 556 528 722 528 528 444 0 1000 0 500 500]>
...[SNIP]...

Report generated by XSS.CX at Fri Dec 31 12:11:07 CST 2010.