CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
SINGLE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:S/C:P/I:N/A:N
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
NONE
Availability Impact
NONE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
Percentile
79.1%
Plex Media Server is prone to an authentication bypass
vulnerability.
# Copyright (C) 2019 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:plex:plex_media_server";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.143159");
script_version("2023-01-23T10:11:56+0000");
script_tag(name:"last_modification", value:"2023-01-23 10:11:56 +0000 (Mon, 23 Jan 2023)");
script_tag(name:"creation_date", value:"2019-11-21 05:10:49 +0000 (Thu, 21 Nov 2019)");
script_tag(name:"cvss_base", value:"4.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:N/A:N");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2019-12-19 15:15:00 +0000 (Thu, 19 Dec 2019)");
script_cve_id("CVE-2018-21031");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"Workaround");
script_name("Plex Media Server Authentication Bypass Vulnerability (Aug 2018)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2019 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("gb_plex_media_server_http_detect.nasl", "gb_tautulli_detect.nasl");
script_require_ports("Services/www", 32400);
script_mandatory_keys("plex_media_server/http/detected", "tautulli/plex_token");
script_tag(name:"summary", value:"Plex Media Server is prone to an authentication bypass
vulnerability.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"The flaw exists because the X-Plex-Token is mishandled and can
be retrieved from a Tautulli component if no authentication is enabled there.");
script_tag(name:"impact", value:"The flaw allows an unauthenticated attacker to bypass an intended
access control and might allow to download various content from the Plex server.");
script_tag(name:"solution", value:"As a workaround enable authentication for Tautulli to prevent an
unauthenticated attacker to obtain the token.");
script_xref(name:"URL", value:"https://www.elladodelmal.com/2018/08/shodan-es-de-cine-hacking-tautulli-un.html");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if (!port = get_app_port(cpe: CPE, service: "www"))
exit(0);
if (!dir = get_app_location(cpe: CPE, port: port))
exit(0);
if (dir == "/")
dir = "";
if (!token = get_kb_item("tautulli/plex_token"))
exit(99);
url = dir + "/?X-Plex-Token=" + token;
if (http_vuln_check(port: port, url: url, pattern: "<MediaContainer", check_header: TRUE)) {
report = 'It was possible to access Plex at ' + http_report_vuln_url(port: port, url: url, url_only: TRUE) +
' with the obtained token "' + token + '" from Tautulli.';
security_message(port: port, data: report);
exit(0);
}
exit(99);
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
SINGLE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:S/C:P/I:N/A:N
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
NONE
Availability Impact
NONE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
Percentile
79.1%