XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, Horde WebMail Version 3.3.11

XSS.CX 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 May 24 08:33:05 CDT 2011.

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

See Horde WebMail v3.3.11 CWE-113, HTTP Header Injection Report | XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

XSS in Horde WebMail Version 3.3.11, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php [name of an arbitrarily supplied request parameter]

1.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/redirect.php [name of an arbitrarily supplied request parameter]

2. Cleartext submission of password

2.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php

2.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php

2.3. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php

3. Session token in URL

3.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php

3.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php

3.3. http://vulnerable.horde.webmail.version3.3.11.host/imp/redirect.php

3.4. http://vulnerable.horde.webmail.version3.3.11.host/login.php

3.5. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/

3.6. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/edit.php

3.7. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/sidebar.php

3.8. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php

3.9. http://vulnerable.horde.webmail.version3.3.11.host/services/problem.php

4. Password field with autocomplete enabled

4.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php

4.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php

4.3. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php

5. Cookie without HttpOnly flag set

6. Database connection string disclosed

6.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php

6.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php

7. Email addresses disclosed

7.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/themes/wps_sober/screen.css

7.2. http://vulnerable.horde.webmail.version3.3.11.host/login.php

7.3. http://vulnerable.horde.webmail.version3.3.11.host/services/javascript.php

7.4. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/sidebar.php

7.5. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php

7.6. http://vulnerable.horde.webmail.version3.3.11.host/services/problem.php

7.7. http://vulnerable.horde.webmail.version3.3.11.host/themes/wps_sober/screen.css



1. Cross-site scripting (reflected)  next
There are 2 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/login.php

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 5b11f'%3b938d2aa3a19 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 5b11f';938d2aa3a19 in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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 /imp/login.php/5b11f'%3b938d2aa3a19 HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:23:58 GMT
Content-Length: 10122

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
<![CDATA[
var autologin_url = '/imp/login.php/5b11f';938d2aa3a19?autologin=&amp;server_key=';var show_list = 1;var ie_clientcaps = 0;var lang_url = null;var protocols = [];var change_smtphost = 0;var imp_auth = 1;var nomenu = 1
//]]>
...[SNIP]...

1.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/redirect.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/redirect.php

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 1ae80'%3bf756c9a04af was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 1ae80';f756c9a04af in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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 /imp/redirect.php/1ae80'%3bf756c9a04af HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:30:44 GMT
Connection: close
Content-Length: 10220

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
<![CDATA[
var autologin_url = '/imp/redirect.php/1ae80';f756c9a04af?nocache=1dtzg2wmkftw&amp;autologin=&amp;server_key=';var show_list = 1;var ie_clientcaps = 1;var lang_url = null;var protocols = [];var change_smtphost = 0;var imp_auth = 1;var nomenu = 1
//]]>
...[SNIP]...

2. Cleartext submission of password  previous  next
There are 3 instances of this issue:

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.


2.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/login.php

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:

Request

GET /imp/login.php?horde_logout_token=N0GUYqlGAmvetdgzTIa_ZC07VhQ&app=horde&logout_reason=logout HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/login.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:15:53 GMT
Content-Length: 10234

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
</script>
<form name="imp_login" id="imp_login" action="http://webmail.nosedivesailing.com/imp/redirect.php" method="post" target="_parent">

<input type="hidden" name="actionID" value="" />
...[SNIP]...
<td class="leftAlign">
<input type="password" tabindex="3" id="pass" name="pass" style="direction:ltr" />
</td>
...[SNIP]...

2.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/mailbox.php

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:

Request

GET /imp/mailbox.php?no_newmail_popup=1&mailbox=INBOX HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/portal/sidebar.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; horde_menu_expanded=expimp; default_imp_view=imp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:28:15 GMT
Content-Length: 10105

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
</script>
<form name="imp_login" id="imp_login" action="http://webmail.nosedivesailing.com/imp/redirect.php" method="post" target="_parent">

<input type="hidden" name="actionID" value="" />
...[SNIP]...
<td class="leftAlign">
<input type="password" tabindex="3" id="pass" name="pass" style="direction:ltr" />
</td>
...[SNIP]...

2.3. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/prefs.php

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:

Request

GET /services/prefs.php?app=horde&group=authentication HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:27 GMT
Connection: close
Content-Length: 4916

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<br class="spacer" />
<form method="post" id="prefs" name="prefs" action="/services/prefs.php?nocache=3drmxrxep76s">
<input type="hidden" name="horde_prefs_token" value="0ul7sFwM5DqHuVvV5Bz1LOQzH54" />
...[SNIP]...
<br />
<input type="password" id="credentials[imp][password]" name="credentials[imp][password]" size="30" maxlength="60" value="" /><br />
...[SNIP]...

3. Session token in URL  previous  next
There are 9 instances of this issue:

Issue background

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Issue remediation

The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.


3.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/login.php

Issue detail

The URL in the request appears to contain a session token within the query string:

Request

GET /imp/login.php?horde_logout_token=N0GUYqlGAmvetdgzTIa_ZC07VhQ&app=horde&logout_reason=logout HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/login.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:15:53 GMT
Content-Length: 10234

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...

3.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/mailbox.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /imp/mailbox.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1%40nosedivesailing.com&server=localhost&port=143&protocol=imap%2Fnotls&smtphost=localhost&horde_logout_token=3XvY1Od4UiVN-9QZB6Z2CIfnA6s&app=imp&logout_reason=browser&url=%2Fimp%2Fmailbox.php%3Fnocache%3D5p9s69af0l8g
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:28:16 GMT
Connection: close
Content-Length: 437

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/imp/login.php?imapuser=format-1%40nosedivesailing.com&amp;server=localhost&amp;port=143&amp;protocol=imap%2Fnotls&amp;smtphost=localhost&amp;horde_logout_token=3XvY1Od4UiVN-9QZB6Z2CIfnA6s&amp;app=imp&amp;logout_reason=browser&amp;url=%2Fimp%2Fmailbox.php%3Fnocache%3D5p9s69af0l8g">here</a>
...[SNIP]...

3.3. http://vulnerable.horde.webmail.version3.3.11.host/imp/redirect.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/redirect.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

POST /imp/redirect.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/imp/login.php?horde_logout_token=N0GUYqlGAmvetdgzTIa_ZC07VhQ&app=horde&logout_reason=logout
Cache-Control: max-age=0
Origin: http://Vulnerable Horde WebMail Host
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Content-Type: application/x-www-form-urlencoded
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp
Content-Length: 136

actionID=&url=&load_frameset=1&autologin=0&anchor_string=&server_key=pop&server=imap&imapuser=format-1&pass=LL12345%21%21&new_lang=en_US

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1&server=imap&horde_logout_token=SvScATIhY3HrvlpQHcMiv6S5404&app=imp&logout_reason=failed
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:16:08 GMT
Content-Length: 319

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/imp/login.php?imapuser=format-1&amp;server=imap&amp;horde_logout_token=SvScATIhY3HrvlpQHcMiv6S5404&amp;app=imp&amp;logout_reason=failed">here</a>
...[SNIP]...

3.4. http://vulnerable.horde.webmail.version3.3.11.host/login.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /login.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /login.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/index.php?url=http%3A%2F%2Fwebmail.nosedivesailing.com%2F
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:13:48 GMT
Content-Length: 2638

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<li><a href="/login.php?horde_logout_token=vBdYIh56XeBYFctSynZy56V3-kE&amp;app=horde&amp;logout_reason=logout" target="_parent" accesskey="L"><img src="/themes/graphics/logout.png" alt="Log out" title="" />
...[SNIP]...

3.5. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/portal/

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /services/portal/ HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/login.php?url=%2Fservices%2Fportal%2FIndex.php%3Fnocache%3Dgetae9e5j5s&nosidebar=1&horde_logout_token=te5FjxkZKZ1eWU-9DsXOaKzux9M&app=horde&logout_reason=browser
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:23 GMT
Connection: close
Content-Length: 335

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/login.php?url=%2Fservices%2Fportal%2FIndex.php%3Fnocache%3Dgetae9e5j5s&amp;nosidebar=1&amp;horde_logout_token=te5FjxkZKZ1eWU-9DsXOaKzux9M&amp;app=horde&amp;logout_reason=browser">here</a>
...[SNIP]...

3.6. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/edit.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/portal/edit.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /services/portal/edit.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/login.php?url=%2Fservices%2Fportal%2Fedit.php%3Fnocache%3D6i0ly8kaw000&nosidebar=1&horde_logout_token=7U7qRouVjIu5VRk_VFyThmgCpwo&app=horde&logout_reason=browser
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:23 GMT
Connection: close
Content-Length: 335

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/login.php?url=%2Fservices%2Fportal%2Fedit.php%3Fnocache%3D6i0ly8kaw000&amp;nosidebar=1&amp;horde_logout_token=7U7qRouVjIu5VRk_VFyThmgCpwo&amp;app=horde&amp;logout_reason=browser">here</a>
...[SNIP]...

3.7. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/sidebar.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/portal/sidebar.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /services/portal/sidebar.php?httpclient=1 HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/portal/sidebar.php
X-Prototype-Version: 1.6.1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Accept: text/javascript, text/html, application/xml, text/xml, */*
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: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/login.php?url=%2Fservices%2Fportal%2Fsidebar.php%3Fhttpclient%3D1&nosidebar=1&horde_logout_token=PtRFK_ne7_cPLlDGFMhv7fWEIeE&app=horde
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:21:39 GMT
Content-Length: 330

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/login.php?url=%2Fservices%2Fportal%2Fsidebar.php%3Fhttpclient%3D1&amp;nosidebar=1&amp;horde_logout_token=PtRFK_ne7_cPLlDGFMhv7fWEIeE&amp;app=horde">here</a>
...[SNIP]...

3.8. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/prefs.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /services/prefs.php?app=mnemo HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/portal/sidebar.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount; Horde=88c638d3fab706dbc0ca275eba61c3e7; default_imp_view=imp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:25:20 GMT
Content-Length: 4811

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Mnemo: Copyright 2002-2009 The Horde Project. Mnemo is under a Horde license. -->
<!-- Horde Proje
...[SNIP]...
<li><a href="/login.php?horde_logout_token=h0u1nJKedVtgBJwsMjobN302nZE&amp;app=mnemo&amp;logout_reason=logout" target="_parent"><img src="/themes/graphics/logout.png" alt="Log out" title="" />
...[SNIP]...

3.9. http://vulnerable.horde.webmail.version3.3.11.host/services/problem.php  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/problem.php

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /services/problem.php?return_url=http%3A%2F%2Fwebmail.nosedivesailing.com%2Flogin.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:27 GMT
Connection: close
Content-Length: 4574

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<li><a href="/login.php?horde_logout_token=GJorgRwBi5RzRpitrzg_qjmIu6M&amp;app=horde&amp;logout_reason=logout" target="_parent" accesskey="L"><img src="/themes/graphics/logout.png" alt="Log out" title="" />
...[SNIP]...

4. Password field with autocomplete enabled  previous  next
There are 3 instances of this issue:

Issue background

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

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

Issue remediation

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


4.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/login.php  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/login.php

Issue detail

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

Request

GET /imp/login.php?horde_logout_token=N0GUYqlGAmvetdgzTIa_ZC07VhQ&app=horde&logout_reason=logout HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/login.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:15:53 GMT
Content-Length: 10234

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
</script>
<form name="imp_login" id="imp_login" action="http://webmail.nosedivesailing.com/imp/redirect.php" method="post" target="_parent">

<input type="hidden" name="actionID" value="" />
...[SNIP]...
<td class="leftAlign">
<input type="password" tabindex="3" id="pass" name="pass" style="direction:ltr" />
</td>
...[SNIP]...

4.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/mailbox.php

Issue detail

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

Request

GET /imp/mailbox.php?no_newmail_popup=1&mailbox=INBOX HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/portal/sidebar.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; horde_menu_expanded=expimp; default_imp_view=imp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:28:15 GMT
Content-Length: 10105

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001-2009 The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://
...[SNIP]...
</script>
<form name="imp_login" id="imp_login" action="http://webmail.nosedivesailing.com/imp/redirect.php" method="post" target="_parent">

<input type="hidden" name="actionID" value="" />
...[SNIP]...
<td class="leftAlign">
<input type="password" tabindex="3" id="pass" name="pass" style="direction:ltr" />
</td>
...[SNIP]...

4.3. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/prefs.php

Issue detail

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

Request

GET /services/prefs.php?app=horde&group=authentication HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:27 GMT
Connection: close
Content-Length: 4916

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<br class="spacer" />
<form method="post" id="prefs" name="prefs" action="/services/prefs.php?nocache=3drmxrxep76s">
<input type="hidden" name="horde_prefs_token" value="0ul7sFwM5DqHuVvV5Bz1LOQzH54" />
...[SNIP]...
<br />
<input type="password" id="credentials[imp][password]" name="credentials[imp][password]" size="30" maxlength="60" value="" /><br />
...[SNIP]...

5. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/redirect.php

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

POST /imp/redirect.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1&server=imap&horde_logout_token=6uMz9tyPNJID0UFt46SR5Al0AGA&app=imp&logout_reason=failed
Cache-Control: max-age=0
Origin: http://Vulnerable Horde WebMail Host
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Content-Type: application/x-www-form-urlencoded
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount
Content-Length: 137

actionID=&url=&load_frameset=1&autologin=0&anchor_string=&server_key=imap&server=imap&imapuser=format-1&pass=LL12345%21%21&new_lang=en_US

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/index.php?url=http%3A%2F%2Fwebmail.nosedivesailing.com%2F
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
Set-Cookie: Horde=88c638d3fab706dbc0ca275eba61c3e7; path=/; domain=Vulnerable Horde WebMail Host
Set-Cookie: default_imp_view=imp; expires=Thu, 23-Jun-2011 13:24:10 GMT; path=/; domain=Vulnerable Horde WebMail Host
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:24:10 GMT
Content-Length: 241

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/index.php?url=http%3A%2F%2Fwebmail.nosedivesailing.com%2F">
...[SNIP]...

6. Database connection string disclosed  previous  next
There are 2 instances of this issue:

Issue background

A database connection string specifies information about a data source and the means of connecting to it. In web applications, connection strings are generally used by the application tier to connect to the back database used for storing application data. They are usually read from server-side configuration files or hard-coded into application source code.

Issue remediation

It is almost never necessary for applications to disclose database connection strings to clients. You should review the reason for the disclosure and prevent it from ever happening.


6.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/mailbox.php

Issue detail

The following database connection string was disclosed in the response:

Request

GET /imp/mailbox.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1%40nosedivesailing.com&server=localhost&port=143&protocol=imap%2Fnotls&smtphost=localhost&horde_logout_token=3XvY1Od4UiVN-9QZB6Z2CIfnA6s&app=imp&logout_reason=browser&url=%2Fimp%2Fmailbox.php%3Fnocache%3D5p9s69af0l8g
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:28:16 GMT
Connection: close
Content-Length: 437

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/imp/login.php?imapuser=format-1%40nosedivesailing.com&amp;server=localhost&amp;port=143&amp;protocol=imap%2Fnotls&amp;smtphost=localhost&amp;horde_logout_token=3XvY1Od4UiVN-9QZB6Z2CIfnA6s&amp;app=imp&amp;logout_reason=browser&amp;url=%2Fimp%2Fmailbox.php%3Fnocache%3D5p9s69af0l8g">
...[SNIP]...

6.2. http://vulnerable.horde.webmail.version3.3.11.host/imp/mailbox.php  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/mailbox.php

Issue detail

The following database connection string was disclosed in the response:

Request

GET /imp/mailbox.php?autologin=&server_key= HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1%40nosedivesailing.com&server=localhost&port=143&protocol=imap%2Fnotls&smtphost=localhost&horde_logout_token=A_E61TXdfX91dfGFwG-spYiOUOU&app=imp&logout_reason=browser&url=%2Fimp%2Fmailbox.php%3Fautologin%3D%26amp%3Bserver_key%3D%26amp%3Bnocache%3D3cxl3ehf0680
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:28:17 GMT
Connection: close
Content-Length: 480

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://webmail.nosedivesailing.com/imp/login.php?imapuser=format-1%40nosedivesailing.com&amp;server=localhost&amp;port=143&amp;protocol=imap%2Fnotls&amp;smtphost=localhost&amp;horde_logout_token=A_E61TXdfX91dfGFwG-spYiOUOU&amp;app=imp&amp;logout_reason=browser&amp;url=%2Fimp%2Fmailbox.php%3Fautologin%3D%26amp%3Bserver_key%3D%26amp%3Bnocache%3D3cxl3ehf0680">
...[SNIP]...

7. Email addresses disclosed  previous
There are 7 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).


7.1. http://vulnerable.horde.webmail.version3.3.11.host/imp/themes/wps_sober/screen.css  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /imp/themes/wps_sober/screen.css

Issue detail

The following email address was disclosed in the response:

Request

GET /imp/themes/wps_sober/screen.css HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/imp/login.php?imapuser=format-1&server=imap&horde_logout_token=6uMz9tyPNJID0UFt46SR5Al0AGA&app=imp&logout_reason=failed
Cache-Control: max-age=0
If-Modified-Since: Tue, 11 Apr 2006 16:27:08 GMT
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Accept: text/css,*/*;q=0.1
If-None-Match: "0d6dbc6845dc61:0"
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: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount

Response

HTTP/1.1 200 OK
Content-Type: text/css
Last-Modified: Tue, 11 Apr 2006 16:27:08 GMT
Accept-Ranges: bytes
ETag: "0d6dbc6845dc61:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:53 GMT
Content-Length: 2328

/**
* THEME WPS - Sober
* VERSION 2004-11-15
*
* AUTHOR Mats Dj.rf <md@webbplatsen.se>
* WebbPlatsen i Sverige AB
* www.webbplatsen.se
*
* NOTE styles marked
...[SNIP]...

7.2. http://vulnerable.horde.webmail.version3.3.11.host/login.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /login.php

Issue detail

The following email address was disclosed in the response:

Request

GET /login.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/index.php?url=http%3A%2F%2Fwebmail.nosedivesailing.com%2F
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:13:48 GMT
Content-Length: 2638

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<div id="menuBottom">format-1@nosedivesailing.com | <a href="/services/portal/edit.php">
...[SNIP]...

7.3. http://vulnerable.horde.webmail.version3.3.11.host/services/javascript.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/javascript.php

Issue detail

The following email address was disclosed in the response:

Request

GET /services/javascript.php?file=tree.js&app=horde HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/portal/sidebar.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/javascript
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:13:48 GMT
Content-Length: 21967

/**
* Horde Tree Javascript Class
*
* Provides the javascript class to create dynamic trees.
*
* $Horde: horde/templates/javascript/tree.js,v 1.62.2.16 2009-01-06 15:27:38 jan Exp $
*
* Copyrig
...[SNIP]...
<marko@oblo.com>
...[SNIP]...

7.4. http://vulnerable.horde.webmail.version3.3.11.host/services/portal/sidebar.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/portal/sidebar.php

Issue detail

The following email addresses were disclosed in the response:

Request

GET /services/portal/sidebar.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Proxy-Connection: keep-alive
Referer: http://Vulnerable Horde WebMail Host/index.php?url=http%3A%2F%2Fwebmail.nosedivesailing.com%2F
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
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
Cookie: auth_key=7f89ea13285b3af4d14b570ad88d0a09; imp_key=e1a53356cdd284432ea8c732eaef5129; Horde=8788b2b1bcad227c9da65d8c82ab894f; default_imp_view=imp; horde_menu_expanded=expimp

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language,Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:13:46 GMT
Content-Length: 9363

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
ng","icondir":"\/turba\/themes\/graphics\/menu","url":"\/turba\/add.php","children":["turba1680d523314fd288603aebba95f1f94a__new"],"indent":2},"turba1680d523314fd288603aebba95f1f94a__new":{"label":"in format-1@nosedivesailing.com's Address Book","expanded":false,"icon":"new.png","icondir":"\/turba\/themes\/graphics\/menu","url":"\/turba\/add.php?source=1680d523314fd288603aebba95f1f94a","indent":3},"turba1680d523314fd288603aebba95f1f94a":{"label":"format-1@nosedivesailing.com's Address Book","expanded":false,"icon":"browse.png","icondir":"\/turba\/themes\/graphics\/menu","url":"\/turba\/browse.php?source=1680d523314fd288603aebba95f1f94a","indent":2},"turbafavourites":{"lab
...[SNIP]...
emo__new","mnemo__search"],"indent":0},"mnemo__new":{"label":"New Note","expanded":false,"icon":"add.png","icondir":"\/mnemo\/themes\/graphics","url":"\/mnemo\/memo.php?actionID=add_memo","children":["mnemoformat-1@nosedivesailing.com__new"],"indent":1},"mnemoformat-1@nosedivesailing.com__new":{"label":"in format-1@nosedivesailing.com's Notepad","expanded":false,"icon":"add.png","icondir":"\/mnemo\/themes\/graphics","url":"\/mnemo\/memo.php?memolist=format-1%40nosedivesailing.com&amp;actionID=add_memo","indent":2},"mnemo__search":{
...[SNIP]...

7.5. http://vulnerable.horde.webmail.version3.3.11.host/services/prefs.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/prefs.php

Issue detail

The following email address was disclosed in the response:

Request

GET /services/prefs.php?app=mnemo&group=share HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:26 GMT
Connection: close
Content-Length: 5466

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Mnemo: Copyright 2002-2009 The Horde Project. Mnemo is under a Horde license. -->
<!-- Horde Proje
...[SNIP]...
<option value="format-1@nosedivesailing.com" selected="selected">format-1@nosedivesailing.com's Notepad</option>
...[SNIP]...

7.6. http://vulnerable.horde.webmail.version3.3.11.host/services/problem.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /services/problem.php

Issue detail

The following email address was disclosed in the response:

Request

GET /services/problem.php?return_url=http%3A%2F%2Fwebmail.nosedivesailing.com%2Flogin.php HTTP/1.1
Host: Vulnerable Horde WebMail Host
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: imp_key=e1a53356cdd284432ea8c732eaef5129; default_imp_view=imp; Horde=88c638d3fab706dbc0ca275eba61c3e7; auth_key=7f89ea13285b3af4d14b570ad88d0a09; horde_menu_expanded=expimp%2Coptions%2CimpVirtual%20Folders%25%2Cmyaccount;

Response

HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Vary: Accept-Language
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:27:27 GMT
Connection: close
Content-Length: 4574

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Horde: Copyright 2000-2009 The Horde Project. Horde is under the LGPL. -->
<!-- Hor
...[SNIP]...
<input type="text" tabindex="2" id="email" name="email" value="format-1@nosedivesailing.com" size="70" />
...[SNIP]...

7.7. http://vulnerable.horde.webmail.version3.3.11.host/themes/wps_sober/screen.css  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://Vulnerable Horde WebMail Host
Path:   /themes/wps_sober/screen.css

Issue detail

The following email address was disclosed in the response:

Request

GET /themes/wps_sober/screen.css HTTP/1.1
Accept: */*
Accept-Language: en-US
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Proxy-Connection: Keep-Alive
Host: Vulnerable Horde WebMail Host

Response

HTTP/1.1 200 OK
Content-Type: text/css
Last-Modified: Tue, 21 Dec 2010 19:25:16 GMT
Accept-Ranges: bytes
ETag: "076d8cb44a1cb1:0"
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 24 May 2011 13:26:37 GMT
Content-Length: 19078


/**
* THEME WPS - Sober (Horde)
* VERSION 2006-04-11
*
* AUTHOR Mats Dj.rf <md@webbplatsen.se>
* WebbPlatsen i Sverige AB
* www.webbplatsen.se
*
* NOTE
...[SNIP]...

Report generated by XSS.CX at Tue May 24 08:33:05 CDT 2011.