The host is running Access Manager or OpenSSO and is prone to
information disclosure vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_sjs_am_n_opensso_info_disc_vuln.nasl 5122 2017-01-27 12:16:00Z teissa $
#
# Sun JS Access Manager And OpenSSO Information Disclosure vulnerability
#
# Authors:
# Sharath S <[email protected]>
#
# Copyright:
# Copyright (c) 2009 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_solution = "Apply the security updates.
http://sunsolve.sun.com/search/document.do?assetkey=1-21-119465-16-1
*****
NOTE: Ignore this warning if above mentioned patch is already applied.
*****";
tag_impact = "Successful exploitation could allow remote unprivileged user to gain the
sensitive information.
Impact Level: System/Application";
tag_affected = "Sun OpenSSO Enterprise version 8.0
Java System Access Manager version 6.3 2005Q1 or 7.0 2005Q4 or 7.1";
tag_insight = "Error exists when 'AMConfig.properties' enables the debug flag, allows local
users to discover cleartext passwords by reading debug files.";
tag_summary = "The host is running Access Manager or OpenSSO and is prone to
information disclosure vulnerability.";
if(description)
{
script_id(900818);
script_version("$Revision: 5122 $");
script_tag(name:"last_modification", value:"$Date: 2017-01-27 13:16:00 +0100 (Fri, 27 Jan 2017) $");
script_tag(name:"creation_date", value:"2009-08-26 14:01:08 +0200 (Wed, 26 Aug 2009)");
script_tag(name:"cvss_base", value:"2.1");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:P/I:N/A:N");
script_cve_id("CVE-2009-2712");
script_bugtraq_id(35963);
script_name("Sun JS Access Manager And OpenSSO Information Disclosure vulnerability");
script_xref(name : "URL" , value : "http://secunia.com/advisories/36169/");
script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2009/2177");
script_xref(name : "URL" , value : "http://sunsolve.sun.com/search/document.do?assetkey=1-66-255968-1");
script_tag(name:"qod_type", value:"remote_banner");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 SecPod");
script_family("Web application abuses");
script_dependencies("secpod_sun_opensso_detect.nasl",
"secpod_sjs_access_manager_detect.nasl");
script_require_ports("Services/www", 8080);
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "summary" , value : tag_summary);
script_tag(name : "solution" , value : tag_solution);
exit(0);
}
include("http_func.inc");
am_port = get_http_port(default:8080);
if(!am_port){
am_port= 8080;
}
amVer = get_kb_item("www/" + am_port + "/Sun/JavaSysAccessMang");
amVer = eregmatch(pattern:"^(.+) under (/.*)$", string:amVer);
# Check for Java Access Manager version 7.0 2005Q4 or 7.1 or 6.3.2005Q1
if(amVer[1] =~ "7.1|7.0.2005Q4|6.3.2005Q1")
{
security_message(am_port);
exit(0);
}
ssoVer = get_kb_item("www/" + am_port + "/Sun/OpenSSO");
ssoVer = eregmatch(pattern:"^(.+) under (/.*)$", string:ssoVer);
# Check for Sun OpenSSO version 8.0
if(ssoVer[1] =~ "8.0"){
security_message(am_port);
}