An issue was discovered in OpenSSH 7.9. Due to missing character encoding in the progress display, a malicious server (or Man-in-The- Middle attacker) can employ crafted object names to manipulate the client output, e.g., by using ANSI control codes to hide additional files being transferred. This affects refresh_progress_meter() in progressmeter.c.
This plugin only works with Tenable.ot. Please visit https://www.tenable.com/products/tenable-ot for more information.
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(500841);
script_version("1.5");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/01/04");
script_cve_id("CVE-2019-6109");
script_xref(name:"USN", value:"USN-3885-1");
script_xref(name:"DSA", value:"DSA-4387");
script_xref(name:"GLSA", value:"GLSA-201903-16");
script_xref(name:"FEDORA", value:"FEDORA-2019-0f4190cdb0");
script_xref(name:"SuSE", value:"openSUSE-SU-2019:1602");
script_xref(name:"RHSA", value:"RHSA-2019:3702");
script_name(english:"Siemens SCALANCE X-200RNA Switch Devices Improper Encoding or Escaping of Output (CVE-2019-6109)");
script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
script_set_attribute(attribute:"description", value:
"An issue was discovered in OpenSSH 7.9. Due to missing character encoding in the progress display, a malicious server
(or Man-in-The- Middle attacker) can employ crafted object names to manipulate the client output, e.g., by using ANSI
control codes to hide additional files being transferred. This affects refresh_progress_meter() in progressmeter.c.
- An issue was discovered in OpenSSH 7.9. Due to missing character encoding in the progress display, a
malicious server (or Man-in-The-Middle attacker) can employ crafted object names to manipulate the client
output, e.g., by using ANSI control codes to hide additional files being transferred. This affects
refresh_progress_meter() in progressmeter.c. (CVE-2019-6109)
This plugin only works with Tenable.ot. Please visit https://www.tenable.com/products/tenable-ot for more information.");
script_set_attribute(attribute:"see_also", value:"https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt");
script_set_attribute(attribute:"see_also", value:"https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c");
script_set_attribute(attribute:"see_also", value:"https://cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c");
script_set_attribute(attribute:"see_also", value:"https://usn.ubuntu.com/3885-1/");
script_set_attribute(attribute:"see_also", value:"https://www.debian.org/security/2019/dsa-4387");
script_set_attribute(attribute:"see_also", value:"https://security.netapp.com/advisory/ntap-20190213-0001/");
script_set_attribute(attribute:"see_also", value:"https://security.gentoo.org/glsa/201903-16");
script_set_attribute(attribute:"see_also", value:"https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html");
# https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e31ba540");
# https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b370bc74");
script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/errata/RHSA-2019:3702");
script_set_attribute(attribute:"see_also", value:"https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf");
script_set_attribute(attribute:"solution", value:
"Refer to the vendor advisory.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:N");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-6109");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_cwe_id(116);
script_set_attribute(attribute:"vuln_publication_date", value:"2019/01/31");
script_set_attribute(attribute:"patch_publication_date", value:"2019/01/31");
script_set_attribute(attribute:"plugin_publication_date", value:"2023/02/23");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:scalance_x204rna_eec_firmware");
script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:scalance_x204rna_firmware");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Tenable.ot");
script_copyright(english:"This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("tenable_ot_api_integration.nasl");
script_require_keys("Tenable.ot/Siemens");
exit(0);
}
include('tenable_ot_cve_funcs.inc');
get_kb_item_or_exit('Tenable.ot/Siemens');
var asset = tenable_ot::assets::get(vendor:'Siemens');
var vuln_cpes = {
"cpe:/o:siemens:scalance_x204rna_firmware" :
{"versionEndExcluding" : "3.2.7", "family" : "SCALANCEX200"},
"cpe:/o:siemens:scalance_x204rna_eec_firmware" :
{"versionEndExcluding" : "3.2.7", "family" : "SCALANCEX200"}
};
tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_WARNING);
Vendor | Product | Version | CPE |
---|---|---|---|
siemens | scalance_x204rna_eec_firmware | cpe:/o:siemens:scalance_x204rna_eec_firmware | |
siemens | scalance_x204rna_firmware | cpe:/o:siemens:scalance_x204rna_firmware |
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6109
www.nessus.org/u?b370bc74
www.nessus.org/u?e31ba540
access.redhat.com/errata/RHSA-2019:3702
cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
cvsweb.openbsd.org/src/usr.bin/ssh/progressmeter.c
cvsweb.openbsd.org/src/usr.bin/ssh/scp.c
lists.debian.org/debian-lts-announce/2019/03/msg00030.html
security.gentoo.org/glsa/201903-16
security.netapp.com/advisory/ntap-20190213-0001/
sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
usn.ubuntu.com/3885-1/
www.debian.org/security/2019/dsa-4387