The remote Sendmail server, according to its version number,
allows local users to gain root access via a large value in the debug (-d) command line option.
# SPDX-FileCopyrightText: 2003 Xue Yong Zhi
# 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:sendmail:sendmail";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.11348");
script_version("2024-01-10T05:05:17+0000");
script_tag(name:"last_modification", value:"2024-01-10 05:05:17 +0000 (Wed, 10 Jan 2024)");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_tag(name:"cvss_base", value:"7.2");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-1999-1309");
script_name("Sendmail 8.x < 8.6.7 Long Debug Local Overflow Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2003 Xue Yong Zhi");
script_family("SMTP problems");
script_dependencies("gb_sendmail_smtp_detect.nasl");
script_mandatory_keys("sendmail/detected");
script_xref(name:"URL", value:"https://web.archive.org/web/20140115050640/http://www.cert.org/advisories/CA-94.12.sendmail.vulnerabilities");
script_tag(name:"summary", value:"The remote Sendmail server, according to its version number,
allows local users to gain root access via a large value in the debug (-d) command line option.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"affected", value:"Sendmail versions 8.x prior to 8.6.7.");
script_tag(name:"solution", value:"Update to version 8.6.7 or later, or install a vendor supplied
patch.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if(!port = get_app_port(cpe:CPE))
exit(0);
if(!vers = get_app_version(cpe:CPE, port:port))
exit(0);
if(version_in_range(version:vers, test_version:"8.0", test_version2:"8.6.7")) {
report = report_fixed_ver(installed_version:vers, fixed_version:"8.6.7");
security_message(port:port, data:report);
exit(0);
}
exit(99);