7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.184 Low
EPSS
Percentile
96.2%
The remote web server is running PHP-Calendar, a web-based calendar written in PHP.
The remote version of this software is vulnerable to a file inclusion flaw that could allow an attacker to execute arbitrary PHP commands on the remote host.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(16071);
script_version("1.24");
script_cve_id("CVE-2004-1423");
script_bugtraq_id(12127, 20657);
script_name(english:"PHP-Calendar Multiple Script phpc_root_path Parameter Remote File Inclusion");
script_summary(english:"Determines if PHP-Calendar can include third-party files");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP script that is affected by a
remote file include vulnerability." );
script_set_attribute(attribute:"description", value:
"The remote web server is running PHP-Calendar, a web-based calendar
written in PHP.
The remote version of this software is vulnerable to a file inclusion
flaw that could allow an attacker to execute arbitrary PHP commands on
the remote host." );
# http://web.archive.org/web/20061010145640/http://www.gulftech.org/?node=research&article_id=00060-12292004
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f3abcef5" );
script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2004/Dec/436" );
# http://sourceforge.net/project/shownotes.php?release_id=296020&group_id=46800
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?62470ca6" );
script_set_attribute(attribute:"solution", value:"Upgrade to PHP-Calendar version 0.10.1 or later." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L");
script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2004-1423");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"plugin_publication_date", value: "2004/12/29");
script_set_attribute(attribute:"vuln_publication_date", value: "2004/12/29");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe",value:"cpe:/a:php-calendar:php-calendar");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2004-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("http_version.nasl");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
script_require_keys("www/PHP");
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:80);
if(!can_host_php(port:port))exit(0);
foreach d (cgi_dirs())
{
url = string(d, "/includes/calendar.php?phpc_root_path=http://example.com/");
r = http_send_recv3(method:"GET", item:url, port:port);
if (isnull(r)) exit(0);
buf = r[2];
if ( "http://example.com/includes/html.php" >< buf )
{
security_hole(port);
exit(0);
}
}
Vendor | Product | Version | CPE |
---|---|---|---|
php-calendar | php-calendar | cpe:/a:php-calendar:php-calendar |