WordPress versions 6.0 < 6.5.2 are affected by one or more vulnerabilities
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
# The descriptive text and package checks in this plugin were
# extracted from WordPress Security Advisory wordpress-6-5-2-maintenance-and-security-release.
include('compat.inc');
if (description)
{
script_id(193107);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/06");
script_name(english:"WordPress 6.0 < 6.5.2");
script_xref(name:"IAVA", value:"2024-A-0320");
script_set_attribute(attribute:"synopsis", value:
"A PHP application running on the remote web server is affected by one or more vulnerabilities.");
script_set_attribute(attribute:"description", value:
"WordPress versions 6.0 < 6.5.2 are affected by one or more vulnerabilities");
script_set_attribute(attribute:"see_also", value:"https://wordpress.org/download/releases/");
# https://wordpress.org/news/2024/04/wordpress-6-5-2-maintenance-and-security-release/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?03390d91");
script_set_attribute(attribute:"solution", value:
"Upgrade to WordPress version 6.5.2 or later.");
script_set_attribute(attribute:"risk_factor", value:"High");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date", value:"2024/04/09");
script_set_attribute(attribute:"patch_publication_date", value:"2024/04/09");
script_set_attribute(attribute:"plugin_publication_date", value:"2024/04/09");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:wordpress:wordpress");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
script_set_attribute(attribute:"stig_severity", value:"I");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("wordpress_detect.nasl");
script_require_keys("www/PHP", "installed_sw/WordPress", "Settings/ParanoidReport");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80, 443);
exit(0);
}
include('vcf.inc');
include('http.inc');
var app = 'WordPress';
get_install_count(app_name:app, exit_if_zero:TRUE);
if (report_paranoia < 2) audit(AUDIT_PARANOID);
var port = get_http_port(default:80, php:TRUE);
var app_info = vcf::get_app_info(app:'WordPress', port:port, webapp:TRUE);
var constraints = [
{ 'min_version' : '6.0', 'fixed_version' : '6.5.2' }
];
vcf::check_version_and_report(
app_info:app_info,
constraints:constraints,
severity:SECURITY_HOLE
);