Lucene search
K

Apache Derby Information Disclosure Vulnerability

🗓️ 10 Sep 2010 00:00:00Reported by Copyright (C) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

Apache Derby Information Disclosure Vulnerability. Weakness in password hash generation algorithm reduces search space allowing remote attackers to crack passwords

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_apache_derby_info_disc_vuln.nasl 5263 2017-02-10 13:45:51Z teissa $
#
# Apache Derby Information Disclosure Vulnerability
#
# Authors:
# Sooraj KS <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
#
# 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_impact = "Successful exploitation will let remote attackers to crack passwords by
  generating hash collisions.
  Impact Level: Application";
tag_affected = "Apache Derby versions before 10.6.1.0";
tag_insight = "The flaw is due to a weaknesses in the password hash generation
  algorithm used in Derby to store passwords in the database, performs a
  transformation that reduces the size of the set of inputs to SHA-1,
  which produces a small search space that makes it easier for local and
  possibly remote attackers to crack passwords by generating hash collisions.";
tag_solution = "Upgrade to Apache Derby version 10.6.1.0 or later,
  For updates refer to http://db.apache.org/derby/derby_downloads.html";
tag_summary = "The host is running Apache Derby and is prone to information
  disclosure vulnerability.";

if(description)
{
  script_id(801284);
  script_version("$Revision: 5263 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-10 14:45:51 +0100 (Fri, 10 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-09-10 16:37:50 +0200 (Fri, 10 Sep 2010)");
  script_cve_id("CVE-2009-4269");
  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_name("Apache Derby Information Disclosure Vulnerability");
  script_xref(name : "URL" , value : "http://marcellmajor.com/derbyhash.html");
  script_xref(name : "URL" , value : "https://issues.apache.org/jira/browse/DERBY-4483");
  script_xref(name : "URL" , value : "http://db.apache.org/derby/releases/release-10.6.1.0.cgi#Fix+for+Security+Bug+CVE-2009-4269");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
  script_family("Databases");
  script_dependencies("gb_apache_derby_detect.nasl");
  script_require_ports("Services/apache_derby",1527);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


include("http_func.inc");
include("version_func.inc");

## Get Apache Derby Port
port = get_kb_item("Services/apache_derby");
if(!port) {
  port = 1527;
}

if(!get_port_state(port)) {
  exit(0);
}

## Check for Apache Derby versions before 10.06.0
if(ver = get_kb_item(string("apache_derby/",port,"/version")))
{
  if(version_is_less(version: ver, test_version: "10.06.0"))
  {
    security_message(port:port);
    exit(0);
  }
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation