Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings OpenVAS
 
 
Summary Tracker Lists News SCM Files
 

openvas: trunk/openvas-plugins/scripts/openssh_32319_remote.nasl

File: [openvas] / trunk / openvas-plugins / scripts / openssh_32319_remote.nasl (download)
Revision: 7646, Tue May 11 18:07:01 2010 UTC (3 months, 3 weeks ago) by mime
File size: 2831 byte(s)
Added new plugins. Added CVEs. Removed unneeded log messages. Return NULL if "ret" is NULL in svcenumservicesstatus(). Replaced "null" with "NULL"
###############################################################################
# OpenVAS Vulnerability Test
# $Id$
#
# OpenSSH CBC Mode Information Disclosure Vulnerability
#
# Authors:
# Michael Meyer
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH
#
# 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_id(100153);
  script_cve_id("CVE-2008-5161");
 script_bugtraq_id(32319);
  script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
  script_version("Revision: 1.0 ");
  script_tag(name:"cvss_base", value:"2.6");
  script_tag(name:"risk_factor", value:"Medium");
  script_category(ACT_GATHER_INFO);
  script_family("General");
  script_name("OpenSSH CBC Mode Information Disclosure Vulnerability");
  script_summary("Check for vulnerable version of OpenSSH");
  desc = "

  Overview: The host is installed with OpenSSH and is prone to information
  disclosure vulnerability.

  Vulnerability Insight:
  The flaw is caused due to the improper handling of errors within an SSH session
  encrypted with a block cipher algorithm in the Cipher-Block Chaining 'CBC' mode.

  Impact:
  Successful exploits will allow attackers to obtain four bytes of plaintext from
  an encrypted session.
  
  Impact Level: Application

  Affected Software/OS:
   Versions prior to OpenSSH 5.2 are vulnerable. Various versions of SSH Tectia
   are also affected. 

  Fix: Upgrade to higher version
  http://www.openssh.com/portable.html

  References:
   http://www.securityfocus.com/bid/32319

  Risk factor: Medium";

  script_description(desc);
  script_dependencies("ssh_detect.nasl");
  script_require_ports("Services/ssh", 22);
  exit(0);
}

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

port = get_kb_item("Services/ssh");
if(!port) port = 22;

banner = get_kb_item("SSH/banner/" + port);
if ( ! banner ) exit(0);

banner = tolower(get_backport_banner(banner:banner));
version = eregmatch(pattern:"ssh-.*openssh[_-]{1}([0-9.]+[p0-9]*)", string: banner);
if(isnull(version[1]))exit(0);

if(version_is_less(version: version[1], test_version: "5.2")) {
 security_warning(port);
 exit(0);
}

exit(0);

CVS/SVN Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS/SVN Help


This site is hosted by the Intevation GmbH