Lucene search

K
openvasCopyright (C) 2021 Greenbone AGOPENVAS:1361412562310146187
HistoryJun 29, 2021 - 12:00 a.m.

WordPress All in One SEO Pack Plugin < 4.1.0.2 RCE Vulnerability

2021-06-2900:00:00
Copyright (C) 2021 Greenbone AG
plugins.openvas.org
1

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

8.9 High

AI Score

Confidence

High

9 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

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

0.001 Low

EPSS

Percentile

38.8%

The WordPress plugin

# SPDX-FileCopyrightText: 2021 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-or-later

CPE = "cpe:/a:aioseo:all_in_one_seo";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.146187");
  script_version("2023-05-25T09:08:46+0000");
  script_tag(name:"last_modification", value:"2023-05-25 09:08:46 +0000 (Thu, 25 May 2023)");
  script_tag(name:"creation_date", value:"2021-06-29 08:01:57 +0000 (Tue, 29 Jun 2021)");
  script_tag(name:"cvss_base", value:"9.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2021-05-28 14:56:00 +0000 (Fri, 28 May 2021)");

  script_cve_id("CVE-2021-24307");

  script_tag(name:"qod_type", value:"remote_banner");

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

  script_name("WordPress All in One SEO Pack Plugin < 4.1.0.2 RCE Vulnerability");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2021 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_wordpress_plugin_http_detect.nasl");
  script_mandatory_keys("wordpress/plugin/all-in-one-seo-pack/detected");

  script_tag(name:"summary", value:"The WordPress plugin 'All in One SEO Pack' is prone to a remote
  code execution (RCE) vulnerability.");

  script_tag(name:"insight", value:"The All in One SEO - Best WordPress SEO Plugin enables
  authenticated users with 'aioseo_tools_settings' privilege (most of the time admin) to execute
  arbitrary code on the underlying host. Users can restore plugin's configuration by uploading a
  backup .ini file in the section 'Tool > Import/Export'. However, the plugin attempts to
  unserialize values of the .ini file. Moreover, the plugin embeds Monolog library which can be
  used to craft a gadget chain and thus trigger system command execution.");

  script_tag(name:"impact", value:"An authenticated attacker might execute arbitrary code.");

  script_tag(name:"affected", value:"WordPress All in One SEO Pack plugin prior to version 4.1.0.2.");

  script_tag(name:"solution", value:"Update to version 4.1.0.2 or later.");

  script_xref(name:"URL", value:"https://wordpress.org/plugins/all-in-one-seo-pack/#developers");
  script_xref(name:"URL", value:"https://wpscan.com/vulnerability/ab2c94d2-f6c4-418b-bd14-711ed164bcf1");

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if (!port = get_app_port(cpe: CPE))
  exit(0);

if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: FALSE))
  exit(0);

version = infos["version"];
location = infos["location"];

# nb: All versions before 2.2.7.3 had "Stable tag: trunk".
# In case the plugin has been located, it can still be reported as vulnerable
if (location && !version) {
  report = report_fixed_ver(installed_version: "< 2.2.7.3", fixed_version: "4.1.0.2", install_path: location);
  security_message(port: port, data: report);
  exit(0);
} else if (version_is_less(version: version, test_version: "4.1.0.2")) {
  report = report_fixed_ver(installed_version: version, fixed_version: "4.1.0.2", install_path: location);
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

8.9 High

AI Score

Confidence

High

9 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

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

0.001 Low

EPSS

Percentile

38.8%

Related for OPENVAS:1361412562310146187