TeamViewer is prone to an authentication bypass vulnerability.
# Copyright (C) 2018 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 = "cpe:/a:teamviewer:teamviewer";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.813899");
script_version("2021-10-12T08:19:03+0000");
script_cve_id("CVE-2018-16550");
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:"last_modification", value:"2021-10-12 08:19:03 +0000 (Tue, 12 Oct 2021)");
script_tag(name:"severity_vector", value:"CVSS:3.0/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:"2019-10-03 00:03:00 +0000 (Thu, 03 Oct 2019)");
script_tag(name:"creation_date", value:"2018-09-07 13:42:31 +0530 (Fri, 07 Sep 2018)");
script_name("TeamViewer Authentication Bypass Vulnerability (Sep 2018) - Linux");
script_tag(name:"summary", value:"TeamViewer is prone to an authentication bypass vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The flaw is due to an improper brute-force authentication
protection mechanism.");
script_tag(name:"impact", value:"Successful exploitation would allow attackers to bypass the
authentication protection mechanism and determine the correct value of the default 4-digit PIN.");
script_tag(name:"affected", value:"TeamViewer versions 10.x through 13.x.");
script_tag(name:"solution", value:"TeamViewer has changed the default password strength from 4
digits to 6 characters. Update to TeamViewer version 10.0.140685, 11.0.137769, 12.1.83885,
13.2.75536 or later.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"executable_version");
script_xref(name:"URL", value:"https://community.teamviewer.com/t5/Announcements/Statement-on-recent-brute-force-research-CVE-2018-16550/m-p/43215");
script_copyright("Copyright (C) 2018 Greenbone Networks GmbH");
script_category(ACT_GATHER_INFO);
script_family("General");
script_dependencies("gb_teamviewer_detect_lin.nasl");
script_mandatory_keys("TeamViewer/Linux/Ver");
exit(0);
}
include( "host_details.inc" );
include( "version_func.inc" );
if( ! infos = get_app_version_and_location(cpe:CPE, exit_no_version:TRUE ) )
exit( 0 );
version = infos["version"];
location = infos["location"];
if( version =~ "^10\.0" && version_is_less( version:version, test_version:"10.0.140685" ) ) {
report = report_fixed_ver( installed_version:version, fixed_version:"10.0.140685", install_path:location );
security_message( data:report, port:0 );
exit( 0 );
}
else if( version =~ "^11\.0" && version_is_less( version:version, test_version:"11.0.137769" ) ) {
report = report_fixed_ver( installed_version:version, fixed_version:"11.0.137769", install_path:location );
security_message( data:report, port:0 );
exit( 0 );
}
else if( version =~ "^12\.[01]" && version_is_less( version:version, test_version:"12.1.83885" ) ) {
report = report_fixed_ver( installed_version:version, fixed_version:"12.1.83885", install_path:location );
security_message( data:report, port:0 );
exit( 0 );
}
else if( version =~ "^13\.[0-2]" && version_is_less( version:version, test_version:"13.2.75536" ) ) {
report = report_fixed_ver( installed_version:version, fixed_version:"13.2.75536", install_path:location );
security_message( data:report, port:0 );
exit( 0 );
}
exit( 99 );