PHP Security Bypass and File Writing Vulnerabilities (Dec 2008)
🗓️ 26 Dec 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType
openvas🔗 plugins.openvas.org👁 40 Views
| Reporter | Title | Published | Views | Family All 86 |
|---|---|---|---|---|
| PHP 5.x < 5.2.7 Multiple Vulnerabilities | 17 Nov 201400:00 | – | nessus | |
| Debian DSA-1789-1 : php5 - several vulnerabilities | 6 May 200900:00 | – | nessus | |
| Debian DSA-1940-1 : php5 - multiple issues | 24 Feb 201000:00 | – | nessus | |
| Fedora 10 : maniadrive-1.2-13.fc10 / php-5.2.9-2.fc10 (2009-3768) | 1 Jun 200900:00 | – | nessus | |
| Fedora 9 : maniadrive-1.2-13.fc9 / php-5.2.9-2.fc9 (2009-3848) | 1 Jun 200900:00 | – | nessus | |
| GLSA-201001-03 : PHP: Multiple vulnerabilities | 25 Feb 201000:00 | – | nessus | |
| Mandriva Linux Security Advisory : php (MDVSA-2009:045) | 23 Apr 200900:00 | – | nessus | |
| PHP 5 < 5.2.7 Multiple Vulnerabilities | 5 Dec 200800:00 | – | nessus | |
| openSUSE Security Update : apache2-mod_php5 (apache2-mod_php5-441) | 21 Jul 200900:00 | – | nessus | |
| openSUSE Security Update : apache2-mod_php5 (apache2-mod_php5-1993) | 23 Feb 201000:00 | – | nessus |
10
| Source | Link |
|---|---|
| php | www.php.net/ChangeLog-5.php |
| securityfocus | www.securityfocus.com/bid/32383 |
| php | www.php.net/archive/2008.php |
| securityfocus | www.securityfocus.com/bid/32688 |
| securityfocus | www.securityfocus.com/bid/32625 |
| securityfocus | www.securityfocus.com/archive/1/archive/1/498985/100/0/threaded |
# SPDX-FileCopyrightText: 2008 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:php:php";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900184");
script_version("2025-09-24T05:39:03+0000");
script_tag(name:"last_modification", value:"2025-09-24 05:39:03 +0000 (Wed, 24 Sep 2025)");
script_tag(name:"creation_date", value:"2008-12-26 14:23:17 +0100 (Fri, 26 Dec 2008)");
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-2008-5624", "CVE-2008-5625", "CVE-2008-5658");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
script_name("PHP Security Bypass and File Writing Vulnerabilities (Dec 2008)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2008 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_php_consolidation.nasl");
script_mandatory_keys("php/detected");
script_tag(name:"summary", value:"PHP is prone to a security bypass and a file writing
vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The following flaws exist:
- CVE-2008-5624: Error in initialization of 'page_uid' and 'page_gid' global variables for use by
the SAPI 'php_getuid' function, which bypass the safe_mode restrictions.
- CVE-2008-5625: 'error_log' safe_mode restrictions are not enforced when 'safe_mode' is enabled
through a 'php_admin_flag' setting in 'httpd.conf' file.
- CVE-2008-5658: Directory traversal vulnerability in 'ZipArchive::extractTo' function which
allows attacker to write files via a ZIP file.");
script_tag(name:"impact", value:"Successful exploitation could allow remote attackers to write
arbitrary file, bypass security restrictions and cause directory traversal attacks.");
script_tag(name:"affected", value:"PHP versions 5.x prior to 5.2.7.");
script_tag(name:"solution", value:"Update to version 5.2.7 or later.");
script_xref(name:"URL", value:"http://www.php.net/ChangeLog-5.php#5.2.7");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32383");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32625");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32688");
script_xref(name:"URL", value:"http://www.php.net/archive/2008.php#id2008-12-07-1");
script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/archive/1/498985/100/0/threaded");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (isnull(port = get_app_port(cpe: CPE)))
exit(0);
if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
exit(0);
version = infos["version"];
location = infos["location"];
if (version_in_range(version: version, test_version: "5.0", test_version2: "5.2.6")) {
report = report_fixed_ver(installed_version: version, fixed_version: "5.2.7", install_path: location);
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
24 Sep 2025 00:00Current
7.5High risk
Vulners AI Score7.5
CVSS 27.5
EPSS0.07314