Drupal Coder RCE Vulnerability (SA-CONTRIB-2016-039) - Active Check
🗓️ 20 Jul 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType
openvas🔗 plugins.openvas.org👁 62 Views
| Source | Link |
|---|---|
| drupal | www.drupal.org/node/2765575 |
# SPDX-FileCopyrightText: 2016 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:drupal:drupal";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.105818");
script_version("2023-07-21T05:05:22+0000");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_name("Drupal Coder RCE Vulnerability (SA-CONTRIB-2016-039) - Active Check");
script_tag(name:"vuldetect", value:"Checks for known error message from affected modules.");
script_tag(name:"insight", value:"The Coder module checks your Drupal code against coding
standards and other best practices. It can also fix coding standard violations and perform basic
upgrades on modules. The module doesn't sufficiently validate user inputs in a script file that
has the php extension. A malicious unauthenticated user can make requests directly to this file to
execute arbitrary php code.");
script_tag(name:"summary", value:"Drupal is prone to a remote code execution (RCE)
vulnerability.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Install the latest version.");
script_xref(name:"URL", value:"https://www.drupal.org/node/2765575");
script_tag(name:"qod_type", value:"remote_active");
script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
script_tag(name:"creation_date", value:"2016-07-20 12:15:23 +0200 (Wed, 20 Jul 2016)");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2016 Greenbone AG");
script_dependencies("gb_drupal_http_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("drupal/http/detected");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.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 + "/sites/all/modules/coder/coder_upgrade/scripts/coder_upgrade.run.php";
req = http_get( item:url, port:port );
buf = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
# Patched version has the following code at the beginning of the file
#
# if (!script_is_cli()) {
# // Without proper web server configuration, this script can be invoked from a
# // browser and is vulnerable to misuse.
# return;
#
# If we see the "file parameter is not set/No path to parameter file" message, file is not patched and vulnerable
if( "file parameter is not set" >< buf || "No path to parameter file" >< buf ) {
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
21 Jul 2023 00:00Current
8.2High risk
Vulners AI Score8.2