#CESA-2009:0409 63903 4
# $Id$
# Description: Auto-generated from advisory CESA-2009:0409 (krb5)
#
# Authors:
# Thomas Reinke <reinke@securityspace.com>
#
# Copyright:
# Copyright (c) 2009 E-Soft Inc. http://www.securityspace.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 at your option, GNU General Public License version 3,
# 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(63903);
 script_cve_id("CVE-2009-0846");
 script_version ("$");
 script_tag(name:"cvss_base", value:"10.0");
 script_tag(name:"risk_factor", value:"Critical");
 name = "CentOS Security Advisory CESA-2009:0409 (krb5)";
 script_name(name);

 desc = "The remote host is missing updates to krb5 announced in
advisory CESA-2009:0409.

For details on the issues addressed in this update,
please visit the referenced security advisories.

Solution:
Update the appropriate packages on your system.

http://www.securityspace.com/smysecure/catid.html?in=CESA-2009:0409
http://www.securityspace.com/smysecure/catid.html?in=RHSA-2009:0409
https://rhn.redhat.com/errata/RHSA-2009-0409.html

Risk factor : High";

 script_description(desc);

 summary = "CentOS Security Advisory CESA-2009:0409 (krb5)";
 script_summary(summary);

 script_category(ACT_GATHER_INFO);

 script_copyright("Copyright (c) 2009 E-Soft Inc. http://www.securityspace.com");
 family = "CentOS Local Security Checks";
 script_family(family);
 script_dependencies("gather-package-list.nasl");
 script_require_keys("ssh/login/rpms");
 exit(0);
}

#
# The script code starts here
#

include("revisions-lib.inc");
include("pkg-lib-rpm.inc");
vuln = 0;
if(isrpmvuln(pkg:"krb5-devel", rpm:"krb5-devel~1.3.4~60.el4_7.2", rls:"CentOS4")) {
    vuln = 1;
}
if(isrpmvuln(pkg:"krb5-libs", rpm:"krb5-libs~1.3.4~60.el4_7.2", rls:"CentOS4")) {
    vuln = 1;
}
if(isrpmvuln(pkg:"krb5-server", rpm:"krb5-server~1.3.4~60.el4_7.2", rls:"CentOS4")) {
    vuln = 1;
}
if(isrpmvuln(pkg:"krb5-workstation", rpm:"krb5-workstation~1.3.4~60.el4_7.2", rls:"CentOS4")) {
    vuln = 1;
}
if(isrpmvuln(pkg:"krb5", rpm:"krb5~1.3.4~60.el4_7.2", rls:"CentOS4")) {
    vuln = 1;
}

if(vuln) {
    security_hole(0);
}
