Lucene search

K
openvasCopyright (c) 2013 Greenbone Networks GmbHOPENVAS:881646
HistoryMar 12, 2013 - 12:00 a.m.

CentOS Update for openssh CESA-2013:0519 centos6

2013-03-1200:00:00
Copyright (c) 2013 Greenbone Networks GmbH
plugins.openvas.org
9

0.0004 Low

EPSS

Percentile

5.7%

Check for the Version of openssh

###############################################################################
# OpenVAS Vulnerability Test
#
# CentOS Update for openssh CESA-2013:0519 centos6 
#
# Authors:
# System Generated Check
#
# Copyright:
# Copyright (c) 2013 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.
###############################################################################

include("revisions-lib.inc");
tag_insight = "OpenSSH is OpenBSD's Secure Shell (SSH) protocol implementation. These
  packages include the core files necessary for the OpenSSH client and
  server.

  Due to the way the pam_ssh_agent_auth PAM module was built in Red Hat
  Enterprise Linux 6, the glibc's error() function was called rather than the
  intended error() function in pam_ssh_agent_auth to report errors. As these
  two functions expect different arguments, it was possible for an attacker
  to cause an application using pam_ssh_agent_auth to crash, disclose
  portions of its memory or, potentially, execute arbitrary code.
  (CVE-2012-5536)
  
  Note that the pam_ssh_agent_auth module is not used in Red Hat Enterprise
  Linux 6 by default.
  
  This update also fixes the following bugs:
  
  * All possible options for the new RequiredAuthentications directive were
  not documented in the sshd_config man page. This update improves the man
  page to document all the possible options. (BZ#821641)
  
  * When stopping one instance of the SSH daemon (sshd), the sshd init script
  (/etc/rc.d/init.d/sshd) stopped all sshd processes regardless of the PID of
  the processes. This update improves the init script so that it only kills
  processes with the relevant PID. As a result, the init script now works
  more reliably in a multi-instance environment. (BZ#826720)
  
  * Due to a regression, the ssh-copy-id command returned an exit status code
  of zero even if there was an error in copying the key to a remote host.
  With this update, a patch has been applied and ssh-copy-id now returns a
  non-zero exit code if there is an error in copying the SSH certificate to a
  remote host. (BZ#836650)
  
  * When SELinux was disabled on the system, no on-disk policy was installed,
  a user account was used for a connection, and no "~/.ssh" configuration was
  present in that user's home directory, the SSH client terminated
  unexpectedly with a segmentation fault when attempting to connect to
  another system. A patch has been provided to address this issue and the
  crashes no longer occur in the described scenario. (BZ#836655)
  
  * The "HOWTO" document /usr/share/doc/openssh-ldap-5.3p1/HOWTO.ldap-keys
  incorrectly documented the use of the AuthorizedKeysCommand directive.
  This update corrects the document. (BZ#857760)
  
  This update also adds the following enhancements:
  
  * When attempting to enable SSH for use with a Common Access Card (CAC),
  the ssh-agent utility read all the certificates in the card even though
  only the ID certificate was needed. Consequently, if a user entered their
  PIN incorrectly, then t ... 

  Description truncated, for more information please check the Reference URL";


tag_affected = "openssh on CentOS 6";
tag_solution = "Please Install the Updated Packages.";



if(description)
{
  script_xref(name : "URL" , value : "http://lists.centos.org/pipermail/centos-announce/2013-March/019458.html");
  script_id(881646);
  script_version("$Revision: 8542 $");
  script_tag(name:"last_modification", value:"$Date: 2018-01-26 07:57:28 +0100 (Fri, 26 Jan 2018) $");
  script_tag(name:"creation_date", value:"2013-03-12 09:59:37 +0530 (Tue, 12 Mar 2013)");
  script_cve_id("CVE-2012-5536");
  script_tag(name:"cvss_base", value:"6.2");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:H/Au:N/C:C/I:C/A:C");
  script_xref(name: "CESA", value: "2013:0519");
  script_name("CentOS Update for openssh CESA-2013:0519 centos6 ");

  script_tag(name: "summary" , value: "Check for the Version of openssh");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2013 Greenbone Networks GmbH");
  script_family("CentOS Local Security Checks");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("ssh/login/centos", "ssh/login/rpms");
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name:"qod_type", value:"package");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


include("pkg-lib-rpm.inc");

release = get_kb_item("ssh/login/release");

res = "";
if(release == NULL){
  exit(0);
}

if(release == "CentOS6")
{

  if ((res = isrpmvuln(pkg:"openssh", rpm:"openssh~5.3p1~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"openssh-askpass", rpm:"openssh-askpass~5.3p1~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"openssh-clients", rpm:"openssh-clients~5.3p1~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"openssh-ldap", rpm:"openssh-ldap~5.3p1~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"openssh-server", rpm:"openssh-server~5.3p1~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"pam_ssh_agent_auth", rpm:"pam_ssh_agent_auth~0.9.3~84.1.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if (__pkg_match) exit(99); # Not vulnerable.
  exit(0);
}

0.0004 Low

EPSS

Percentile

5.7%