CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AI Score
Confidence
High
EPSS
Percentile
78.7%
The initial admin account setup wizard on Lexmark devices allow
unauthenticated access to the
# Copyright (C) 2022 Greenbone Networks GmbH
# 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-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
CPE_PREFIX = "cpe:/o:lexmark:";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.147499");
script_version("2022-03-18T09:24:35+0000");
script_tag(name:"last_modification", value:"2022-03-18 09:24:35 +0000 (Fri, 18 Mar 2022)");
script_tag(name:"creation_date", value:"2022-01-24 06:49:10 +0000 (Mon, 24 Jan 2022)");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2022-03-17 16:26:00 +0000 (Thu, 17 Mar 2022)");
script_cve_id("CVE-2021-44736");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"Workaround");
script_name("Lexmark Printer Configuration Wipe Vulnerability (Jan 2022)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2022 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("gb_lexmark_printer_consolidation.nasl");
script_mandatory_keys("lexmark_printer/http/detected");
script_require_ports("Services/www", 80);
script_tag(name:"summary", value:"The initial admin account setup wizard on Lexmark devices allow
unauthenticated access to the 'out of service erase' feature.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"The initial setup menus on many Lexmark devices do not restrict
access to the 'out of service erase' feature. This allows an unauthenticated attacker to wipe the
configuration of the device.");
script_tag(name:"impact", value:"An unauthenticated attacker may wipe the configuration of the
device.");
script_tag(name:"solution", value:"See the referenced vendor advisory for a workaround.");
script_xref(name:"URL", value:"https://publications.lexmark.com/publications/security-alerts/CVE-2021-44736.pdf");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if (!infos = get_app_port_from_cpe_prefix(cpe: CPE_PREFIX, default: 80, service: "www"))
exit(0);
port = infos["port"];
cpe = infos["cpe"];
if (!get_app_location(cpe: cpe, port: port, nofork: TRUE))
exit(0);
url = "/cgi-bin/dynamic/printer/config/secure/memwipe.html?lang=0";
if (http_vuln_check(port: port, url: url, pattern: "This operation will clear all settings, solutions, and jobs",
check_header: TRUE, cookie: "lexlang=0")) {
report = http_report_vuln_url(port: port, url: url);
security_message(port: port, data: report);
exit(0);
}
url = "/webglue/content?depth=0&c=/Settings/Device/Maintenance&lang=en";
if (http_vuln_check(port: port, url: url, pattern: "Erase all printer and network settings",
check_header: TRUE)) {
report = http_report_vuln_url(port: port, url: url);
security_message(port: port, data: report);
exit(0);
}
exit(0);
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AI Score
Confidence
High
EPSS
Percentile
78.7%