Secunia Logo  
 
VisNetic Mail Server Two File Inclusion Vulnerabilities
Secunia Advisory: SA18966
Release Date: 2006-07-17
Popularity: 4,978 views

Critical:
Highly critical
Impact: Exposure of sensitive information
System access
Where: From remote
Solution Status: Vendor Patch

Software:VisNetic 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 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 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 #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

The vulnerabilities have been confirmed in version 8.3.5. Prior versions may also be affected.

Solution:
Update to version 8.5.0.5.

Provided and/or discovered by:
Tan Chew Keong, Secunia Research.

Original Advisory:
Secunia Research:
http://secunia.com/secunia_research/2006-14/advisory/

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


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.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 145 views
2. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 118 views
3. Red Hat update for xterm // 99 views
4. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 90 views
5. Red Hat update for dbus // 89 views
6. Red Hat update for openssl // 88 views
7. Symantec Mail Security for SMTP Response Handling Denial of Service // 75 views
8. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 60 views
9. HP OpenView Network Node Manager Multiple Vulnerabilities // 54 views
10. PollHelper "poll.inc" Information Disclosure Security Issue // 54 views