Vulnerabilities > CVE-2020-11647 - Uncontrolled Recursion vulnerability in multiple products
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
NONE Integrity impact
NONE Availability impact
HIGH Summary
In Wireshark 3.2.0 to 3.2.2, 3.0.0 to 3.0.9, and 2.6.0 to 2.6.15, the BACapp dissector could crash. This was addressed in epan/dissectors/packet-bacapp.c by limiting the amount of recursion.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- XML Nested Payloads Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By nesting XML data and causing this data to be continuously self-referential, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization. An attacker's goal is to leverage parser failure to his or her advantage. In most cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it may be possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.230.1].
- XML Oversized Payloads Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By supplying oversized payloads in input vectors that will be processed by the XML parser, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization, and potentially cause execution of arbitrary code. An attacker's goal is to leverage parser failure to his or her advantage. In many cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it is possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.231.1].
- Violating Implicit Assumptions Regarding XML Content (aka XML Denial of Service (XDoS)) XML Denial of Service (XDoS) can be applied to any technology that utilizes XML data. This is, of course, most distributed systems technology including Java, .Net, databases, and so on. XDoS is most closely associated with web services, SOAP, and Rest, because remote service requesters can post malicious XML payloads to the service provider designed to exhaust the service provider's memory, CPU, and/or disk space. The main weakness in XDoS is that the service provider generally must inspect, parse, and validate the XML messages to determine routing, workflow, security considerations, and so on. It is exactly these inspection, parsing, and validation routines that XDoS targets. There are three primary attack vectors that XDoS can navigate Target CPU through recursion: attacker creates a recursive payload and sends to service provider Target memory through jumbo payloads: service provider uses DOM to parse XML. DOM creates in memory representation of XML document, but when document is very large (for example, north of 1 Gb) service provider host may exhaust memory trying to build memory objects. XML Ping of death: attack service provider with numerous small files that clog the system. All of the above attacks exploit the loosely coupled nature of web services, where the service provider has little to no control over the service requester and any messages the service requester sends.
- XML Parser Attack Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. These adverse effects may include the parser crashing, consuming too much of a resource, executing too slowly, executing code supplied by an attacker, allowing usage of unintended system functionality, etc. An attacker's goal is to leverage parser failure to his or her advantage. In some cases it may be possible to jump from the data plane to the control plane via bad data being passed to an XML parser. [R.99.1]
Nessus
NASL family Windows NASL id WIRESHARK_3_2_3.NASL description The version of Wireshark installed on the remote Windows host is 2.6.x prior to 2.6.16, 3.0.x prior to 3.0.10, or 3.2.x prior to 3.2.3. It is, therefore, affected by a vulnerability in the BACapp dissector where injecting a malformed packet onto the wire or by convincing someone to read a malformed packet trace file can crash Wireshark. Note that Nessus has not tested for this issue but has instead relied only on the application last seen 2020-05-31 modified 2020-04-21 plugin id 135857 published 2020-04-21 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/135857 title Wireshark 2.6.x < 2.6.16 / 3.0.x < 3.0.10 / 3.2.x < 3.2.3 BACapp Dissector DoS code # # (C) Tenable Network Security, Inc. # include('compat.inc'); if (description) { script_id(135857); script_version("1.4"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/29"); script_cve_id("CVE-2020-11647"); script_xref(name:"IAVB", value:"2020-B-0021-S"); script_name(english:"Wireshark 2.6.x < 2.6.16 / 3.0.x < 3.0.10 / 3.2.x < 3.2.3 BACapp Dissector DoS"); script_set_attribute(attribute:"synopsis", value: "An application installed on the remote Windows host is affected by a DoS vulnerability."); script_set_attribute(attribute:"description", value: "The version of Wireshark installed on the remote Windows host is 2.6.x prior to 2.6.16, 3.0.x prior to 3.0.10, or 3.2.x prior to 3.2.3. It is, therefore, affected by a vulnerability in the BACapp dissector where injecting a malformed packet onto the wire or by convincing someone to read a malformed packet trace file can crash Wireshark. Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number."); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-3.2.3.html"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-3.0.10.html"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-2.6.16.html"); script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16474"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2020-07"); script_set_attribute(attribute:"solution", value: "Upgrade to Wireshark version 2.6.16 / 3.0.10 / 3.2.2 or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-11647"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"vuln_publication_date", value:"2020/04/08"); script_set_attribute(attribute:"patch_publication_date", value:"2020/04/08"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/04/21"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:wireshark:wireshark"); 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) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("wireshark_installed.nasl"); script_require_keys("installed_sw/Wireshark", "SMB/Registry/Enumerated"); exit(0); } include('vcf.inc'); get_kb_item_or_exit('SMB/Registry/Enumerated'); app_info = vcf::get_app_info(app:'Wireshark', win_local:TRUE); constraints = [ { 'min_version' : '2.6.0', 'max_version' : '2.6.15', 'fixed_version' : '2.6.16' }, { 'min_version' : '3.0.0', 'max_version' : '3.0.9', 'fixed_version' : '3.0.10' }, { 'min_version' : '3.2.0', 'max_version' : '3.2.2', 'fixed_version' : '3.2.3' } ]; vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);
NASL family MacOS X Local Security Checks NASL id MACOSX_WIRESHARK_3_2_3.NASL description The version of Wireshark installed on the remote macOS / Mac OS X host is 2.6.x prior to 2.6.16, 3.0.x prior to 3.0.10, or 3.2.x prior to 3.2.3. It is, therefore, affected by a vulnerability in the BACapp dissector where injecting a malformed packet onto the wire or by convincing someone to read a malformed packet trace file can crash Wireshark. Note that Nessus has not tested for this issue but has instead relied only on the application last seen 2020-05-31 modified 2020-04-21 plugin id 135856 published 2020-04-21 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/135856 title Wireshark 2.6.x < 2.6.16 / 3.0.x < 3.0.10 / 3.2.x < 3.2.3 BACapp Dissector DoS (macOS) code # # (C) Tenable Network Security, Inc. # include('compat.inc'); if (description) { script_id(135856); script_version("1.4"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/29"); script_cve_id("CVE-2020-11647"); script_xref(name:"IAVB", value:"2020-B-0021-S"); script_name(english:"Wireshark 2.6.x < 2.6.16 / 3.0.x < 3.0.10 / 3.2.x < 3.2.3 BACapp Dissector DoS (macOS)"); script_set_attribute(attribute:"synopsis", value: "An application installed on the remote macOS / Mac OS X host is affected by a DoS vulnerability."); script_set_attribute(attribute:"description", value: "The version of Wireshark installed on the remote macOS / Mac OS X host is 2.6.x prior to 2.6.16, 3.0.x prior to 3.0.10, or 3.2.x prior to 3.2.3. It is, therefore, affected by a vulnerability in the BACapp dissector where injecting a malformed packet onto the wire or by convincing someone to read a malformed packet trace file can crash Wireshark. Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number."); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-3.2.3.html"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-3.0.10.html"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/docs/relnotes/wireshark-2.6.16.html"); script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16474"); script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2020-07"); script_set_attribute(attribute:"solution", value: "Upgrade to Wireshark version 2.6.16 / 3.0.10 / 3.2.2 or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-11647"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"vuln_publication_date", value:"2020/04/08"); script_set_attribute(attribute:"patch_publication_date", value:"2020/04/08"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/04/21"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:wireshark:wireshark"); script_set_attribute(attribute:"stig_severity", value:"I"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"MacOS X Local Security Checks"); script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("macosx_wireshark_installed.nbin"); script_require_keys("installed_sw/Wireshark", "Host/MacOSX/Version", "Host/local_checks_enabled"); exit(0); } include('vcf.inc'); app_info = vcf::get_app_info(app:'Wireshark'); constraints = [ { 'min_version' : '2.6.0', 'max_version' : '2.6.15', 'fixed_version' : '2.6.16' }, { 'min_version' : '3.0.0', 'max_version' : '3.0.9', 'fixed_version' : '3.0.10' }, { 'min_version' : '3.2.0', 'max_version' : '3.2.2', 'fixed_version' : '3.2.3' } ]; vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);
References
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00026.html
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00038.html
- https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16474
- https://code.wireshark.org/review/gitweb?p=wireshark.git%3Ba=commit%3Bh=6f56fc9496db158218243ea87e3660c874a0bab0
- https://lists.debian.org/debian-lts-announce/2021/02/msg00008.html
- https://security.gentoo.org/glsa/202007-13
- https://www.wireshark.org/security/wnpa-sec-2020-07.html
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00026.html
- https://www.wireshark.org/security/wnpa-sec-2020-07.html
- https://security.gentoo.org/glsa/202007-13
- https://lists.debian.org/debian-lts-announce/2021/02/msg00008.html
- https://code.wireshark.org/review/gitweb?p=wireshark.git%3Ba=commit%3Bh=6f56fc9496db158218243ea87e3660c874a0bab0
- https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16474
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00038.html