XSS, ondemandpreview.vportal.net, Cross Site Scripting, CWe-79, CAPEC-86

JavaScript string which is encapsulated in single quotation marks

Report generated by XSS.CX at Sun Mar 06 10:05:50 CST 2011.


The DORK Report

Loading

1. Cross-site scripting (reflected)

2. Cookie without HttpOnly flag set

3. Email addresses disclosed

3.1. http://ondemandpreview.vportal.net/js/ajaf/20110304_135746_00000889/ajaf.js

3.2. http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/appsetup.js

3.3. http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/wddx.js

4. HTML does not specify charset

4.1. http://ondemandpreview.vportal.net/

4.2. http://ondemandpreview.vportal.net/appframe.cfm

4.3. http://ondemandpreview.vportal.net/blank.html

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a4e26'%3balert(1)//05f06ce0058 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as a4e26';alert(1)//05f06ce0058 in the application's response.

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

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.

Request

GET /?a4e26'%3balert(1)//05f06ce0058=1 HTTP/1.1
Host: ondemandpreview.vportal.net
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
Date: Sun, 06 Mar 2011 14:45:48 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g
Set-Cookie: JSESSIONID=de30a83bc09395b1b25e266bc4d5a22e6439;path=/
P3P: CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
Connection: close
Content-Type: text/html
Content-Language: en-US
Set-Cookie: BARRACUDA_LB_COOKIE=dLJCoufbpIm/m2v7ZaaKSg; path=/
Cache-control: private

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>OpenWorld, JavaOne
...[SNIP]...
<script type="text/javascript">
       APP = self.appFrame;
       AUX = self;
       direct = false;
       embed = false;
       mainURI = 'main.cfm?m=home.homepage&a4e26';alert(1)//05f06ce0058=1';
       okToLoad = true;
       
       try{
           if(self.location != top.location) {
               // are we handling a fully resolved url but actually want to load a main frame?
               topPathname = top.location.pathna
...[SNIP]...

2. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://ondemandpreview.vportal.net
Path:   /

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The highlighted cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Request

GET / HTTP/1.1
Host: ondemandpreview.vportal.net
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
Date: Sun, 06 Mar 2011 14:45:42 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g
Set-Cookie: JSESSIONID=de30d54b8ead971ceda37d445d1947771328;path=/
P3P: CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
Connection: close
Content-Type: text/html
Content-Language: en-US
Set-Cookie: BARRACUDA_LB_COOKIE=dLJCoufbpIm/m2v7ZaaKSg; path=/
Cache-control: private

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>OpenWorld, JavaOne
...[SNIP]...

3. Email addresses disclosed  previous  next
There are 3 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.



3.1. http://ondemandpreview.vportal.net/js/ajaf/20110304_135746_00000889/ajaf.js  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /js/ajaf/20110304_135746_00000889/ajaf.js

Issue detail

The following email address was disclosed in the response:

Request

GET /js/ajaf/20110304_135746_00000889/ajaf.js HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/appframe.cfm
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Content-Length: 188545
Content-Type: application/x-javascript
Content-Location: http://ondemandpreview.vportal.net/js/ajaf/20110304_135746_00000889/ajaf.js
Last-Modified: Fri, 04 Mar 2011 21:55:08 GMT
Accept-Ranges: bytes
ETag: "26addbd3b6dacb1:9c6"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 06 Mar 2011 14:49:26 GMT

// *******************************************************
// Version registration code.
// This code produces a number of objects, which all have an identical set
// of properties:
//
// obj.nam
...[SNIP]...
at the end of the document.
detectPlatform();
detectBrowser();
detectJS();

////////////////////////////////////////////////////////////////////////////////
// validate.js
// By: Chris Lander - chris@altuscorp.com
// Copyright (c) 2002, Altus Learning Systems, Inc.
// All rights reserved worldwide
//
// PURPOSE:
// An extension to the Detection2 API. This library checks that user's computer
// matches the
...[SNIP]...

3.2. http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/appsetup.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /js/global/20110304_135746_00000889/appsetup.js

Issue detail

The following email address was disclosed in the response:

Request

GET /js/global/20110304_135746_00000889/appsetup.js HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/appframe.cfm
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Content-Length: 17116
Content-Type: application/x-javascript
Content-Location: http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/appsetup.js
Last-Modified: Fri, 04 Mar 2011 21:55:08 GMT
Accept-Ranges: bytes
ETag: "50dde0d3b6dacb1:9c6"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 06 Mar 2011 14:50:01 GMT

/**********************************************
Template Name: appsetupX.js
Revision: .29
Date Modified: 6/15/2006

***********************************************/

// js file to b
...[SNIP]...
obj[i] && obj[i].indexOf( 'function' ) ){
   if( typeof obj[i] == 'function' ){
       copyMethod( obj, i );
       str += i+' '+typeof obj[i]+'\n';
   }
}
masterFunction( 'This is my Title', 'Sam Bennett', 'sam@altuscorp.com' );
}

function getDownloadForVP( objFunc ){
   // grab the data for the currently active AU, call back to supplied function
   var objRequest = new a_ajaxRequest( 'getDownloads', { auid: activeAU, c
...[SNIP]...

3.3. http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/wddx.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /js/global/20110304_135746_00000889/wddx.js

Issue detail

The following email addresses were disclosed in the response:

Request

GET /js/global/20110304_135746_00000889/wddx.js HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/appframe.cfm
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Content-Length: 25214
Content-Type: application/x-javascript
Content-Location: http://ondemandpreview.vportal.net/js/global/20110304_135746_00000889/wddx.js
Last-Modified: Fri, 04 Mar 2011 21:55:08 GMT
Accept-Ranges: bytes
ETag: "365cefd3b6dacb1:9c6"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 06 Mar 2011 14:49:25 GMT

/*
* Copyright (c) 1995-2005 Macromedia, Inc. All rights reserved.
*/

///////////////////////////////////////////////////////////////////////////
//
// Filename: wddx.js
//
// Authors: Simeon Simeonov (simeons@allaire.com)
// Nate Weiss (nweiss@icesinc.com)
//
// Last Modified: February 2, 2001
//
///////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////
...[SNIP]...

4. HTML does not specify charset  previous  next
There are 3 instances of this issue:

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

In most cases, the absence of a charset directive does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.



4.1. http://ondemandpreview.vportal.net/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /

Request

GET / HTTP/1.1
Host: ondemandpreview.vportal.net
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
Date: Sun, 06 Mar 2011 14:45:42 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g
Set-Cookie: JSESSIONID=de30d54b8ead971ceda37d445d1947771328;path=/
P3P: CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
Connection: close
Content-Type: text/html
Content-Language: en-US
Set-Cookie: BARRACUDA_LB_COOKIE=dLJCoufbpIm/m2v7ZaaKSg; path=/
Cache-control: private

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>OpenWorld, JavaOne
...[SNIP]...

4.2. http://ondemandpreview.vportal.net/appframe.cfm  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /appframe.cfm

Request

GET /appframe.cfm HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/main.cfm?m=load.progress
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Connection: close
Date: Sun, 06 Mar 2011 14:49:25 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Language: en-US
Content-Type: text/html


                                                                                                                                                                                                                                                   
...[SNIP]...
</title>
   <meta http-equiv="Content-Type" content="text/html"/>
   <script type="text/javascript">
...[SNIP]...

4.3. http://ondemandpreview.vportal.net/blank.html  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://ondemandpreview.vportal.net
Path:   /blank.html

Request

GET /blank.html HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/?a4e26'%3balert(document.cookie)//05f06ce0058=1
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.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Content-Length: 189
Content-Type: text/html
Content-Location: http://ondemandpreview.vportal.net/blank.html
Last-Modified: Fri, 04 Mar 2011 21:54:37 GMT
Accept-Ranges: bytes
ETag: "bc46b9c1b6dacb1:9c6"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 06 Mar 2011 14:49:15 GMT

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
   <title>Blank</title>
</head>
<body>
   <!-- blank page -->
</body>
</html>

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://ondemandpreview.vportal.net
Path:   /js/ajaf/20110304_135746_00000889/vbstuff.txt

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain script.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Request

GET /js/ajaf/20110304_135746_00000889/vbstuff.txt HTTP/1.1
Host: ondemandpreview.vportal.net
Proxy-Connection: keep-alive
Referer: http://ondemandpreview.vportal.net/appframe.cfm
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13
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: JSESSIONID=3e3080c0cf5b4e7a66a316c4e465b7e593d3; BARRACUDA_LB_COOKIE=RH3BMt/NmXna3ebHnWQaUA

Response

HTTP/1.1 200 OK
Content-Length: 5509
Content-Type: text/plain
Content-Location: http://ondemandpreview.vportal.net/js/ajaf/20110304_135746_00000889/vbstuff.txt
Last-Modified: Fri, 04 Mar 2011 21:55:08 GMT
Accept-Ranges: bytes
ETag: "e681ddd3b6dacb1:9c6"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 06 Mar 2011 14:49:26 GMT

'Call Back to JS to register this VB module
call registerVBModule( "vbstuff_verbose.txt", "1.0.1", "2003,3,29", "Sam Bennett" )
                   
Function GetVersion(str)
   Set re = new regexp
   re.Pattern = "
...[SNIP]...

Report generated by XSS.CX at Sun Mar 06 10:05:50 CST 2011.