Lucene search

K
nessusThis script is Copyright (C) 2021-2023 and is owned by Tenable, Inc. or an Affiliate thereof.HP_LASERJET_CVE-2021-3438_LOCAL_WIN.NASL
HistoryJul 30, 2021 - 12:00 a.m.

HP, Samsung, and Xerox Printer Driver Privilege Escalation (CVE-2021-3438)

2021-07-3000:00:00
This script is Copyright (C) 2021-2023 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
409

The printer driver installed on the remote host is missing a security update. It is, therefore, affected by a privilege escalation vulnerability. An authenticated, local attacker can exploit this to gain privileged or administrator access to the system.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(152164);
  script_version("1.3");
  script_set_attribute(attribute:"plugin_modification_date", value:"2023/01/26");

  script_cve_id("CVE-2021-3438");
  script_xref(name:"IAVA", value:"2021-A-0358");

  script_name(english:"HP, Samsung, and Xerox Printer Driver Privilege Escalation (CVE-2021-3438)");

  script_set_attribute(attribute:"synopsis", value:
"The printer driver installed on the remote host is vulnerable to a privilege escalation.");
  script_set_attribute(attribute:"description", value:
"The printer driver installed on the remote host is missing a security update. It is, therefore, affected by a
privilege escalation vulnerability. An authenticated, local attacker can exploit this to gain privileged or
administrator access to the system.");
  script_set_attribute(attribute:"see_also", value:"https://support.hp.com/us-en/document/ish_3900395-3833905-16");
  # https://securitydocs.business.xerox.com/wp-content/uploads/2021/05/cert_Security_Mini_Bulletin_XRX21K_for_B2XX_PH30xx_3260_3320_WC3025_32xx_33xx.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b05aade5");
  script_set_attribute(attribute:"solution", value:
"HP has released a set of patches. See vendor advisory.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-3438");

  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:"vuln_publication_date", value:"2021/05/19");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/05/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/07/30");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2021-2023 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445);

  exit(0);
}
include('smb_hotfixes_fcheck.inc');
include('smb_hotfixes.inc');
include('smb_func.inc');

get_kb_item_or_exit('SMB/MS_Bulletin_Checks/Possible');

get_kb_item_or_exit('SMB/Registry/Enumerated');

var share = hotfix_get_systemdrive(as_share:TRUE, exit_on_fail:TRUE);
if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);

if (
  hotfix_is_vulnerable(file:'ssport.sys', version:'1.0.0.1', dir:'\\system32\\drivers')
)
{
  hotfix_security_warning();
  hotfix_check_fversion_end();
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, hotfix_get_audit_report());
}