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
EPSS
Percentile
92.5%
The remote host is running BASE, a web-based tool for analyzing alerts from one or more SNORT sensors.
The version of BASE installed on the remote host allows a remote attacker to bypass authentication to various scripts.
Note that successful exploitation of this issue requires that BASE be configured to use its own authentication system.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(25443);
script_version("1.19");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2007-5578");
script_bugtraq_id(24315);
script_name(english:"BASE Authentication Redirect Authentication Bypass");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is prone to an
authentication bypass vulnerability.");
script_set_attribute(attribute:"description", value:
"The remote host is running BASE, a web-based tool for analyzing alerts
from one or more SNORT sensors.
The version of BASE installed on the remote host allows a remote
attacker to bypass authentication to various scripts.
Note that successful exploitation of this issue requires that BASE be
configured to use its own authentication system.");
script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2007/Jun/31");
# http://secureideas.cvs.sourceforge.net/secureideas/base-php4/base_main.php?revision=1.52&view=markup
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?cb637b72");
script_set_attribute(attribute:"see_also", value:"http://sourceforge.net/project/shownotes.php?release_id=521723&group_id=103348");
script_set_attribute(attribute:"solution", value:
"Upgrade to BASE 1.3.8 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:F/RL:U/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_cwe_id(287);
script_set_attribute(attribute:"vuln_publication_date", value:"2007/06/04");
script_set_attribute(attribute:"plugin_publication_date", value:"2007/06/07");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:secureideas:basic_analysis_and_security_engine");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2007-2022 Tenable Network Security, Inc.");
script_dependencies("http_version.nasl");
script_require_keys("www/PHP");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
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);
# Loop through directories.
if (thorough_tests) dirs = list_uniq(make_list("/base", cgi_dirs()));
else dirs = make_list(cgi_dirs());
foreach dir (dirs)
{
url = string(dir, "/base_maintenance.php");
# Check whether we get beyond the authentication check.
r = http_send_recv3(method:"GET", item:url, port:port);
if (isnull(r)) exit(0);
res = strcat(r[0], r[1], '\r\n', r[2]);
# There's a problem if...
if (
# we gain access to the main form and...
'<FORM METHOD="POST' >< res && 'ACTION="base_maintenance.php"' >< res &&
# Use_Auth_System is enabled
"302 Found" >< res && egrep(pattern:"^Location: .+/index\.php", string:res)
)
{
security_hole(port);
exit(0);
}
}