Lucene search
+L

IMC SMTP EHLO Buffer Overrun

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2002 SECNAP Network Security, LLCType 
openvas
 openvas
🔗 plugins.openvas.org👁 39 Views

IMC SMTP EHLO Buffer Overrun. Unchecked buffer in IMC code for EHLO protocol command may allow remote code execution

Related
Refs
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Microsoft Exchange IMC SMTP EHLO Hostname Overflow
18 Aug 200400:00
nessus
nessus
Tenable Nessus
MS02-037: Microsoft Exchange EHLO Long Hostname Overflow
29 Jul 200200:00
nessus
cve
CVE
CVE-2002-0698
2 Apr 200305:00
cve
cvelist
Cvelist
CVE-2002-0698
2 Apr 200305:00
cvelist
nvd
NVD
CVE-2002-0698
12 Aug 200204:00
nvd
openvas
OpenVAS
IMC SMTP EHLO Buffer Overrun
3 Nov 200500:00
openvas
# SPDX-FileCopyrightText: 2002 SECNAP Network Security, LLC
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:microsoft:exchange_server";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11053");
  script_version("2023-10-31T05:06:37+0000");
  script_tag(name:"last_modification", value:"2023-10-31 05:06:37 +0000 (Tue, 31 Oct 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2002-0698");
  script_name("IMC SMTP EHLO Buffer Overrun");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2002 SECNAP Network Security, LLC");
  script_family("SMTP problems");
  script_dependencies("sw_ms_exchange_server_remote_detect.nasl", "check_smtp_helo.nasl");
  script_mandatory_keys("microsoft/exchange_server/smtp/detected");

  script_xref(name:"URL", value:"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2002/ms02-037");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/5306");

  script_tag(name:"solution", value:"The vendor has released updates. Please see thee references
  for more information.");

  script_tag(name:"summary", value:"A security vulnerability results because of an unchecked buffer
  in the IMC code that generates the response to the EHLO protocol command.");

  script_tag(name:"impact", value:"If the buffer were overrun with data it would result in either the
  failure of the IMC or could allow the attacker to run code in the security context of the IMC,
  which runs as Exchange5.5 Service Account.");

  script_tag(name:"qod_type", value:"remote_banner");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("smtp_func.inc");
include("host_details.inc");
include("misc_func.inc");

if(!port = get_app_port(cpe:CPE, service:"smtp"))
  exit(0);

if(!get_app_location(cpe:CPE, port:port, nofork:TRUE))
  exit(0);

banner = smtp_get_banner(port:port);
if(!banner || !egrep(pattern:"^220.*Microsoft Exchange Internet.*", string:banner))
  exit(0);

# needs to be 5.5.2656.59 or GREATER.

#this good:
#220 proliant.fdma.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2656.59) ready

#this old:
#220 proliant.fdma.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready

if(egrep(string:banner, pattern:"Service.5\.[6-9]"))
  exit(99);

if(egrep(string:banner, pattern:"Service.5\.5\.[3-9]"))
  exit(99);

if(egrep(string:banner, pattern:"Service.5\.5\.2[7-9]"))
  exit(99);

if(egrep(string:banner, pattern:"Service.5\.5\.26[6-9]"))
  exit(99);

if(egrep(string:banner, pattern:"Service.5\.5\.265[6-9]"))
  exit(99);

security_message(port:port);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation