|
IceWarp Web Mail Two File Inclusion Vulnerabilities
|
|
Secunia Advisory:
|
SA18953
|
|
|
Release Date:
|
2006-07-17
|
|
Popularity:
|
7,642 views
|
|
|
Critical:
|
 Highly critical
|
|
Impact:
|
Exposure of sensitive information System access
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | IceWarp Web Mail 5.x Merak Mail Server 8.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2006-0817 CVE-2006-0818
|
|
Description: Secunia Research has discovered two vulnerabilities in IceWarp Web Mail, which can be exploited by malicious users and by malicious people to disclose potentially sensitive information and to compromise a vulnerable system.
1) Input passed to the "language" and "lang_settings" parameters in "/accounts/inc/include.php" and "/admin/inc/include.php" isn't properly sanitised by the "securepath()" function before being used to include files. This can be exploited to include arbitrary files from local resources on the Windows platform using full pathnames. This can be further exploited to execute arbitrary PHP code by injecting the code into the mail server's log file and including it.
Example:
http://[host]:32000/admin/inc/include.php?language=0&lang_settings[0][1]=c:\[file]%00
The vulnerability is related to #5 in:
SA17046
Successful exploitation allows execution of arbitrary PHP code on a vulnerable server without requiring authentication.
2) 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, which isn't properly sanitised by the "validatefolder()" function, to include arbitrary files from local resources using full pathnames, and from remote Windows shared folders using UNC pathnames.
Examples:
http://[host]:32000/mail/settings.html?id=[current_id]&Save_x=1&language=TEST
http://[host]:32000/mail/index.html?id=[curent_id]&lang_settings[TEST]=test;&lang_settings[TEST]=test;c:\[file]%00;
http://[host]:32000/mail/index.html?id=[curent_id]&lang_settings[TEST]=test;&lang_settings[TEST]=test;\\[host]\[share]\[file]%00;
Successful exploitation allows execution of arbitrary PHP code on a vulnerable server but requires a valid logon.
The vulnerability is related to #7 in:
SA17046
The vulnerabilities have been confirmed in Merak Mail Server version 8.3.8.r with IceWarp Web Mail 5.6.0. Prior versions may also be affected.
Solution: Update to Merak Mail Server version 8.3.8.r with IceWarp Web Mail 5.6.1.
http://www.icewarp.com/downloads/index.html
Provided and/or discovered by: Tan Chew Keong, Secunia Research.
Original Advisory: Secunia Research:
http://secunia.com/secunia_research/2006-12/advisory/
Other References: SA17046:
http://secunia.com/advisories/17046/
|
|
|
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.
|