Sun Java Directory Server Information Disclosure Vulnerability (Linux)

2009-04-30T00:00:00
ID OPENVAS:1361412562310900706
Type openvas
Reporter Copyright (C) 2009 SecPod
Modified 2019-04-29T00:00:00

Description

This host is running Sun Java Directory Server and is prone to Information Disclosure Vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Sun Java Directory Server Information Disclosure Vulnerability (Linux)
#
# Authors:
# Sujit Ghosal <sghosal@secpod.com>
#
# 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.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900706");
  script_version("2019-04-29T15:08:03+0000");
  script_tag(name:"last_modification", value:"2019-04-29 15:08:03 +0000 (Mon, 29 Apr 2019)");
  script_tag(name:"creation_date", value:"2009-04-30 06:40:16 +0200 (Thu, 30 Apr 2009)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_cve_id("CVE-2009-1332");
  script_bugtraq_id(34548);
  script_name("Sun Java Directory Server Information Disclosure Vulnerability (Linux)");
  script_xref(name:"URL", value:"http://secunia.com/advisories/34751");
  script_xref(name:"URL", value:"http://sunsolve.sun.com/search/document.do?assetkey=1-66-255848-1");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Web application abuses");
  script_dependencies("secpod_sun_java_dir_server_detect_lin.nasl");
  script_mandatory_keys("Sun/JavaDirServer/Linux/Ver");
  script_tag(name:"affected", value:"Sun Java System Directory Server 5.2
  Sun Java System Directory Server Enterprise 5.0");
  script_tag(name:"insight", value:"This flaw is due to unspecified error which can be exploited to determine
  the existence of a file on a system and disclose a single line of the file's
  content.");
  script_tag(name:"solution", value:"Upgrade to Sun Java Directory Server Enterprise 6.0 or later.");
  script_tag(name:"summary", value:"This host is running Sun Java Directory Server and is prone to Information
  Disclosure Vulnerability.");
  script_tag(name:"impact", value:"Successful exploitation will let the attacker execute arbitrary codes in the
  context of the application and can gain sensitive information about the
  presence of folders and files.");
  script_tag(name:"qod_type", value:"executable_version");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}

include("version_func.inc");

appVer = get_kb_item("Sun/JavaDirServer/Linux/Ver");
if(!appVer)
  exit(0);

if(version_is_less_equal(version:appVer, test_version:"5.2")){
  security_message( port: 0, data: "The target host was found to be vulnerable" );
}