SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (E-mail Server)  >   IceWarp Web Mail Vendors:   IceWarp Software
IceWarp Web Mail Include File Bug in 'language' and Other Parameters Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1016513
SecurityTracker URL:  http://securitytracker.com/id/1016513
CVE Reference:   CVE-2006-0817, CVE-2006-0818   (Links to External Site)
Date:  Jul 18 2006
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): 5.6.0
Description:   A vulnerability was reported in IceWarp Web Mail. A remote user can include and execute arbitrary files on the target system.

The software does not properly validate user-supplied input. A remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code from a file on the target system. The PHP code, including operating system commands, will run with the privileges of the target web service.

The 'language' and 'lang_settings' parameters in '/accounts/inc/include.php' and '/admin/inc/include.php' are affected.

A demonstration exploit URL is provided:

http://[target]:32000/admin/inc/include.php?language=0&lang_settings[0][1]=c:\[file]%00

The 'language' parameter in '/mail/settings.html' is affected.

A demonstration exploit URL is provided:

http://[target]:32000/mail/index.html?id=[curent_id]&lang_settings[TEST]=test;
&lang_settings[TEST]=test;c:\[file]%00;

The vendor was notified on February 21, 2006.

Tan Chew Keong of Secunia Research discovered this vulnerability.

Impact:   A remote user may be able to execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
Solution:   No solution was available at the time of this entry.
Vendor URL:  www.icewarp.com/Products/IceWarp_Web_Mail/ (Links to External Site)
Cause:   Input validation error, State error
Underlying OS:  Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Secunia Research: IceWarp Web Mail Two File Inclusion

====================================================================== 

                     Secunia Research 17/07/2006

      - IceWarp Web Mail Two File Inclusion Vulnerabilities -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Description of Vulnerability.........................................3
Solution.............................................................4
Time Table...........................................................5
Credits..............................................................6
References...........................................................7
About Secunia........................................................8
Verification.........................................................9

====================================================================== 
1) Affected Software 

* Merak Mail Server version 8.3.8.r with IceWarp Web Mail 5.6.0.

Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Highly Critical
Impact: System access
        Exposure of sensitive information
Where:  Remote

====================================================================== 
3) Description of Vulnerability

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 compromise
a vulnerable system.

1) Input passed to the "language" and "lang_settings" parameters in
"/accounts/inc/include.php" and "/admin/inc/include.php" is not
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 further be 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"
is not properly validated before being saved to the database. This 
can be exploited in conjunction with overwrite of the "lang_settings"
variable, which is not 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

====================================================================== 
4) Solution 

Update to version 8.3.8.r with IceWarp Web Mail 5.6.1.

====================================================================== 
5) Time Table 

21/02/2006 - Initial vendor notification.
22/02/2006 - Initial vendor reply and fixed version released.
17/07/2006 - Public disclosure.

====================================================================== 
6) Credits 

Discovered by Tan Chew Keong, Secunia Research.

====================================================================== 
7) References

SA17046:
http://secunia.com/advisories/17046/

The Common Vulnerabilities and Exposures (CVE) project has assigned
CVE-2006-0817 (#1) and CVE-2006-0818 (#2) for the vulnerabilities.

====================================================================== 
8) About Secunia 

Secunia collects, validates, assesses, and writes advisories regarding 
all the latest software vulnerabilities disclosed to the public. These 
advisories are gathered in a publicly available database at the 
Secunia website: 

http://secunia.com/

Secunia offers services to our customers enabling them to receive all 
relevant vulnerability information to their specific system 
configuration. 

Secunia offers a FREE mailing list called Secunia Security Advisories: 

http://secunia.com/secunia_security_advisories/

====================================================================== 
9) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2006-12/advisory/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================



 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC