SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow - Nessus

Critical   Plugin ID: 33104

This page contains detailed information about the SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 33104
Name: SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow
Filename: securitygateway_1_0_2.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-06-06
Last Modification Time: 2018-08-22
Plugin Version: 1.15
Plugin Type: remote
Plugin Family: Firewalls
Dependencies: http_version.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2008-4193
CPE [?]: N/A

Synopsis

The remote web server is affected by a buffer overflow vulnerability.

Description

The remote host is running Alt-N's SecurityGateway for Exchange/SMTP, an email spam firewall for Exchange and SMTP servers.

The version of SecurityGateway installed on the remote host is earlier than 1.0.2. Such versions are reportedly affected by a buffer overflow that can be triggered using a long 'username' parameter to the 'SecurityGateway.dll' script to execute arbitrary code on the remote host with SYSTEM-level privileges, potentially resulting in a complete compromise of the affected host.

Solution

Upgrade to SecurityGateway 1.0.2 or later.

Public Exploits


Target Network Port(s): 4000, 4443
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/http/altn_securitygateway
    [Alt-N SecurityGateway username Buffer Overflow]
  2. Exploit-DB: exploits/windows/dos/5718.pl
    [EDB-5718: Alt-N SecurityGateway 1.0.1 - 'Username' Remote Buffer Overflow (PoC)]
  3. Exploit-DB: exploits/windows/remote/16803.rb
    [EDB-16803: Alt-N SecurityGateway 1.0.1 - 'Username' Remote Buffer Overflow (Metasploit)]
  4. Immunity Canvas: CANVAS

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:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the securitygateway_1_0_2.nasl nessus plugin source code. This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(33104);
  script_version("1.15");

  script_cve_id("CVE-2008-4193");
  script_bugtraq_id(29457);
  script_xref(name:"EDB-ID", value:"5718");
  script_xref(name:"Secunia", value:"30497");

  script_name(english:"SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow");
  script_summary(english:"Grabs version from the Server response header");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by a buffer overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote host is running Alt-N's SecurityGateway for Exchange/SMTP,
an email spam firewall for Exchange and SMTP servers. 

The version of SecurityGateway installed on the remote host is earlier
than 1.0.2.  Such versions are reportedly affected by a buffer
overflow that can be triggered using a long 'username' parameter to
the 'SecurityGateway.dll' script to execute arbitrary code on the
remote host with SYSTEM-level privileges, potentially resulting in a
complete compromise of the affected host." );
 script_set_attribute(attribute:"see_also", value:"http://files.altn.com/SecurityGateway/Release/relnotes_en.htm" );
 script_set_attribute(attribute:"see_also", value:"http://lists.altn.com/WebX/[email protected]@" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to SecurityGateway 1.0.2 or later." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"exploit_framework_core", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'Alt-N SecurityGateway username Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
 script_set_attribute(attribute:"canvas_package", value:'CANVAS');
 script_cwe_id(119);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/06/06");
 script_cvs_date("Date: 2018/08/22 16:49:14");
 script_set_attribute(attribute:"plugin_type", value: "remote");
 script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Firewalls");
  script_copyright(english:"This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 4000, 4443);

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:4000, embedded: 1);

# Check the version in the banner.
banner = get_http_banner(port:port, exit_on_fail: 1);

banner = strstr(banner, "Server:");
banner = banner - strstr(banner, '\r\n');
if ("ALT-N SecurityGateway " >< banner)
{
  version = strstr(banner, "ALT-N SecurityGateway ") - "ALT-N SecurityGateway ";
  if (version =~ "^(0\.|1\.0\.[01]($|[^0-9]))")
  {
    if (report_verbosity)
    {
      report = string(
        "\n",
        "SecurityGateway version ", version, " appears to be installed on the\n",
        "remote host.\n"
      );
      security_hole(port:port, extra:report);
    }
    else security_hole(port);
  }
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/securitygateway_1_0_2.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\securitygateway_1_0_2.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/securitygateway_1_0_2.nasl

Go back to menu.

How to Run


Here is how to run the SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Firewalls plugin family.
  6. On the right side table select SecurityGateway < 1.0.2 Administration Interface username Field Remote Overflow plugin ID 33104.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. 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 securitygateway_1_0_2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a securitygateway_1_0_2.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - securitygateway_1_0_2.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 securitygateway_1_0_2.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 104998 - Check Point Gaia Operating Remote Heap Buffer Overflow (sk104443)(GHOST)
  • 125886 - Fortinet FortiOS <= 5.4, 5.6.x < 5.6.8, 6.0.x < 6.0.5 SSL VPN Buffer Overflow (FG-IR-18-387)
  • 125887 - Fortinet FortiOS < 5.6.11, 6.0.x < 6.0.5 SSL VPN Heap Buffer Overflow (FG-IR-18-388)
  • 11575 - Kerio Personal Firewall Administrator Authentication Handshake Packet Remote Buffer Overflow
  • 141474 - SonicWall SonicOS Buffer Overflow Vulnerability
  • 12294 - Squid ntlm_check_auth Function NTLM Authentication Helper Password Handling Remote Overflow

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file securitygateway_1_0_2.nasl version 1.15. For more plugins, visit the Nessus Plugin Library.

Go back to menu.