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.065 Low
EPSS
Percentile
93.8%
RedHat Linux 6.0 installs by default a squid cache manager cgi script with no restricted access permissions. This script could be used to perform a port scan from the cgi-host machine.
#%NASL_MIN_LEVEL 70300
#
# This script was written by Alexis de Bernis <[email protected]>
#
# See the Nessus Scripts License for details
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(10034);
script_version("1.35");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_cve_id("CVE-1999-0710");
script_bugtraq_id(2059);
script_name(english:"Squid cachemgr.cgi Proxied Port Scanning");
script_summary(english:"Checks whether the cachemgr.cgi is installed and accessible.");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a CGI application that has no access
restrictions.");
script_set_attribute(attribute:"description", value:
"RedHat Linux 6.0 installs by default a squid cache manager cgi script
with no restricted access permissions. This script could be used to
perform a port scan from the cgi-host machine.");
script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/1999/Jul/183");
script_set_attribute(attribute:"solution", value:
"If you are not using the box as a Squid www proxy/cache server then
uninstall the package by executing :
/etc/rc.d/init.d/squid stop ; rpm -e squid
If you want to continue using the Squid proxy server software, make
the following actions to tighten security access to the manager
interface :
mkdir /home/httpd/protected-cgi-bin
mv /home/httpd/cgi-bin/cachemgr.cgi /home/httpd/protected-cgi-bin/
And add the following directives to /etc/httpd/conf/access.conf and
srm.conf :
--- start access.conf segment ---
# Protected cgi-bin directory for programs that
# should not have public access
order deny,allow
deny from all
allow from localhost
#allow from .your_domain.com
AllowOverride None
Options ExecCGI
--- end access.conf segment ---
--- start srm.conf segment ---
ScriptAlias /protected-cgi-bin/ /home/httpd/protected-cgi-bin/
--- end srm.conf segment ---");
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:OF/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"1999/07/23");
script_set_attribute(attribute:"plugin_publication_date", value:"1999/08/22");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 1999-2021 A. de Bernis");
script_family(english:"CGI abuses");
script_dependencie("http_version.nasl", "find_service1.nasl", "no404.nasl");
script_require_keys("Settings/ParanoidReport");
script_require_ports("Services/www", 80);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("http_func.inc");
include("http_keepalive.inc");
if (report_paranoia < 2) audit(AUDIT_PARANOID);
port = get_http_port(default:80, embedded:TRUE);
cgi = "cachemgr.cgi";
res = is_cgi_installed_ka(item:cgi, port:port);
if(res)security_hole(port);